-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
PushSecrets should implement the same remoteRef.property options as ExternalSecrets #2353
Copy link
Copy link
Closed
Labels
kind/featureCategorizes issue or PR as related to a new feature.Categorizes issue or PR as related to a new feature.
Milestone
Description
Describe the solution you'd like
We would like to push values from a given kubernetes secret key, to a given property of a remote secret. Currently it is only possible to push a value to update an entire remote secret.
For example given the below k8s secret:
apiVersion: v1
kind: Secret
metadata:
name: source-secret
stringData:
some-key: "this is a secret"
some-other-key: "this is another secret"With the below PushSecret
apiVersion: external-secrets.io/v1alpha1
kind: PushSecret
spec:
selector:
secret:
name: source-secret
data:
- match:
secretKey: some-key
remoteRef:
remoteKey: my-secret
property: some-key
- match:
secretKey: some-other-key
remoteRef:
remoteKey: my-secret
property: some-other-keyThe result would be that the remote secret my-secret is updated with key value pairs as below:
{
"some-key": "this is a secret"
"some-other-key": "this is another secret"
}Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
kind/featureCategorizes issue or PR as related to a new feature.Categorizes issue or PR as related to a new feature.
Type
Projects
Status
Done