Skip to main content

Environment variables

The environment variables used by a library must be registered with ArupCompute ahead of publishing the library. Registration is initiated by sending the variable name and value to an ArupCompute administrator. If they contain secrets, then share the details by Outlook encrypted email, password manager or by phone only. To encrypt a new email in Outlook, select "Options" then "Encrypt:

outlook_encrypt

Variable names must be in uppercase, prefixed with "AC_" and contain only ascii digits (0-9), letters (A-Z) and underscore. Consecutive underscores are not allowed.

The code below shows how to access an environment variable named AC_APP_SECRET:

var secret = Environment.GetEnvironmentVariable("AC_APP_SECRET");