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

Method RevokeDBCryptKey

coderd/database/dbauthz/dbauthz.go:6394–6399  ·  view source on GitHub ↗
(ctx context.Context, activeKeyDigest string)

Source from the content-addressed store, hash-verified

6392}
6393
6394func (q *querier) RevokeDBCryptKey(ctx context.Context, activeKeyDigest string) error {
6395 if err := q.authorizeContext(ctx, policy.ActionUpdate, rbac.ResourceSystem); err != nil {
6396 return err
6397 }
6398 return q.db.RevokeDBCryptKey(ctx, activeKeyDigest)
6399}
6400
6401func (q *querier) SelectUsageEventsForPublishing(ctx context.Context, arg time.Time) ([]database.UsageEvent, error) {
6402 // ActionUpdate because we're updating the publish_started_at column.

Callers

nothing calls this directly

Calls 2

authorizeContextMethod · 0.95
RevokeDBCryptKeyMethod · 0.65

Tested by

no test coverage detected