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

Struct RegoAuthorizer

coderd/rbac/authz.go:283–293  ·  view source on GitHub ↗

RegoAuthorizer will use a prepared rego query for performing authorize()

Source from the content-addressed store, hash-verified

281
282// RegoAuthorizer will use a prepared rego query for performing authorize()
283type RegoAuthorizer struct {
284 query rego.PreparedEvalQuery
285 partialQuery rego.PreparedPartialQuery
286
287 authorizeHist *prometheus.HistogramVec
288 prepareHist prometheus.Histogram
289
290 // strict checking also verifies the inputs to the authorizer. Making sure
291 // the action make sense for the input object.
292 strict bool
293}
294
295var _ Authorizer = (*RegoAuthorizer)(nil)
296

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected