Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ Adapter for DNP3

How to reference secrets

  • Last UpdatedJun 24, 2025
  • 2 minute read

Secrets can be referenced by their Id in any configuration through a protected property, such as a client secret or password.

Reference Secrets by Id

To use a secret in a configuration, the value of the protected property can be replaced with {{<secretId>}}, where <secretId> is an existing id in the secret management configuration.

Example

If a secret Id and value already exist in the secret management configuration, for example:

{

"id": "<secretId>",

"value": "<secretValue>"

}

The secret Id can be referenced in any configuration with a protected property, such as client secret or password.

For example, in a health configuration with a PWA and CONNECT data services endpoint {{<secretId>}} can be substituted in the protected properties:

[

{

"id": "CONNECT data services",

"endpoint": "https://<CONNECT data services OMF endpoint>",

"clientid": "<clientid>",

"clientsecret": "{{<secretId>}}"

},

{

"id": "PI Web API",

"endpoint": "https://<pi web api server>:<port>/piwebapi/omf/",

"username": "<username>",

"password": "{{<secretId>}}"

}

]

Adding Secrets by Value

The default behavior of any configuration with a protected property is to add the value into the secrets management configuration, automatically generate a secret id, and replace the value of the protected property on the configuration to be the generated secret id.

Example

Add a health configuration with a ClientSecret value <clientsecret>:

[

{

"id": "CONNECT",

"endpoint": "https://<CONNECT OMF endpoint>",

"clientid": "<clientid>",

"clientsecret": "<clientsecret>"

}

]

The secrets management configuration updates to add the following Id and Value:

{

"id": "System.HealthEndpoints.CONNECT.ClientSecret",

"value": "<clientsecret>"

}

Note: The Value<clientsecret> is encrypted before storing in the secrets management configuration.

The health configuration replaces the ClientSecret value with the generated secret Id "{{System.HealthEndpoints.CONNECT.ClientSecret}}":

[

{

"id": "CONNECT",

"endpoint": "https://<CONNECT OMF endpoint>",

"clientid": "<clientid>",

"clientsecret": "{{System.HealthEndpoints.CONNECT.ClientSecret}}"

}

]

In This Topic
Related Links
TitleResults for “How to create a CRG?”Also Available in