add vault secret store
This commit is contained in:
parent
902557b9e7
commit
aaaad3f7a0
6 changed files with 55 additions and 9 deletions
1
flux/olympus/core/external-secrets/.gitignore
vendored
Normal file
1
flux/olympus/core/external-secrets/.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
vault-secret-id.yaml
|
|
@ -2,3 +2,4 @@ apiVersion: kustomize.config.k8s.io/v1beta1
|
|||
kind: Kustomization
|
||||
resources:
|
||||
- helm-release.yaml
|
||||
- vault-secret-store.yaml
|
||||
|
|
|
@ -0,0 +1,7 @@
|
|||
apiVersion: v1
|
||||
kind: Secret
|
||||
metadata:
|
||||
name: vault-secret-id
|
||||
namespace: security
|
||||
data:
|
||||
secret-id: XXXXXX # Obtain by `vault write -f auth/approle/role/external-secrets/secret-id`
|
27
flux/olympus/core/external-secrets/vault-secret-store.yaml
Normal file
27
flux/olympus/core/external-secrets/vault-secret-store.yaml
Normal file
|
@ -0,0 +1,27 @@
|
|||
apiVersion: external-secrets.io/v1beta1
|
||||
kind: ClusterSecretStore
|
||||
metadata:
|
||||
name: vault
|
||||
namespace: security
|
||||
spec:
|
||||
provider:
|
||||
vault:
|
||||
server: "http://vault.olympus:8200"
|
||||
path: "k8s"
|
||||
version: "v2"
|
||||
auth:
|
||||
# VaultAppRole authenticates with Vault using the
|
||||
# App Role auth mechanism
|
||||
# https://www.vaultproject.io/docs/auth/approle
|
||||
appRole:
|
||||
# Path where the App Role authentication backend is mounted
|
||||
path: "approle"
|
||||
# RoleID configured in the App Role authentication backend
|
||||
# `vault read auth/approle/role/external-secrets/role-id`
|
||||
roleId: "bb841a0e-45c1-9dab-36f0-f72647d6aff0"
|
||||
# Reference to a key in a K8 Secret that contains the App Role SecretId
|
||||
# (not commited in git)
|
||||
secretRef:
|
||||
name: "vault-secret-id"
|
||||
namespace: "security"
|
||||
key: "secret-id"
|
Loading…
Add table
Add a link
Reference in a new issue