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

Method GetDBCryptKeys

coderd/database/dbauthz/dbauthz.go:3339–3344  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

3337}
3338
3339func (q *querier) GetDBCryptKeys(ctx context.Context) ([]database.DBCryptKey, error) {
3340 if err := q.authorizeContext(ctx, policy.ActionRead, rbac.ResourceSystem); err != nil {
3341 return nil, err
3342 }
3343 return q.db.GetDBCryptKeys(ctx)
3344}
3345
3346func (q *querier) GetDERPMeshKey(ctx context.Context) (string, error) {
3347 if err := q.authorizeContext(ctx, policy.ActionRead, rbac.ResourceSystem); err != nil {

Callers

nothing calls this directly

Calls 2

authorizeContextMethod · 0.95
GetDBCryptKeysMethod · 0.65

Tested by

no test coverage detected