diff --git a/external-secrets/secret-store.yaml b/external-secrets/secret-store.yaml index 604ebee..80d63b0 100644 --- a/external-secrets/secret-store.yaml +++ b/external-secrets/secret-store.yaml @@ -4,18 +4,28 @@ metadata: name: vault-backend spec: provider: - kubernetes: - server: - url: "http://default.svc.cluster.local" vault: server: "http://vault.hashicorp-vault.svc.cluster.local:8200" path: "secret" - # Version is the Vault KV secret engine version. - # This can be either "v1" or "v2", defaults to "v2" - # version: "v2" - # auth: - # # points to a secret that contains a vault token - # # https://www.vaultproject.io/docs/auth/token - # tokenSecretRef: - # name: "vault-token" - # key: "token" + version: "v2" + auth: + # Authenticate against Vault using a Kubernetes ServiceAccount + # token stored in a Secret. + # https://www.vaultproject.io/docs/auth/kubernetes + kubernetes: + # Path where the Kubernetes authentication backend is mounted in Vault + mountPath: "kubernetes" + # A required field containing the Vault Role to assume. + role: "eso-store-role" + # Optional service account field containing the name + # of a kubernetes ServiceAccount + serviceAccountRef: + name: "eso-vault-sa" + namespace: external-secrets + audiences: + - vault + # # Optional secret field containing a Kubernetes ServiceAccount JWT + # # used for authenticating with Vault + # secretRef: + # name: "my-secret" + # key: "vault"