Links

Define 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.

App 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.
To create or update App default variables & secrets, 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 App Settings Page and navigate to the App default values & secrets section.
  • As you can see from the example below, you can define Environment Variables as well as Secrets on this level. The variables defined on App level can be referenced within each Environment of the App by using ${values.KEY} in the container variables section of a Workload (see Workload Level for further reference). Additionally each value can be overridden on Environment level.
  • Humanitec also allows you to provide a description for each variable you are defining. You can use the description to explain the variable or even to mention the team/person responsible for managing this variable which can become very handy especially in large organizations.
Example for Environment Variables in the App Settings
Our CLI is currently in closed beta. Please contact us if you want to learn more.
App default values & secrets can be defined via the Create Shared Value endpoint.
Learn more about how Environment Variables and Secrets are managed in Humanitec below: