vault-approle-store.yaml 776 B

123456789101112131415161718192021222324
  1. apiVersion: external-secrets.io/v1
  2. kind: SecretStore
  3. metadata:
  4. name: vault-backend
  5. namespace: example
  6. spec:
  7. provider:
  8. vault:
  9. server: "https://vault.acme.org"
  10. path: "secret"
  11. version: "v2"
  12. auth:
  13. # VaultAppRole authenticates with Vault using the
  14. # App Role auth mechanism
  15. # https://www.vaultproject.io/docs/auth/approle
  16. appRole:
  17. # Path where the App Role authentication backend is mounted
  18. path: "approle"
  19. # RoleID configured in the App Role authentication backend
  20. roleId: "db02de05-fa39-4855-059b-67221c5c2f63"
  21. # Reference to a key in a K8 Secret that contains the App Role SecretId
  22. secretRef:
  23. name: "my-secret"
  24. key: "secret-id"