-
Notifications
You must be signed in to change notification settings - Fork 0
Secrets Vault
The Secrets Vault stores organization-scoped sensitive configuration and injects it into deployments without committing credentials to source code or container images.
- database connection strings and passwords;
- API and OAuth client secrets;
- private repository tokens;
- signing and encryption keys;
- webhook secrets;
- SMTP credentials;
- third-party service credentials.
Ordinary non-sensitive settings can remain deployment environment variables. Treat any value that grants access or reveals customer data as a secret.
Secrets are encrypted at rest with AES-256-GCM and decrypted only for authorized workflows. Values are not returned by normal list operations. Access is constrained by organization membership, role permissions, environment, and token/OAuth scope.
Self-hosted operators must keep the platform encryption key stable and protected. Changing it without a migration makes existing encrypted credentials unreadable.
- Open Secrets.
- Select Add Secret.
- Enter a name, value, and environment.
- Save, then redeploy workloads that need the new value.
Interactive input keeps the value out of shell history:
nexus secret create --name DATABASE_URL --environment PRODUCTIONInline values are supported but can remain in shell history and process inspection:
nexus secret create \
--name API_KEY \
--environment PRODUCTION \
--value "$API_KEY"Use nexusai_secrets_create with secrets:manage. MCP clients should confirm sensitive mutations and avoid echoing values into chat transcripts.
Secret environments are DEVELOPMENT, STAGING, and PRODUCTION. The deployment receives values for its selected environment.
Use separate credentials per environment. Do not copy production keys into development merely for convenience.
Secrets become environment variables when a deployment is created or redeployed. They are not written into the source archive or built image.
After creating, updating, or deleting a secret, redeploy affected workloads:
nexus deploy redeploy app --waitExisting running containers do not automatically refresh process environment variables.
nexus secret list
nexus secret list --environment PRODUCTION
nexus secret update <secret-id>
nexus secret delete <secret-id> --yesList results show metadata, not plaintext values. Deleting a vault entry does not remove a value already present in a running process; redeploy or restart with a new release.
Use overlap when the external service allows more than one credential:
- create a new credential at the provider;
- update the NEXUS AI secret;
- redeploy every dependent workload;
- verify health and logs;
- revoke the old provider credential;
- record the rotation in the change process.
If the provider supports only one active credential, schedule a maintenance window and prepare rollback steps.
AI provider keys are managed through AI Providers, not ordinary deployment secrets. They use encrypted storage and are selected by builder and generation workflows. Exact provider/model availability is shown in the dashboard.
NEXUS AI may generate credentials for database services, managed databases, or S3-compatible buckets. Use the resource-specific connection/credential actions to retrieve or rotate them. Those sensitive reads are separate from the general Secrets Vault and are audit logged.
After bucket credential rotation, redeploy every attached application so the new S3_* values take effect.
nxk_... access tokens are created under Access Tokens or nexus token. They have explicit scopes and revocation. Store a token securely after creation because the full value is not shown again.
nexus token list
nexus token create
nexus token revoke <token-id>- Avoid printing process environments.
- Redact authorization headers and connection URLs.
- Do not paste secrets into AI prompts, support tickets, issue trackers, or Git history.
- Review audit logs after sensitive reads, writes, deletes, and rotations.
- Use distinct credentials for each application or integration where possible.
Application code can still log a secret accidentally. The vault reduces exposure but cannot correct unsafe logging inside the application.
Keep CI credentials in the CI provider's secret store:
env:
NEXUSAI_TOKEN: ${{ secrets.NEXUSAI_TOKEN }}Use a narrowly scoped NEXUS AI token and rotate it independently from user credentials. Never commit .env files containing live values.
If a secret may be exposed:
- revoke or rotate it at the upstream provider first;
- update the NEXUS AI secret;
- redeploy affected workloads;
- revoke related access tokens or sessions;
- inspect audit, build, runtime, and provider logs;
- remove the value from Git history, tickets, or artifacts where possible;
- document affected systems and the containment time.