MCPcopy Create free account
hub / github.com/coder/coder / GetBoundaryLogByID

Method GetBoundaryLogByID

coderd/database/dbauthz/dbauthz.go:2775–2780  ·  view source on GitHub ↗

TODO (PR #24810): Replace rbac.ResourceAuditLog with dedicated boundary_log resource type.

(ctx context.Context, id uuid.UUID)

Source from the content-addressed store, hash-verified

2773
2774// TODO (PR #24810): Replace rbac.ResourceAuditLog with dedicated boundary_log resource type.
2775func (q *querier) GetBoundaryLogByID(ctx context.Context, id uuid.UUID) (database.BoundaryLog, error) {
2776 if err := q.authorizeContext(ctx, policy.ActionRead, rbac.ResourceAuditLog); err != nil {
2777 return database.BoundaryLog{}, err
2778 }
2779 return q.db.GetBoundaryLogByID(ctx, id)
2780}
2781
2782// TODO (PR #24810): Replace rbac.ResourceAuditLog with dedicated boundary_log resource type.
2783func (q *querier) GetBoundarySessionByID(ctx context.Context, id uuid.UUID) (database.BoundarySession, error) {

Callers

nothing calls this directly

Calls 2

authorizeContextMethod · 0.95
GetBoundaryLogByIDMethod · 0.65

Tested by

no test coverage detected