Thanks to visit codestin.com
Credit goes to github.com

Skip to content

refactor(dbcrypt): move key revocation process to in-api #77

Closed as not planned
Closed as not planned
@johnstcn

Description

@johnstcn

Context: coder/coder#9523 (comment)

The current dbcrypt rotation logic

  • Requires direct access to the database
  • May fail if a coderd instance is still running with the old key and inserts encrypted data when we attempt to revoke the old key.

Moving it to an in-API endpoint would allow for a more ergonomic key rotation process:

  • The replica that services the request can validate that it has the correct keys and is not trying to revoke its active key
  • The rotation request can now be performed by the slim CLI
  • The rotation request can now be performed without direct database access

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions