Vault
This are some quick notes I took on how to setup a simple Vault for usage with heqet. For a more detailed documentation on how to configure Vault, check out the Official Vault Docs.
Note: Most of this commands can be executed either using the vault
command on your local device or the inside the vault pod itself.
#
Init Vault using GPG#
Copy GPG Public Key#
Init Vault#
Save Unseal Key somewhere sage e.g. Keepass#
Decode Unseal Key#
Unseal Vault#
Enable Kubernetes Auth#
Create Secret Store#
Add Secrets-Operator Role & Policy#
Create Policy#
Add Auth Role#
Add SecretsRemember, Secret path: heqet/<APP-NAME>/<SECRET-NAME>
#
Vault-Issuer Cert-Manager via Kubernetes Service AccountWe expect you already have setup a PKI & Intermediate PKI. You will need a policy to allow your approle to create new certs:
And a role: [dc = my local domain]
Policy:
Authorize Service Account