Expand description
Access recertification: a periodic review of the grants and role assignments in force by someone accountable for them, with what nobody renews taken away when the time is up (ISO 27001 A.5.18, SOX access reviews).
A Campaign has a scope (RecertScope: an anchor, permissions, roles, kinds of subject), a
reviewer rule per item, a deadline, how long a kept item stays certified and the action that runs
on what was not reviewed (DefaultAction). It is one document: the items are generated at the
opening from the grants and the subjects you pass, each with the Impact of revoking it when the
flow has Recertifications::with_impact.
- Open.
Recertifications::openrefuses a scope with nothing in it, a deadline that is not in the future and an escalation default without an escalation reviewer. Onlyallowgrants and assignments that have not ended become items. - Decide.
Recertifications::decidetakes aRecertDecisionper item:keepcertifies the access for the campaign’s period (the grant is not touched: the certification is what is recorded),revokebecomes aMutation(Mutation::RemoveorMutation::RevokeRole) through theGovernancewith the reviewer as the actor, so every invariant, separation of duties included, judges it, anddelegatehands the item to another reviewer. The reviewer must be identified, hold the permission the campaign declares, match the item’s reviewer rule (or be its delegate), not review access they hold themselves, and not accumulate conflicting duties of the catalog’s separation sets. A decision after the deadline is refused. - Close.
Recertifications::closeruns from the deadline on and applies the default action to every item still open:expirerevokes it through the governance (an item the invariants refuse to revoke is flagged, never silently kept),flagkeeps it marked for follow-up,escalatehands it to the escalation reviewer. Nothing is decided after the closing; a follow-up is a new campaign. - Audit. With the
auditfeature and an auditor on the governance:recert_open, onerecert_decideper decision (refused ones included,rejected) and per default action, andrecert_close. A revocation also leaves the usualgrant_remove/role_revokerecord. The record of a decision is written before the revocation is applied. - Report.
Campaign::reportcounts the items by outcome and by reviewer.
The crate reads no clock and persists nothing: the caller passes the instant, stores the grants and
subjects that a revocation returns, and keeps the campaigns in a RecertStore. Two reviewers of the
same campaign must not run at once; the store’s RecertStore::update refuses a stale revision, and
a host with several processes serialises per campaign before it applies the grants.
Structs§
- Campaign
- A recertification campaign and its items.
- Campaign
Report - A campaign counted by outcome and by reviewer, from
Campaign::report. - Campaign
Spec - What a campaign is made of, before it opens.
- Closed
- A campaign closed: the grants to persist, the subjects whose roles changed and the report.
- Decided
- A decision taken and the grants to persist.
- Delegation
- A reviewer handing an item over.
- Memory
Recert Store RecertStorein memory.- Recert
Item - One access to certify.
- Recert
Scope - What a campaign reviews. Empty lists mean everything on that axis; only
permissionsselects only grants, onlyrolesonly role assignments, and both select both. - Recertifications
- The recertification flow over a
Governanceand aRecertStore. - Reviewer
Route - Sends the items about one permission or role to a reviewer rule other than the campaign’s default.
- Reviewer
Tally - What each reviewer did.
Enums§
- Campaign
Status - Where a campaign stands.
- Default
Action - What runs on an item nobody reviewed when the campaign closes.
- Item
State - Where an item stands. Only
Opencan still change. - Recert
Decision - What a reviewer decides about an item.
- Recert
Error - Why a recertification step failed.
- Recert
Target - The access an item is about.
- Reviewer
Rule - Who may review an item.
Traits§
- Recert
Store - Where the campaigns are kept. Implementations are shared between threads.