Skip to main content

Key vault

Your scripts and processes use secrets, such as API tokens and passwords, with ${secret:"NAME"}. On the Key vault tab you can keep them in your own Azure Key Vault instead of the OpenDataDSL one.

The Key vault tab with Northgate's vault configured


Choose the access​

AccessWho adds and changes secretsRole you give OpenDataDSL
Read and writeYour users, in OpenDataDSL, as today. The values are written to your vaultKey Vault Secrets Officer
Read onlyYou, in your key vault. OpenDataDSL only reads themKey Vault Secrets User

Choose read only if your security team wants to be the only one who can change secrets. Northgate chose read and write, so its analysts keep saving tokens in OpenDataDSL while the values live in nge-secrets.


In Azure: what you do on your side​

StepWhoWhat
1. Create or choose a key vaultAnyone who can create resourcesNote its Vault URI and its permission model (Settings > Access configuration)
2. Grant consentA Microsoft Entra administratorOnce for all resources, see Before you start
3. Give the application accessAn Owner or User Access Administrator of the vaultWith Azure role-based access control: the role for your access, on the key vault only. With access policies: a policy with Get and List (read only), or Get, List, Set and Delete (read and write)
4. Let OpenDataDSL through the firewallThe vault ownerOnly if the vault allows selected networks: ask OpenDataDSL support for the addresses

The tab shows the role assignment and the access policy as Azure CLI commands, filled in with the OpenDataDSL application id and your vault's name.


In OpenDataDSL: what you do here​

Select Use my key vault:

Entering and testing the key vault

FieldExampleNotes
Vault URInge-secretsThe Vault URI from the vault's Overview page; just the name is enough for .vault.azure.net
Your Microsoft Entra tenant idFilled in and fixed: the vault must be in your own tenant
AccessRead and writeSee Choose the access
DescriptionSecrets for the Northgate data feeds
Secret to read when testingENTSOE-TOKENOptional. Its value is never shown

Select Test before you save: it signs in to your tenant as the OpenDataDSL application, lists the vault and reads the secret you named. If it fails, the message says what is usually missing (consent, the role, the firewall). Then select Save.


What changes​

SituationWhat happens
A secret saved in OpenDataDSL, read and writeThe value is written to your vault as odsl- and the name, for example odsl-ENTSOE-TOKEN-69e3f579
A secret you created in your vault yourselfUse it by its name in the vault. Vault names cannot contain _, so ${secret:"ENTSOE_TOKEN"} also finds ENTSOE-TOKEN
Saving a secret in OpenDataDSL, read onlyRefused: add or change it in your vault
Secrets you already hadStay in the OpenDataDSL vault and keep working; with read and write access each moves to your vault the next time it is saved
Deleting a secret in OpenDataDSLWith read and write access it is also deleted from your vault (kept as deleted for its retention period)

Stop using it saves new secrets in the OpenDataDSL vault again. Secrets kept in your vault then can no longer be read until they are saved again in OpenDataDSL with their values.

For the full detail for your IT team, see Keeping your secrets in your own Azure Key Vault.