Organizations, projects, apps and environments
ProductEnv stores secrets in four levels: an organization holds projects, a project holds apps, and each app has environments such as development and production. Knowing the levels tells you where to put a key and who can see it.
Updated
| Level | What it is | Example |
|---|---|---|
| Organization | Your company or team: billing, plan, members, single sign-on and security rules | Acme |
| Project | One product or repository, with its own people and roles | Storefront |
| App | One deployable part of the project, each with its own environments | web, api, admin |
| Environment | One set of values for one place the app runs | development, staging, production |
A new project has one app (called Main unless you name it) with development, staging and production environments; development is the default. You can add environments and, on paid plans, more apps.
The default app's environments are named directly (production). Other apps' environments are written <app>.<environment>, as in api.production. The CLI's --env and --app options and .productenv.json use these names.
| What | Rule |
|---|---|
| Secret key | Up to 100 characters: a letter or _ first, then letters, digits and _ . : - |
| Secret value | Up to 10,000 characters |
| Environment | Up to 30 characters: lowercase letters, digits and _ |
| App | Up to 40 characters (shared, app and project are reserved) |
| Project | Up to 60 characters, unique in the organization |
Keys keep their case and characters, so .NET keys like ConnectionStrings:Default are stored as written. Integrations convert them to environment variable names when they sync.