mirror of
https://github.com/coder/coder.git
synced 2026-06-03 04:58:23 +00:00
da6362927b
Extends the dbcrypt CLI utility so 'coder server dbcrypt rotate' and 'coder server dbcrypt decrypt' move the three encrypted MCP server config columns (oauth2_client_secret, api_key_value, custom_headers) onto the new cipher, and 'coder server dbcrypt delete' wipes them alongside user tokens and AI provider keys. Adds a maintenance-only UpdateEncryptedMCPServerConfig query plus the dbauthz and dbcrypt interceptor wrappers that the rotation loop needs to re-encrypt rows in place without orphaning secrets. Extends TestServerDBCrypt with an MCP server config fixture so the existing rotate/decrypt/delete end-to-end test exercises the new code paths. Stack: 2/6 (dbcrypt CLI rotate/decrypt/delete coverage)