Worked Examples
Apply identity and access boundaries — Sustainable Catalyst Platform Core
Platform Core separates identity verification, access decisions, and the membership relationships governing research resources. This guide documents those boundaries, their implementation, and the checks required to prevent unauthorized access across projects and organizations.
Application: Sustainable Catalyst Platform Core
Component: Governance, Access & Audit Control Plane
Document type: Apply / operational procedure
Source baseline: 59b8444365525a58fd4f6a7e29a20d712769e1a2 (November 7, 2026)
Verification: Source inspected; offline synthetic tests only; deployed and independent review pending
Estimated reading time: 18–22 minutes
Scope: Authenticate the calling service, evaluate its permitted action, and independently enforce organization/project/object ownership at the resource boundary. Preserve research provenance without treating governance metadata as evidence of scientific validity.
Goal
Keep four identities separate: authentication proves which principal presented a valid credential; authorization decides whether that principal may perform an action; organization membership records institutional affiliation; project membership/ownership binds specific projects and research objects to that institution and its actors. Successful authentication or a role name must never automatically imply object access.
Acceptance requirement: under distinct authenticated principals, the permitted owner may read and update only the expected objects; a foreign principal cannot read or mutate a private object, and neither access failure changes the accepted research evidence. Test this at the actual protected endpoint, not only the policy evaluator.
Implemented authority boundaries
| Layer | Inspected implementation | What it does not prove |
|---|---|---|
| API transport | require_write checks a configured X-SC-API-Key; require_read checks a public-reads feature flag. |
A service API key is not evidence that a named human belongs to an organization or owns a project. |
| Governance decisions | /v1/governance/decisions/evaluate evaluates submitted principal, product, resource type, action and visibility. |
The request body identifies the evaluated principal; the route does not itself bind that value to a verified human identity. |
| Policy and role ledger | Policies match principal/product/resource type/action/visibility. Role bindings support a product scope. | A role binding does not encode verified per-project membership; the inspected policy matcher does not check resource_id against an object grant. |
| Research project routes | /v1/research/projects/{project_id}/bundle has a read dependency; writes use the write dependency. |
Those dependencies alone are not proof of user/project-level isolation. A resource-service owner check must be demonstrated separately. |
| Public API | /api/v1/governance/readiness uses public API credential scope data:read. |
The public readiness envelope deliberately does not publish policies, role bindings or the audit ledger. |
| Credentials and keys | Credential lifecycle stores metadata/secret references, not secret values. | Registration or rotation metadata does not establish per-object human authorization. |
Requirements
- Approved isolated staging with disposable projects and at least two independently authenticated test subjects; never use production research records to probe permissions.
- Confirmed revision, feature flags and
auditversusenforcemode, plus migration0019state. - Known authentication authority, session identity mapping, trusted server-to-server transport, and documented owner of organization/project membership.
- Inventory of protected routes and owner checks for project, object, export, attachment, notebook, graph and publication paths.
- Preserved pre-test project ID, revision, byte hash, rights statement and one metadata-only audit reference.
- Authorized rollback/restore point, separate test accounts, trace identifier and an incident owner. No raw credentials in evidence bundles.
Procedure
Use the following sequence to inspect readiness, bind verified identities to object scope, evaluate the action and check actual route enforcement. Keep project and organization records synthetic until their real owner is confirmed.
Verify governance readiness without changing state
In the approved staging network, an operator can inspect the readiness response. This is a read, not proof that each business route enforces the evaluator.
GET /v1/governance/readiness
# Examine: enabled, enforcement_mode, migration_0019_applied, pending_migrations.
# Record the deployment image digest and response timestamp.
# Do not transmit service keys in tickets or screenshots.
The governance release default is audit. An allowed: false evaluation in audit mode may be observational rather than a blocking enforcement result. Before claiming access isolation, require a route-level negative request using an authenticated foreign principal.
Establish real principal and object scope
- Identify the upstream authentication service and how the trusted server resolves
principal_typeandprincipal_idfrom a validated token or server session. Never let a client assert another actor identity as a source of authorization. - Assign a stable
organization_idandproject_idonly if a verified membership system owns these records. The inspected Core governance role binding is product-scoped, not a substitute for either membership registry. - Resolve owner and membership from authoritative persistence. Resolve the object by ID and check the object belongs to the expected project before considering access.
- Define the exact action (
read,create,update,delete,execute,manage,evaluateorexport), resource type, product and requested visibility. - Bind the evaluated decision to that verified principal, project/object relationship and the actual downstream route. Deny where any link is missing.
Role and policy vocabulary
| Governance role | Source-defined baseline actions | Additional guard |
|---|---|---|
viewer |
read | Never implies ownership of any private record. |
analyst |
read, evaluate, export | Export needs object rights and disclosure controls. |
editor |
read, create, update, evaluate, export | Never implies publication approval. |
operator |
read, create, update, execute, evaluate, export | Restrict to specified product/runtime scope. |
admin |
all modeled governance actions | Administrative power is not scientific authority or blanket data consent. |
service |
read, create, execute, evaluate | A service identity does not identify the end user behind a request. |
Policies may allow or deny; their fields include principal_type, principal_id, product_scope, resource_type, action, visibility_ceiling and priority. For equally ranked competing policies, deny precedes allow. A public-read fallback exists in the evaluator for public visibility; private/restricted access must be explicitly justified.
Apply the narrowest permitted operation
Treat the following as a synthetic, staging-only request shape to the existing governance evaluation route. The request body describes the target of evaluation; it is not an identity attestation or a command that enforces object access.
{
"principal_type": "service",
"principal_id": "synthetic-workspace-bridge",
"product": "workspace",
"resource_type": "research-project",
"resource_id": "synthetic-project-001",
"action": "read",
"requested_visibility": "private",
"context": {
"case_id": "synthetic-boundary-01"
}
}
Authorized operator action: submit this only through the configured restricted service transport to POST /v1/governance/decisions/evaluate. Record the resulting decision_id, decision, reason, enforcement_mode and context_hash. Do not equate allowed=true with successful authentication of a human or successful access-control enforcement at the resource endpoint.
Mandatory resource authorization sequence
resolved = authenticate_in_trusted_gateway(request) # Application-specific; NOT a Core API
assert resolved.verified
project = load_project_for_scope(project_id)
if not project or project.organization_id != resolved.organization_id:
deny_without_resource_disclosure()
if not membership_store.is_active(resolved.subject, project_id):
deny_without_resource_disclosure()
object_ = load_scoped_object(project_id, object_id)
if not object_ or object_.project_id != project_id:
deny_without_resource_disclosure()
policy = core_governance_evaluate(resolved, object_, action)
if policy.decision != "allow":
deny_without_resource_disclosure()
return execute_bounded_action(object_, action) # Log the decision and result
Illustrative integration pseudocode only. The functions above are requirements for the consuming resource service, not names of APIs found in Platform Core. All checks must occur server-side before returning private content or mutating a canonical record. An evaluator result must be paired with a real route guard.
Organization and project membership contract
The inspected Core governance module has GovernanceRoleBinding with an optional product_scope, but no verified organization_id + project_id + subject_id membership enforcement was established in that module. Until a connected identity/membership owner supplies this binding, treat project membership as not verified.
{
"schema": "sc-example-project-membership/0.1-proposed",
"subjectId": "user-synthetic-b",
"organizationId": "org-synthetic-a",
"projectId": "project-synthetic-001",
"role": "reviewer",
"status": "active",
"validFrom": "2026-11-20T00:00:00Z",
"validUntil": null,
"policyRevision": "synthetic-v1"
}
This JSON is an example requirement, not a current Platform Core schema. A real implementation needs owner-controlled grants/revocations, explicit service-side identity binding, project scoping and a durable audit record.
Reproducible authorized access matrix
| Case | Actor and request | Required external observation |
|---|---|---|
| A1 owner-read | Authenticated owner reads own private project | Success only when verified owner/project authorization is independently established. |
| A2 foreign-read | Different authenticated actor reads same private project | Denied; no private fields or object existence leaked. |
| A3 foreign-write | Different actor attempts update with same object ID | Denied; project revision and content hash unchanged. |
| A4 wrong organization | Valid user from unrelated organization, same project ID | Denied even if product role grants read elsewhere. |
| A5 inactive member | Former member attempts read/export after revocation | Denied from fresh and already-open sessions, subject to defined session lifetime. |
| A6 public projection | Anonymous or public API reader accesses published projection | Only specifically approved public fields, never private draft or governance ledger. |
| A7 forged principal | Client submits body naming a more privileged actor | Cannot replace server-verified identity. |
| A8 transport failure | Missing/wrong service API key for write | 401 if configured; unavailable production key yields 503. |
| A9 stale revision | Authorized write against an old object revision | 409 or explicit typed revision conflict if the resource service implements optimistic concurrency; never silent overwrite. |
Capture sanitized evidence
For each test, record case_id, immutable subject alias, authenticated-role evidence reference (never credentials), organization and project aliases, method/route, requested action, actual HTTP status, policy decision reference, before/after object revisions and SHA-256 hashes. The included offline test kit validates such metadata and requires explicit resource-route observations.
python3 scripts/verify_boundaries.py examples/synthetic-access-evidence.json
python3 -m unittest discover -s tests -v
A passing offline fixture proves only internal consistency of the supplied observations. It cannot independently authenticate a principal, exercise the live router or verify a server enforcement hook.
Preserve evidence during denied operations
Take a read-only snapshot of the accepted project revision and content hash before any staging experiment. After denied reads and writes, independently re-read the project as the owner and verify exactly the same revision and hash. Never resolve authorization failures by changing ownership fields, deleting access history, copying sensitive objects to a public workspace or restoring over the accepted canonical record.
Audit controls and integrity
The governance ledger records decisions and SHA-256-linked audit events. GET /v1/governance/audit/verify verifies hash-chain continuity; it does not establish authorization correctness or prove the audit store is immutable against a privileged database operator. Secret-bearing context keys are redacted by source logic. Its retention policy prevents deleting governance-audit records or shortening retention below 8,760 hours using the documented service function.
Public readiness reports aggregate status only. Detailed policies, roles and audit entries are operator-facing routes, not material for public support tickets.
Symptoms
| Symptom | Likely boundary | Check |
|---|---|---|
| A role exists but private access still fails | Product-scoped governance role is not project membership | Verify owner/project relationship, active member record and actual route guard. |
| A denied policy decision does not block a read | Decision logged in audit mode or not wired into the resource route | Inspect enforcement mode and the consuming endpoint behavior. |
| Unrelated actor can read a private project | Identity-to-project check missing or bypassed | Stop release; quarantine staging result, preserve traces and escalate. |
| Service write returns 401 | Missing or invalid X-SC-API-Key |
Check server configuration securely; never place key in browser code. |
| Service write returns 503 | Production write credential not configured | Do not bypass fail-closed condition. |
| Invalid action/visibility returns 422 | Governance contract validation | Correct typed request from documented vocabulary. |
| Public response contains private metadata | Projection or downstream service misclassification | Disable route or isolate feature until disclosure review passes. |
Cause
Most identity-boundary faults arise when the authenticated principal, policy-evaluated principal, organization membership and resource owner are different records but are treated as one. Another cause is mistaking the policy evaluator for a mandatory authorization middleware: the inspected governor accepts a submitted principal and has a configurable audit mode. A third is interpreting a service API key as user-level authentication.
Troubleshooting
- Confirm the deployed image and commit match the documented release; do not infer behavior from source alone.
- Check
/v1/governance/readinessfor enabled/mode/migration state and inspect the actual protected endpoint’s dependencies. - Verify that the upstream gateway authenticates the subject and cannot be overridden by request JSON or headers from the browser.
- Check organization and project membership lookup, termination/revocation propagation and owner-scoped object queries.
- Compare decision receipt with the real route response; a policy denial paired with HTTP 200 on a private route is a failing integration until explained.
- Validate public projection field allowlists, current review state, and provenance links.
- Preserve sanitized failure traces and freeze further writes if a foreign actor can access or mutate data.
Resolution
Apply the smallest source-supported correction: repair the trusted principal mapping, add or fix a server-side membership/ownership query, bind the policy decision to the route, update wrongly scoped resource selectors, or correct a missing feature/credential configuration. Changes must be independently reviewed and tested in isolated staging. Use a guarded rollback if object access, private-data redaction or canonical project preservation fails. Never copy a live service token into a test fixture.
Verification
Acceptance is not reached until A1–A9 are tested on the same deployed staging build, with separate identities and projects. Require written evidence for: correct owner read/write; foreign read/write denial; no cross-organization access; revoked access denial; nonleaking public responses; preserved revision/hash after rejected writes; audit-chain verification; configured enforcement mode; and rollback. Browser refresh and independently established sessions must not change the result. Label any untested category explicitly as pending.
A green unit test or a decision receipt is not sufficient. A research object may be securely stored yet scientifically invalid; separate research and editorial approval still applies.
Migration and rollback gate
- Confirm off-host backup and recovery procedure; record migration status (especially
0019) and baseline database checksums. - Use synthetic owner/foreign-user fixtures with all newly introduced identity and membership relations.
- Deploy an explicit resource-route guard behind a disabled flag, test with the flag off and on, and verify 403/404 behavior on all protected routes.
- Review audit data minimization, service credentials, denied-response body fields and public projections.
- Do not enable broad
enforcemode for unrelated products until their integrations and rollback tests pass. - Promote only after owner/security approvals and a passing isolation test report; preserve an immediate rollback route and the pre-release evidence snapshot.
Technical references and source baseline
- Governance Access & Audit Control Plane, v2.16.0
- Governance route contracts
- Policy, roles, decisions and audit implementation
- Read/write service transport guards
- Research project route boundary (requires separate owner check)
- Public API credential and scope enforcement
- Credential/key metadata lifecycle
- Source repository governance tests
- Runtime security governance and host isolation boundary
Inspected repository: https://github.com/Content-Catalyst-LLC/sustainable-catalyst-platform-core; commit 59b8444365525a58fd4f6a7e29a20d712769e1a2. Source review is not production attestation. CI status, deploy digest, real route probes, and independent security review have not been verified for this article.
