Skip to Content
Envault

Application Secrets

Organize app-specific values by environment and deliver them to containers.

Application Secrets

An application group is a named configuration container, such as backend. It contains environments like develop and production, each with its own secrets. Creating a group does not deploy an application.

  1. Open Application Secrets, click Create application group, and name it, for example backend.
  2. Select the application group card and create an environment, such as develop or production.
  3. Select the environment card to open its secret list, then create secrets.
  4. In Container Engine creation, or an existing container's Environment variables section, use Link Envault to choose the application group and environment. For an existing container, click Link Envault to save, then redeploy. Use Change link to choose another environment, or Cancel to discard changes.

Groups and their environments appear as cards with a name, creation date, and an actions menu (…). Group cards also show the number of environments. Open the menu to rename a group or environment, or delete an eligible item. Deleting a group permanently removes all its environments and secret records, including reserved names, and disconnects its container and Shared source links. Audit history remains available. Running containers retain previously delivered values until their next deployment. References in other secrets are not rewritten; missing references must be fixed before deployment or CLI export. Secrets appear as bordered key/value rows. Click Create secret (+) to add a yellow draft row at the top of the list. Click again to add more draft rows. Enter each name and value, then use Save changes next to the eye icon to save all new rows and edited values. Use a row’s cancel icon to discard only that draft. New rows and edited values are saved together. If any create or edit conflicts or fails, none of those creates or edits are saved and their drafts remain available for correction and retry. Each save supports up to 100 new rows and 100 edited values, subject to the request size limit. Type ${ in a value to choose a Shared Secrets reference. Reopen the environment to see newly added Shared keys without reloading the browser. Click a masked value or use the eye button to reveal values and immediately edit secrets you can manage. Inherited secrets remain read-only. Click a key or value to edit it inline, or choose Delete in the row toolbar to mark the secret for deletion. All new and edited rows use the same toolbar Save changes action.

Application group names use lowercase ASCII letters, numbers and hyphens, start with a letter, and have up to 50 characters. Application group names are unique within a workspace; environment names are unique within an application group. Use Rename in the card’s actions menu to change a name. Container links and connected Shared sources remain connected. Explicit references such as ${shared.group.environment.KEY} and CLI configurations that use the old name are not rewritten; update them before the next deployment or export. Reopen the secret editor to refresh reference suggestions after renaming.

Each environment has independent values. One container connects to at most one application group environment. An environment cannot be deleted while connected to a container, while it is connected as a Shared source, or while it contains active or deleted secret records.

Long values do not wrap automatically. Scroll horizontally to read a long line. Revealing or editing a value with actual line breaks expands only its value box; the name box stays aligned at the top. Pressing Enter adds a line, and removing line breaks shrinks the editor. Masked values stay on one line. Literal \n text is not converted to a line break.

Effective container values

You can paste a service-account JSON document directly into a secret value. Multiline JSON objects and arrays are compacted during container delivery while preserving their JSON meaning, including private-key newline escapes. The value stored and revealed in Envault remains unchanged. Redeploy the container to refresh delivered values; a plain Restart keeps the previous configuration.

Inherited Shared keys cannot be overridden. For other keys, priority is:

  1. A container's individual runtime variable.
  2. The connected application group environment.
  3. Workspace defaults.

Only effective values are resolved. A lower-priority value overridden by a container or application group value is not delivered.

Inherited variables appear as managed by Envault in the container environment list, without their plaintext. Application-local and Workspace values can be replaced with container-local overrides. Inherited Shared keys must be edited at their source. Delete a local override to use the inherited value again on the next deployment. Remove inherited values at their source in Envault; they cannot be deleted directly in the container editor.

Clicking Unlink Envault saves the disconnection immediately. The next deployment removes the inherited application group values. Workspace defaults still apply. That deployment also removes previously managed keys that no longer have a source; container-local keys remain intact. A failed synchronization stops the deployment and can be retried. A failed attempt does not start a new workload; fix the reported issue before retrying.

Current delivery supports Container Engine Application resources. Imported Compose services and managed databases retain their own configuration and are not injected. Secrets are runtime-only, not build-time variables. CLI download includes the resolved Application environment.

Container operators can use values granted to their workload when they start or deploy it. Runtime and terminal access can expose a workload's own environment; Envault management permissions does not isolate a delivered value from that workload's operators.

Container permissions

Container changes and deployment require the corresponding Container Engine or General role. Deletion requires Admin or Owner. Project authority does not grant Workspace Envault access.

Automatic runtime context

When a Secret Group environment is delivered through Link Envault or downloaded through the CLI, Envault automatically includes ENVAULT_GROUP and ENVAULT_ENVIRONMENT with the group and environment names. These are generated values, not stored secrets, and do not appear as generated rows in the Envault secret list or Container Engine environment-variable list.

The two names are reserved for delivery metadata and take precedence over colliding stored or local values. Container Engine does not allow creating or editing them through its environment-variable controls. Your running application can read them normally from its process environment.

Link changes apply on the next start or redeployment that synchronizes Envault. Changing the linked environment updates the values; unlinking removes them on the next synchronization. Containers without a linked Secret Group environment receive no generated group context. Linking alone does not restart a running container, and a plain restart does not refresh the delivered values.

Group and environment creation opens in a panel on the right. Enter a name and submit; the panel closes after success and retains your entry if saving fails. Group and environment rename and delete actions remain in a central dialog. Secret values continue to be edited inline on their environment page.