Skip to content
AnchrasDocumentation
Browse documentation

Security and governance / User guide

Secrets and encryption

Store application secrets and manage protected credentials used by platform services.

On this page

Before you begin

Have permission to manage secrets and identify which workload or integration needs the value. Platform operators must configure a persistent encryption key or supported secret backend.

Get started

  1. Create a named secret in the intended organization.
  2. Provide the value through the protected secret workflow.
  3. Bind or reference it from the consuming workload or integration.
  4. Verify the consumer works without copying the value into general configuration or logs.

Operate the service

Rotate secrets by updating the supported reference/binding and validating the consumer. Revoke or remove unused secrets after checking dependencies. Preserve the encryption keys needed for backup recovery during operator key rotations.

Availability and limits

Secret storage and workload access are separate controls. A database backup alone cannot recover sealed credentials without the relevant encryption keys. Backend capabilities and external secret-store recovery depend on operator configuration.

Troubleshooting

For a failed consumer, check secret reference, organization, access, and version. For decrypt failures after operator rotation, verify configured prior keys and the migration procedure rather than replacing values blindly.

Next steps

Use the CLI guide to automate repeatable work, or the API guide to integrate Anchras with your own tools.

CLI commands

Install and authenticate using the CLI guide. The table describes command families; required arguments are shown in their usage output.

CommandPurpose
secrets listList one project's secrets (--project; metadata only, KMS-sealed values never shown); --search matches a name or description substring. A secret lives in a project (project_id in -o json); one in a project you cannot read is not found to every secrets command.
secrets get <id>Fetch one secret metadata.
secrets describe <id>Metadata plus plaintext when caller has secret.reveal (owner).
secrets create--name plus exactly one of --value-stdin or --value-file; optional --description and --project (the project the secret lives in). Names stay unique across the organization, not per project.
secrets update--secret <id> plus --name NAME and/or --description TEXT.
secrets delete <id> [--expected-version N --expected-name NAME --expected-description TEXT]Deletes a secret row. Supply all three optional preconditions to require an atomic exact match; description may be empty. A changed or missing secret fails without fallback. Conditional deletion uses DeleteSecretIfMatches, so older servers reject it safely.
secrets rotate--secret <id> plus exactly one of --value-stdin or --value-file re-seals the payload (requires secret.rotate).

API reference

Browse procedures, request and response types, and download the complete OpenAPI contract.