Setting the secret environment variables
Pass registry tokens and other secrets to the LCM as environment variables, which keeps them out of the configuration files and the saved profile.
The LCM never stores secrets in configuration files. You pass them as environment variables, which keeps them out of the files and out of the saved profile.
- You have the registry token and, for a split layout, the site registry token.
Export the variables that your site needs. Skip the variables that do not apply, such as the two Route 53 variables in the customer-provided CA mode.
export LCM_SECRET_OCI_REGISTRY_TOKEN="<registry-token>"
export LCM_SECRET_OCI_SITE_REGISTRY_TOKEN="<site-registry-token>"
export LCM_SECRET_VALIDATION_OS_PASSWORD="<validation-password>"
The variables are set in your shell. The following table lists all the variables that the LCM reads.
| Variable | Supplies |
|---|---|
LCM_SECRET_OCI_REGISTRY_TOKEN | The token for the source registry account |
LCM_SECRET_OCI_SITE_REGISTRY_TOKEN | The token for the site registry account, for a split registry layout |
LCM_SECRET_ROUTE53_AWS_ACCESS_KEY_ID | The access key for DNS automation, in the Route 53 certificate mode only |
LCM_SECRET_ROUTE53_AWS_SECRET_ACCESS_KEY | The secret key for DNS automation, in the Route 53 certificate mode only |
LCM_SECRET_VALIDATION_OS_PASSWORD | The password that the verification stage uses |
LCM_SECRET_OBSERVABILITY_OTLP_AUTH | The authorization header value for an off-cluster telemetry export, when you configure one |
