DEMO A showcase of hev ask⌘K agentic search — running on Coder's real docs. Unaffiliated with Coder; not the official documentation. Official Coder docs ↗ Add ask to your docs ↗
Documentation › server dbcrypt rotate

server dbcrypt rotate

Rotate database encryption keys.

Usage

coder server dbcrypt rotate [flags]

Options

—postgres-url

Typestring
Environment$CODER_PG_CONNECTION_URL

The connection URL for the Postgres database.

—postgres-connection-auth

Typepassword|awsiamrds
Environment$CODER_PG_CONNECTION_AUTH
Defaultpassword

Type of auth to use when connecting to postgres.

—new-key

Typestring
Environment$CODER_EXTERNAL_TOKEN_ENCRYPTION_ENCRYPT_NEW_KEY

The new external token encryption key. Must be base64-encoded.

—old-keys

Typestring-array
Environment$CODER_EXTERNAL_TOKEN_ENCRYPTION_ENCRYPT_OLD_KEYS

The old external token encryption keys. Must be a comma-separated list of base64-encoded keys.

-y, —yes

Typebool

Bypass confirmation prompts.

esc