1passwordsdk-external-secret.yaml 678 B

1234567891011121314151617181920212223242526272829
  1. ---
  2. apiVersion: external-secrets.io/v1
  3. kind: ExternalSecret
  4. metadata:
  5. name: fetch-from-onepassword
  6. spec:
  7. secretStoreRef:
  8. kind: SecretStore
  9. name: onepassword
  10. target:
  11. creationPolicy: Owner
  12. data:
  13. - secretKey: test-login-1
  14. remoteRef:
  15. key: test-login-1/username
  16. # OR
  17. dataFrom:
  18. - extract:
  19. key: test-login-1
  20. property: username # optional field Label to match exactly
  21. # OR
  22. - find:
  23. path: my-env-config # optional Item Title to match exactly
  24. name:
  25. regexp: "^username$"
  26. # OR
  27. - find:
  28. tags:
  29. tag1: "" # optional tags to match - value is unused, just needs to be present