MCPcopy Index your code
hub / github.com/coder/coder / UpdateEncryptedAIProviderKey

Method UpdateEncryptedAIProviderKey

coderd/database/querier.go:1248–1248  ·  view source on GitHub ↗

Updates only the encrypted columns (api_key, api_key_key_id) and the updated_at timestamp on a row. Used by the dbcrypt key rotation utility to re-encrypt or decrypt rows in place.

(ctx context.Context, arg UpdateEncryptedAIProviderKeyParams)

Source from the content-addressed store, hash-verified

1246 // the updated_at timestamp on a row. Used by the dbcrypt key
1247 // rotation utility to re-encrypt or decrypt rows in place.
1248 UpdateEncryptedAIProviderKey(ctx context.Context, arg UpdateEncryptedAIProviderKeyParams) (AIProviderKey, error)
1249 // Updates only the encrypted columns (settings, settings_key_id) and
1250 // the updated_at timestamp on a row, regardless of its deleted flag.
1251 // Used by the dbcrypt key rotation utility to re-encrypt or decrypt

Callers 6

TestAIBridgeMethod · 0.65
RotateFunction · 0.65
DecryptFunction · 0.65

Implementers 5

sqlQueriercoderd/database/db.go
queryMetricsStorecoderd/database/dbmetrics/querymetrics
queriercoderd/database/dbauthz/dbauthz.go
MockStorecoderd/database/dbmock/dbmock.go
MockStoreMockRecordercoderd/database/dbmock/dbmock.go

Calls

no outgoing calls

Tested by 1

TestAIBridgeMethod · 0.52