1passwordsdk-push-secret.yaml 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. ---
  2. apiVersion: external-secrets.io/v1alpha1
  3. kind: PushSecret
  4. metadata:
  5. name: pushsecret-example # customizable
  6. spec:
  7. deletionPolicy: Delete
  8. refreshInterval: 1h0m0s
  9. secretStoreRefs:
  10. - name: onepassword
  11. kind: SecretStore
  12. selector:
  13. secret:
  14. name: source-secret # Source Kubernetes secret
  15. data:
  16. - match:
  17. secretKey: api-key # Source Kubernetes secret key to be pushed
  18. remoteRef:
  19. remoteKey: 1pw-item-name # 1Password item name
  20. property: password # Field label within the 1Password item
  21. metadata:
  22. apiVersion: kubernetes.external-secrets.io/v1alpha1
  23. kind: PushSecretMetadata
  24. spec:
  25. tags: ["tag1", "tag2"] # (Optional) tags on the 1Password item (item-level, not field-level)
  26. # Tags are shared across all fields of the same remoteKey — last write wins if entries differ
  27. fieldType: concealed # (Optional) field type (default: concealed)
  28. # Accepted values (case-insensitive): text|string|concealed|password|url|email|phone|date|monthYear
  29. - match:
  30. secretKey: api-url
  31. remoteRef:
  32. remoteKey: 1pw-item-name # Same 1Password item — adds a second field
  33. property: api-endpoint
  34. metadata:
  35. apiVersion: kubernetes.external-secrets.io/v1alpha1
  36. kind: PushSecretMetadata
  37. spec:
  38. fieldType: url