Vault Documentation - DTS-STN/sc-digital-centre GitHub Wiki
Prerequisites
Before you can use Vault, you must have an account on the DTS-STN OIDC provider, Keycloak. Follow this guide if you don't yet have one.
Signing into Vault
- Navigate to the DTS-STN Vault instance at: https://vault.dts-stn.com
- under the "method" dropdown menu, select OIDC
- Leave the rest of the fields blank, and select "Sign in with OIDC provider"
- A new window will pop up prompting you to sign into Keycloak. Fill in your credentials and select "Sign in"
At this point, you should be redirected to the DTS-STN Secrets Engines page
Creating a secret
- From the secrets engines page, select the appropriate secrets engine. If you are adding a secret for a delivery project, select "dts-secrets-dev"
- From the secrets page, select the project that your secret relates to. If you don't see an entry for your project, select "Create secret +" at the top right corner of the secrets list.
- In the secret view, add your secret using the Key Value Pair form. if you have more than one secret, press "Add" at the end of the Key Value Pair form to add a new line to the form.
- Once you have added your secret(s), press "Save" Your secret is now ready to be consumed from Vault.
If you don't see the secrets engine you are looking for, contact an SRE team member for further guidance. This may be a permissions issue.
For more information, visit our confluence documentation page.
To see an example on how to retrieve the secrets, view the settings.kts
page.