Links

Define App Values & Secrets

Variable Hierarchy

Humanitec allows you to define Values 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.

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 Values and Secrets at this level. The Values defined at the App level can be referenced within each Environment of the App using ${values.KEY} in the Container variables section of a Workload (see Workload Level for further reference). Additionally, each Value or Secret can be overridden at the 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: