KusionStack/kusion
Feat: Support SetSecret via secret store interface
Open
#1,411 opened on Feb 12, 2025
help wantedkind/feature
Repository metrics
- Stars
- (1,315 stars)
- PR merge metrics
- (PR metrics pending)
Description
What would you like to be added?
Currently Kusion defines the secret store interface with only a GetSecret() method.
See: https://github.com/KusionStack/kusion/blob/main/pkg/secrets/interfaces.go
Add a SetSecret() method for the interface and support it in all implementations (aws/azure/gcp/alicloud/viettel).
Why is this needed?
Writing a secret to a secret store may be used when:
- Storing sensitive information in variable sets
- Storing kubeconfig to be used by the Kubernetes runtime (#1409)
Tasks
- Add interface of GetSecret #1433
- Implement GetSecret in Alicloud Secretmanager
- Implement GetSecret in AWS Secretmanager
- Implement GetSecret in Azure SecretManager
- Implement GetSecret in Hashicorp Vault SecretManager
- Implement GetSecret in Viettelcloud Secretmanager