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.

Choose the access
| Access | Who adds and changes secrets | Role you give OpenDataDSL |
|---|---|---|
| Read and write | Your users, in OpenDataDSL, as today. The values are written to your vault | Key Vault Secrets Officer |
| Read only | You, in your key vault. OpenDataDSL only reads them | Key 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
| Step | Who | What |
|---|---|---|
| 1. Create or choose a key vault | Anyone who can create resources | Note its Vault URI and its permission model (Settings > Access configuration) |
| 2. Grant consent | A Microsoft Entra administrator | Once for all resources, see Before you start |
| 3. Give the application access | An Owner or User Access Administrator of the vault | With 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 firewall | The vault owner | Only 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:

| Field | Example | Notes |
|---|---|---|
| Vault URI | nge-secrets | The Vault URI from the vault's Overview page; just the name is enough for .vault.azure.net |
| Your Microsoft Entra tenant id | Filled in and fixed: the vault must be in your own tenant | |
| Access | Read and write | See Choose the access |
| Description | Secrets for the Northgate data feeds | |
| Secret to read when testing | ENTSOE-TOKEN | Optional. 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
| Situation | What happens |
|---|---|
| A secret saved in OpenDataDSL, read and write | The value is written to your vault as odsl- and the name, for example odsl-ENTSOE-TOKEN-69e3f579 |
| A secret you created in your vault yourself | Use 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 only | Refused: add or change it in your vault |
| Secrets you already had | Stay 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 OpenDataDSL | With 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.