Skip to content

Who may do what: an access review (`policy`).

GET
/v1/access-review
curl --request GET \
--url https://ferritor.example.internal:7070/v1/access-review

Every grant of the config rules and (when in force) the stored policies, one per identity, action, scope and rule: the inverse of /v1/policy-check. Paged; a later page after the policies changed is 409 aborted: start again.

identity
string

Only the grants naming this identity (the <name> of ferritor://<name>; patterns covering it included), or this exact <prefix>/* pattern.

path
string

Only the grants on this secret or prefix, or below it.

page_size
integer format: int32

0 or absent: 1000; capped at 2000.

page_token
string

The previous page’s next_page_token.

One page.

Media typeapplication/json
object
config_fingerprint
required

SHA-256 over this server’s config rules, as its audit log’s policy_loaded records it; empty in dev mode.

string
enforced
required

False in dev mode: everyone may do everything there, whatever the rules say.

boolean
grants
required

In rule-name order, then action, then scope.

Array<object>

One grant: identity may do action on the scope, by granted_by.

object
action
required
string
granted_by
required

The rule: a stored policy’s name, or a config rule’s config:….

string
identity
required
string
prefix

With scope prefix.

string
relation

With path asked about.

string
Allowed values: on below
scope
required

Where a grant applies.

string
Allowed values: server all_paths prefix
source
required

Where a rule comes from.

string
Allowed values: config stored
next_page_token
required

Empty when there’s no next page.

string
revision

The stored set’s revision, when loaded.

integer format: int64
stored
required

Whether the stored policies are in it: only when loaded.

string
Allowed values: loaded sealed unverified

Example

{
"grants": [
{
"relation": "on",
"scope": "server",
"source": "config"
}
],
"stored": "loaded"
}

An error: see error.code.

Media typeapplication/json

Every error’s body.

object
error
required
object
code
required

Match on this, never on the message.

string
Allowed values: invalid_argument unauthenticated permission_denied not_found method_not_allowed version_mismatch live_version no_namespace unknown_profile busy aborted misdirected_request sealed unaudited unknown_kek policy_unverified rate_limited unavailable failed_precondition internal
message
required

For people; may change.

string

Example

{
"error": {
"code": "invalid_argument"
}
}