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

Method InsertDBCryptKey

coderd/database/dbauthz/dbauthz.go:5581–5586  ·  view source on GitHub ↗
(ctx context.Context, arg database.InsertDBCryptKeyParams)

Source from the content-addressed store, hash-verified

5579}
5580
5581func (q *querier) InsertDBCryptKey(ctx context.Context, arg database.InsertDBCryptKeyParams) error {
5582 if err := q.authorizeContext(ctx, policy.ActionCreate, rbac.ResourceSystem); err != nil {
5583 return err
5584 }
5585 return q.db.InsertDBCryptKey(ctx, arg)
5586}
5587
5588func (q *querier) InsertDERPMeshKey(ctx context.Context, value string) error {
5589 if err := q.authorizeContext(ctx, policy.ActionCreate, rbac.ResourceSystem); err != nil {

Callers

nothing calls this directly

Calls 2

authorizeContextMethod · 0.95
InsertDBCryptKeyMethod · 0.65

Tested by

no test coverage detected