Who may do what: an access review (`policy`).
const url = 'https://ferritor.example.internal:7070/v1/access-review';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://ferritor.example.internal:7070/v1/access-reviewEvery 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.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”Only the grants naming this identity (the <name> of
ferritor://<name>; patterns covering it included), or this exact
<prefix>/* pattern.
Only the grants on this secret or prefix, or below it.
0 or absent: 1000; capped at 2000.
The previous page’s next_page_token.
Responses
Section titled “Responses”One page.
object
SHA-256 over this server’s config rules, as its audit log’s
policy_loaded records it; empty in dev mode.
False in dev mode: everyone may do everything there, whatever the rules say.
In rule-name order, then action, then scope.
One grant: identity may do action on the scope, by granted_by.
object
The rule: a stored policy’s name, or a config rule’s config:….
With scope prefix.
With path asked about.
Where a grant applies.
Where a rule comes from.
Empty when there’s no next page.
The stored set’s revision, when loaded.
Whether the stored policies are in it: only when loaded.
Example
{ "grants": [ { "relation": "on", "scope": "server", "source": "config" } ], "stored": "loaded"}default
Section titled “default”An error: see error.code.
Every error’s body.
object
object
Match on this, never on the message.
For people; may change.
Example
{ "error": { "code": "invalid_argument" }}