Override values & secrets
Learn how to override default App values & secrets

Variable Hierarchy

Humanitec allows you to define Environment Variables and Secrets in a hierarchical way: on App level, Environment Level and Workload level. The highest hierarchical level is the App level. You can go to the App Settings Screen in each of your Apps and define Environment Variables that are important within the context of your App.

Environment Level

The hierarchical level following the App Level is the Environment level. In the Environment Settings Screen of each Environment you can define Environment Variables that are important within the context of that specific Environment.
To create or update shared values and secrets overrides, you will need to have the Administrator role within your Organization or hold the Owner/ Developer role on the App. Learn more about RBAC in Humanitec here.
UI
CLI
API
  • Start on the Environment Settings Screen and navigate to the shared values and secrets overrides section.
  • As you can see from the example below, priorly defined App default values can be overridden. In the example above the value of DEBUG_LOGGING was overridden from warning to info for the development Environment. Variables referenced in the container variables section of a Workload via ${values.KEY} will now be resolved to the value defined for the respective environment.
Example for Environment Variables on the Environment Settings Screen
Our CLI is currently in closed beta. Please contact us if you want to learn more.
Environment level value and secret overrides can be defined via the Create Shared Value endpoint.
Learn more about how Environment Variables and Secrets are managed in Humanitec below: