Engineering guide · ICAM

Certification Templates And Recurrence

Status: currentReviewed: 2026-07-26Audience: governance API developers, certification administrators, platform operators, security reviewers
On this pageAuthority BoundariesLifecycleRecurrence ModelMonth And DST RulesCatch-UpREST APICreate A Quarterly TemplateActivate With Maker-CheckerScheduler And RecoveryStorage And Tamper DefensesErrorsVerification

Atlas certification templates provide the repeatable control plane for resource and identity access reviews. They cover the useful Okta campaign scheduling model—start date and time zone, 1 through 90 day duration, resource or identity scope, reviewer routing, self-review control, one-time launch, and recurring day, week, month, or year intervals—and add explicit concurrency, catch-up, maker-checker, and tamper-evidence semantics.

The template API is available in the gateway OpenAPI document at /openapi.json and in Swagger UI at /docs/.

Authority Boundaries

Four objects have deliberately different authority:

CertificationTemplate

The mutable-until-activation configuration authority. A recurrence change increments recurrenceVersion; an ordinary configuration or lifecycle change increments revision.

CertificationOccurrence

The durable record that one recurrence time was claimed, skipped, completed, or failed. The unique key is tenant, template, recurrence version, and exact scheduled instant.

CertificationCampaign

The materialized review work. Every item starts pending. The scheduler never approves, revokes, disables, reassigns, or completes an item.

FulfillmentAction

Remediation created only after an authorized reviewer decision. Scheduling a campaign cannot create a fulfillment action.

This separation matters during recovery. A completed occurrence proves that its campaign was inserted in the same PostgreSQL transaction. It does not claim that any access was reviewed or changed.

Lifecycle

State lifecycle
State lifecycleState diagramOpen full size ↗

retired and deleted are terminal. Delete is a retained tombstone, not a physical SQL delete.

An active template is configuration-immutable. Deactivate it before changing scope, reviewer routing, duration, or recurrence. This prevents a scheduler worker from materializing a campaign from a half-changed definition.

All mutations require fresh AAL2 and certification-administration authority. Activating a recurring template also requires an administrator other than lastModifiedBy. Activation performs a live, fail-closed dependency rehearsal:

  • every explicit resource resolves inside the tenant;

  • resource campaigns have a nonempty, at-most-50 resource scope;

  • every candidate assignment resolves a reviewer or configured fallback;

  • self-review restrictions hold;

  • the candidate review count is from 1 through maximumItems, never more than 100,000.

This rehearsal is intentionally stricter than accepting syntactically valid configuration and discovering broken reviewers at fire time. Dependencies are checked again when each occurrence materializes because owners, assignments, and account status can change.

Recurrence Model

recurrence is authoritative. schedule is a response compatibility alias such as monthly, quarterly, or annual.

Field Range Meaning

frequency

manual, day, week, month, year

Calendar unit. Manual templates have no automatic fire time.

interval

day 1-182; week 1-26; month 1-24; year 1-2

Number of calendar units between campaign starts.

timeZone

IANA name

Civil-time authority, for example America/New_York. Fixed-offset aliases are not a substitute for a regional DST rule set.

startAt

RFC 3339 instant

First occurrence. Use the offset that represents the intended local wall time in timeZone.

monthlyMode

day_of_month, nth_weekday

Repeat on the start day, or on its ordinal weekday.

catchUpPolicy

skip, latest, bounded

How restart downtime or scheduler unavailability treats overdue occurrences.

maxCatchUp

1-25

Maximum campaigns materialized from one overdue series evaluation.

endAt

optional RFC 3339 instant

No occurrence is scheduled after this instant.

occurrenceLimit

0-10,000

Maximum scheduled occurrences, including durable skips. Zero means no count bound; endAt and operational retirement remain available.

The campaign duration must be shorter than the recurrence interval. This matches the operational requirement that one series member close before the next begins. Duration cannot exceed 90 days.

Month And DST Rules

Calendar expansion uses the original start’s civil components, not repeated fixed-hour arithmetic:

  • January 31 with day_of_month becomes February 28 or 29, then March 31.

  • A fifth weekday missing from a later month uses that month’s last matching weekday.

  • A nonexistent spring-forward wall time advances to the first valid local minute.

  • An ambiguous fall-back wall time chooses the earlier of the two UTC instants.

  • dueAt adds durationDays as civil days in the recurrence time zone, so a DST transition does not silently move the displayed due time by an hour.

These choices are stable and unit tested. Clients should not pre-expand a series and send independent campaigns; doing so would lose Atlas occurrence deduplication.

Catch-Up

skip

Only the newest overdue time is considered. It materializes when within the five-minute scheduling grace; otherwise Atlas records a terminal skipped occurrence and advances the series.

latest

Older times are collapsed and only the newest overdue campaign materializes.

bounded

The newest maxCatchUp times materialize. Older backlog is collapsed into a terminal skipped occurrence before the cursor advances. The global scheduler batch, at most 200, remains an additional resource bound.

The policy is part of the immutable recurrence version. Changing it requires deactivation and produces a new recurrenceVersion, preventing occurrences from two definitions from sharing a deduplication key.

REST API

Method Route Assurance Purpose

GET

/api/v1/governance/control/certification-templates

authenticated

List tenant templates with status and bounded paging.

POST

/api/v1/governance/control/certification-templates

fresh AAL2; Idempotency-Key

Create a draft and its first evidence event.

GET

/api/v1/governance/control/certification-templates/{templateId}

authenticated

Read one template and strong ETag.

PUT

/api/v1/governance/control/certification-templates/{templateId}

fresh AAL2; If-Match; Idempotency-Key

Revise a draft or inactive template.

DELETE

/api/v1/governance/control/certification-templates/{templateId}

fresh AAL2; If-Match; Idempotency-Key

Tombstone a draft or inactive template.

POST

/api/v1/governance/control/certification-templates/{templateId}/lifecycle/{transition}

fresh AAL2; If-Match; Idempotency-Key; independent recurring activation

active/activate, inactive/deactivate, or retired/retire.

GET

/api/v1/governance/control/certification-templates/{templateId}/events

authenticated

Read the verified append-only event chain.

POST

/api/v1/governance/control/certification-templates/{templateId}/launch

fresh AAL2; Idempotency-Key

Materialize one campaign from an active template.

POST

/api/v1/governance/control/certification-templates/scheduler/run

fresh AAL2 plus governance.certifications.schedule

Run one controlled, bounded reconciliation evaluation. Production normally uses the internal scheduler.

Idempotency-Key is 16 through 160 visible ASCII characters. Reusing a key with the exact request returns the committed snapshot; reusing it with different action, revision, or body returns 409.

If-Match accepts a numeric revision such as "v3". A missing precondition returns 428; a stale revision returns 409.

Create A Quarterly Template

POST /api/v1/governance/control/certification-templates HTTP/1.1
Authorization: Bearer <fresh-aal2-token>
Idempotency-Key: finance-quarterly-template-2026-01
Content-Type: application/json

{
  "template": {
    "name": "Quarterly finance access",
    "description": "Review active finance application assignments",
    "campaignType": "resource",
    "resourceIds": ["ent-finance-approver"],
    "reviewerType": "resource_owner",
    "fallbackReviewerUserId": "user-governance-fallback",
    "disableSelfReview": true,
    "requireRevokeJustification": true,
    "requireApproveJustification": true,
    "durationDays": 14,
    "maximumItems": 10000,
    "recurrence": {
      "frequency": "month",
      "interval": 3,
      "timeZone": "America/New_York",
      "startAt": "2026-10-01T09:00:00-04:00",
      "monthlyMode": "day_of_month",
      "catchUpPolicy": "bounded",
      "maxCatchUp": 1
    }
  }
}

Creation returns 201, ETag: "v1", status draft, and recurrenceVersion: "1".

Activate With Maker-Checker

POST /api/v1/governance/control/certification-templates/ctpl-42/lifecycle/activate HTTP/1.1
Authorization: Bearer <different-fresh-aal2-admin-token>
If-Match: "v1"
Idempotency-Key: finance-quarterly-activation-2026-01
Content-Type: application/json

{
  "reason": "Resource owners, fallback reviewer, assignment scope, and duration verified"
}

The successful response is revision 2 and exposes nextFireAt. A recurring activation by the last editor returns 403.

Scheduler And Recovery

atlas-governance evaluates each configured tenant every 30 seconds by default. Operators can bound it with:

Environment variable Default Meaning

ATLAS_GOVERNANCE_CERTIFICATION_SCHEDULER_SECONDS

30

Evaluation interval.

ATLAS_GOVERNANCE_CERTIFICATION_SCHEDULER_BATCH

25

Maximum claims per tenant evaluation; API hard maximum is 200.

ATLAS_GOVERNANCE_CERTIFICATION_SCHEDULER_TENANTS

default

Comma-separated explicit tenant allowlist. Tenant discovery is not inferred from untrusted template input.

Workers use a bounded lease. A failed materialization is retained with a safe, secret-scrubbed error and can be reclaimed. After five attempts it becomes dead_letter. An executing occurrence whose lease expires is reclaimable after a process crash.

The PostgreSQL claim transaction locks the live template cursor and inserts the unique occurrence before advancing next_fire_at. Completion inserts the deterministic campaign and changes the occurrence to completed in one transaction. Concurrent workers use row locks and occurrence uniqueness; restart uses the persisted cursor and deterministic campaign ID.

Storage And Tamper Defenses

Migration 073_governance_certification_template_recurrence.sql creates:

governance_certification_templates

Tenant-qualified CAS authority with recurrence version, operational cursor, bounded JSON, and database-derived payload SHA-256.

governance_certification_template_events

Append-only sequence with request hash, previous hash, evidence hash, immutable snapshot, and tenant-scoped idempotency uniqueness.

governance_certification_occurrences

Unique fire, lease, retry, terminal status, campaign reference, and evidence snapshot.

Database triggers reject event updates/deletes, template physical deletes and nonmonotonic revisions, occurrence identity rewrites, attempt rollback, and terminal occurrence mutation. Foreign keys use ON DELETE RESTRICT; no certification evidence cascades away with another object.

The SQL store recomputes and checks each template payload seal on read and verifies the event chain before returning it. A failed integrity check is a conflict, not a partially trusted response.

Errors

Status Meaning

400

Malformed recurrence, unknown time zone or reviewer mode, duration overlap, unbounded scope, or secret-looking text.

403

Missing fresh AAL2/role/capability or failed independent activation.

404

The template does not exist in the authenticated tenant.

409

CAS, replay binding, immutable lifecycle, unresolved dependency, or occurrence claim conflict.

428

An existing-template mutation omitted If-Match.

503

The governance authority is unavailable. Atlas does not substitute local success for a failed durable write.

Verification

Run focused service, race, gateway, OpenAPI, migration, and documentation checks:

Internal implementation checks are omitted from this public guide.

The integration-tag compile does not start infrastructure. For the real resource-bounded PostgreSQL restart/concurrency/tamper proof, obtain the serialized Docker slot and run:

ATLAS_ICAM_POSTGRES_TMPFS=true \
  scripts/test/run-certification-template-docker-validation.sh

The runner requires at least 1 GiB available memory, applies migration 073, executes concurrent scheduler workers, restarts the SQL authority, verifies exactly one pending-review campaign and no fulfillment actions, attempts forbidden SQL evidence mutations, and writes logs plus manifest.sha256 under artifacts/certification-template-docker-validation/<timestamp>/.

The focused proof passed on 2026-07-26. Its checksum-verified evidence is artifacts/certification-template-docker-validation/20260726T162615Z/manifest.sha256.

This proves the Atlas-owned Docker boundary. It does not prove that an external application accepts later revocation fulfillment; that remains connector and target-system evidence.