Troubleshooting

Troubleshoot tenant isolation — Sustainable Catalyst Platform Core

Tenant isolation failures can expose private research through project access, exports, or improperly scoped service requests. This guide covers how to identify authorization gaps, verify cross-tenant denials, and recover without compromising research records.

ProductSustainable Catalyst Platform CoreUpdatedNovember 20, 2026Reading time22 minutes

Application: Sustainable Catalyst Platform Core
Category: Identity, Authorization & Governance
Article type: Troubleshooting and security acceptance procedure
Source revision: 59b8444365525a58fd4f6a7e29a20d712769e1a2
Verification status: Source-reviewed; authenticated staging enforcement pending
Estimated reading time: 17 minutes

Scope: Resolve unauthorized cross-tenant resource access and ambiguous access denials without exposing private research. Perform write or negative-access testing only on an isolated, authorized staging environment containing synthetic tenants.

1. Goal

Establish that an authenticated user or service can access only the resources permitted by its verified organization membership and resource-level grants. The core acceptance property is indistinguishable denial: a foreign-tenant object and a nonexistent object must not be distinguishable by unauthorized HTTP responses or returned data. No denied operation may modify a project or its evidence records.

Separate five independent checks: authentication, principal-to-tenant resolution, project membership, action authorization, and response/export filtering. Passing any one check does not imply the others.

2. Requirements

  • A disposable staging database, two unrelated synthetic organizations (Tenant A and Tenant B), a private research project in each, and synthetic artifacts with no real personal or scientific information.
  • Separately authenticated owner, same-tenant nonmember, foreign-tenant member, revoked member, and unauthenticated request contexts. Identities must come from a trusted server-side credential validation path, not a caller-supplied organizationId or principalId.
  • Authorized read-only access to deployment readiness, route definitions, sanitized request IDs, and project revision/fingerprint metadata. Access to logs must be scoped and audited.
  • Pre-test backup and an approved staging change window for any mutation test. Record deployed commit and image digest; do not assume the source branch matches the running service.
  • Written approval from the environment owner before testing nonpublic routes, identities, exports, or cache behavior. Never probe unrelated tenants or production data.

3. Current implementation boundary

The inspected source does not contain enough evidence to claim that Platform Core already enforces complete tenant isolation. The following are observed source-level mechanisms; they must not be promoted to deployment claims.

Surface Confirmed source behavior Isolation implication
Administrative read guard require_read checks the site-wide public_reads configuration. Does not authenticate a project owner or tenant. Publicly reachable behavior depends on the actual ingress configuration.
Administrative write guard require_write validates X-SC-API-Key when a key is configured; production writes fail if the key is absent. A shared service key does not identify a human, organization membership, or resource owner.
Governance decision service Evaluates policy, product scope, roles, and visibility; persists decisions and SHA-256-linked audits. An evaluation result does not demonstrate that the target resource endpoint enforces it; documented default mode is audit.
Unified project bundle Internal GET /v1/research/projects/{project_id}/bundle uses the generic read guard and a project ID. The inspected route passes no tenant identity into its bundle service. Treat this as a required enforcement review.
Public project bundle GET /api/v1/research/projects/{project_id}/bundle requires a public API scope and a public-visibility check on project/entity profile. Inspect nested records for private fields and relationships; a top-level visibility check alone is not a field-level disclosure review.

Anchors: request guards; governance endpoints; policy evaluator; project routes; bundle service.

4. Symptoms

Symptom Likely boundary First safe check
Foreign tenant receives HTTP 200 for a private project Missing resource owner / tenant membership check Compare target route guard and trusted session context; treat as potential security incident
HTTP 403 for foreign object but 404 for unknown ID Object-existence oracle Compare sanitized status and body for both identifiers
Project listing excludes foreign records, but detail URL returns one Unscoped direct-object lookup Inspect detail-query authorization, not just listing filter
Project page denied, export still downloads Missing check in alternate delivery path Check artifact/file export route, storage signed URLs, and caches
Revoked member remains authorized Stale grants, sessions, cached policy, or previously issued export link Record revocation time; test new requests under a fresh session
Private nested fields returned by public bundle Partial redaction / inherited visibility assumptions Check all child arrays, external refs, and downloadable metadata
Policy says deny but route returns content Audit-only evaluation or missing route integration Verify runtime enforcement_mode and route-specific decision application
Valid owner receives HTTP 401/403 Credential / deployment configuration / missing membership Check identity source, expiry, and grant resolution before changing a policy

5. Cause

Typical causes are service credentials used as substitutes for user identity, tenant IDs accepted from the request body, queries constrained by object ID but not tenant ID, authorization implemented only in the UI, or a single bundle/export method shared by private and public routes without recursive data classification. Role bindings may be product-scoped but not organization-scoped; these are different boundaries.

In the inspected implementation, governance evaluation accepts a caller-supplied principal_type and principal_id in its decision request. That is suitable for a privileged governance evaluator, but the result cannot authenticate the asserted principal. Source documents explicitly distinguish audit from enforce mode. A route that never calls or applies the decision cannot be secured merely by changing the mode.

6. Troubleshooting

  1. Freeze the scope: identify the deployed build, environment, route, method, synthetic resource ID, actor category, and observation time. Record only a short, sanitized trace ID in shared tickets.
  2. Establish the credential class: distinguish the Core service API key, a public API credential with a scope such as data:read, and a verified user session. Do not infer organization identity from the first two.
  3. Check policy readiness: inspect authorized governance readiness for enforcement_mode, migration status, and decision logging. A policy result in audit mode is evidence of evaluation, not a guard.
  4. Trace the actual endpoint: verify that it receives a server-derived principal, resolves effective organization/project membership, and constrains all resource queries to that scope before returning data.
  5. Repeat with a missing identifier: compare foreign vs nonexistent object response status, message, response shape, and resource headers. Do not return the foreign title, owner, counts, or a “belongs to another team” explanation.
  6. Check adjacent routes: list, detail, mutation, search, export, snapshot, file, and any public projection. Verify pagination counts and aggregate analytics cannot disclose foreign rows.
  7. Check revocation: terminate or invalidate applicable sessions/grants in an authorized staging fixture and retest new requests; separately account for cached copies and previously issued links.
  8. Preserve accepted state: compare object revision/fingerprint before and after a rejected write. Denial must not create, mutate, publish, or delete the target object.

7. Procedure

Follow the ordered diagnostic sequence above, then run these narrower checks in an approved synthetic staging fixture. The inspected administrative readiness route is GET /v1/governance/readiness, subject to its read guard. It reports whether the control plane is enabled, its enforcement mode, and migration state. Observe this only on an authorized deployment; readiness is not a substitute for a request-path test.

# Schematic only: approved staging host and an authorized operator context
# Avoid placing API keys in shell history or saved output.
curl --silent --show-error \
  "$STAGING_BASE/v1/governance/readiness" | jq \
  '{enabled, enforcement_mode, migration_0019_applied, pending_migrations}'

Interpretation: audit does not prove live denial. enforce still requires a trace showing that this particular read/write/export endpoint consumes the decision and stops before accessing foreign content. See control-plane release documentation.

8. Reproduce foreign-object and missing-object behavior

Use two completely synthetic, approved object IDs. With Tenant A’s authenticated fixture, request Tenant B’s private object and an object that does not exist. The target contract is one generic 404 Not found body and indistinguishable response semantics; absence of private fields is mandatory.

# Python sketch for a staging integration test using a configured, authorized test client.
# auth_for_tenant_a() must use a server-validated identity, never a fake tenant header.
foreign = client.get('/v1/research/projects/' + TENANT_B_PRIVATE_ID + '/bundle',
                     headers=auth_for_tenant_a())
missing = client.get('/v1/research/projects/' + RANDOM_MISSING_ID + '/bundle',
                     headers=auth_for_tenant_a())
assert foreign.status_code == missing.status_code == 404
assert foreign.text == missing.text  # Normalize request IDs if returned.
assert 'private title' not in foreign.text.lower()

Current-source caution: this is an acceptance test for a hardened route, not a claim about the inspected implementation. Its current generic bundle route does not show the necessary server-side user/tenant enforcement. Some existing invalid-project paths may return 422 through service error conversion. Do not force 404 changes in production before a reviewed compatibility and rollback plan.

9. Distinguish 401, 403, 404, 409 and 503

Response Meaning in this procedure Correct next action
401 Authentication missing/invalid where auth is required Check credential type and validation, not project visibility
403 Authenticated principal lacks route-level action; also used by site-wide read setting Verify grant and gateway guard; avoid exposing object existence
404 Desired generic result for both foreign private and absent objects Ensure body and behavior do not distinguish the cases
409 Expected version conflict on supported revision-aware writes Read latest authorized revision; do not retry blind
422 Validation or business rule rejected by current API Check if wording or timing could disclose private object existence
503 Service/configuration unavailable or disabled Hold writes; confirm settings and migrations on authorized staging

These are diagnostic expectations, not a blanket guarantee that every current endpoint returns these statuses consistently.

10. Detect listing, search, export and cache bypasses

Re-test the same synthetic record through every access path. A correct detail guard cannot compensate for an unscoped listing count, a downloadable project snapshot, or an export endpoint that trusts an ID. Check linked figures, notebooks, sources, search snippets, and signed links. Include CDN and browser caching only where deployed and authorized to inspect.

Request-dependent responses must not be cached globally across tenants. Use private/no-store policy as appropriate for private data, and ensure cache keys bind to authenticated identity and effective authorization state. Do not treat a cached denial as proof that the origin is safe.

11. Inspect public bundle projections

At the inspected source revision, the public project-bundle service requires the entity and unified profile to be public. The response includes collections of questions, objectives, components, relationships, provenance, handoffs, and snapshots. Because the bundle method returns these collections, reviewers must verify every child object and embedded field is eligible for public disclosure. This source review does not establish that any particular deployed record leaked.

# Proposed public-projection assertion against a synthetic fixture.
response = public_client.get('/api/v1/research/projects/' + PUBLIC_PROJECT_ID + '/bundle',
                             headers=PUBLIC_TEST_CREDENTIAL)
assert response.status_code == 200
serialized = response.text.lower()
for forbidden in ('private source url', 'restricted abstract', 'secret-evidence'):
    assert forbidden not in serialized
# Also inspect nested child visibility flags and URLs, not strings alone.

The public API’s data:read credential scope is an API-consumer permission, not a claim that every child of a public project is public.

12. Check writes and restoration

Before a cross-tenant mutation test, record the owner project revision, checksum/fingerprint and child-record count. Attempt a synthetically scoped write with a foreign principal, then read again as the owner. The operation must be denied with no data change. Test creation, update, deletion, attachment upload, snapshot creation and import paths separately if the deployed product exposes them.

Do not restore or rewrite real evidence to prove isolation. When staging changes are necessary, use disposable fixtures and database snapshots. For a denial or timeout where the write’s outcome is unknown, inspect the accepted state and idempotency guarantees before retrying.

13. Revocation and stale authority

Removing a role binding, revoking a session, expiring an API credential, and invalidating a previously signed export are not interchangeable. Retest after an authenticated identity is revoked, after an authorization cache is refreshed, and after a new session is established. Historical data and audit entries should remain intact, while future unauthorized access is blocked.

If formerly valid access persists, isolate the exact channel: browser cache, upstream proxy, application server, public projection, expiring download URL, or stale session. Preserve timestamps and key IDs in restricted audit evidence; do not put raw tokens in a ticket.

14. Evidence minimization and logs

Collect: a trace ID, deployment SHA/image digest, route template (not private URL parameters), principal category, synthetic tenant labels, HTTP status, redacted error code, governance decision ID if generated, and before/after revision or fingerprint. Exclude bearer tokens, cookies, real tenant names, dataset rows, unpublished figures, and full project bundles.

Platform Core’s governance service redacts common secret-bearing context keys before audit storage and links events with hashes. That does not remove the need to sanitize all upstream logging, headers, exception messages, and exported diagnostics.

15. Proposed isolation boundary and SQL shape

The following illustrates the necessary future owner-scoped query, not an existing Platform Core table or deployed migration. The actor and effective organization memberships must be derived from a trusted service-side identity and maintained authoritatively. Do not accept org_id from the caller as authorization.

-- Illustrative schema/query; not a verified Platform Core migration.
SELECT p.id, p.revision, p.content_hash
FROM research_projects AS p
JOIN organization_memberships AS m
  ON m.organization_id = p.organization_id
WHERE p.id = :project_id
  AND m.subject_id = :authenticated_subject_id
  AND m.status = 'active'
  AND m.can_read = TRUE;
-- If no row matches: return one generic 404, regardless of why.

Apply equivalent predicates to mutations and subordinate evidence relations, with transaction-safe, revision-bound updates. Database row-level security can provide defense in depth, but only when the transaction sets trusted tenant context and role assumptions have been independently tested.

16. Resolution

  1. Potential exposure: restrict the affected route at the trusted gateway or disable the feature using an approved, tested control. Do not rely on a UI hide or a new audit-only policy.
  2. Missing identity: implement trusted principal resolution before resource reads/writes; reject unverified organization headers or payload fields.
  3. Missing resource scope: add tenant-and-membership predicates to every object lookup, mutation, list, and export; make no-match behavior indistinguishable from nonexistent objects.
  4. Public projection issue: use a separate allowlisted serializer for public content; reclassify children and strip private links before release.
  5. Cache or signed-link issue: revoke/expire affected channels as authorized, segregate cache keys, and prevent unscoped reuse.
  6. Evidence preservation: retain sanitized audit traces, accepted project revisions, and restoration evidence. Deploy only after a backup, code review, repeatable staging run, and tested rollback.

Where the user’s project is already public, do not retroactively mark its every attached artifact public. Publication is an independent rights and review decision.

17. Verification

Primary acceptance: cross-tenant requests fail without revealing whether an object exists. This must hold at the real HTTP and storage boundary, not just in a policy simulation. Use the following matrix in authorized staging.

Case Expected outcome Preservation check
Same-tenant authorized read 200 with only entitled project fields Matching revision/fingerprint
Foreign and nonexistent private detail Same 404 semantics and no private bytes No read side effects
Same-tenant nonmember Generic denial on private detail No metadata leak
Foreign create/update/delete Denied before any mutation Revision, fingerprint, count unchanged
Foreign list/search/aggregate No foreign rows, snippets, or counts No indirect disclosure
Foreign export/snapshot/file No download or signed link Private artifacts unchanged
Revoked member and stale session Fresh privileged requests denied Historical audit preserved
Public bundle with private child Child excluded/redacted Public fields unchanged
Policy deny + endpoint call Endpoint denies, even if service key valid Matching decision and request trace
Stale write and partial failure No silent overwrite or unknown success Version and artifact continuity

Additionally verify negative tests across new sessions, pagination, batch reads, search indexes, downloads, export archives, and any cross-product handoff. If any case fails, the article’s primary acceptance remains not verified.

18. Reproducible offline incident checker

The companion package contains triage.py, synthetic-incident.json, and test_triage.py. The checker evaluates a deliberately synthetic receipt for denial-response consistency, confidential fields, project-state preservation, and reported enforcement context. It does not contact Platform Core or validate the truth of the receipt’s claims.

python -m unittest -v test_triage.py
python triage.py synthetic-incident.json
# Exit 0 = synthetic receipt meets checker rules.
# Exit 1 = receipt inconsistent; it is not a live endpoint verdict.

Pass criteria: the offline checks pass; then a separate integration suite must substantiate each expected HTTP result against a pinned staging image, authorized independent identities, and a disposable database. Attach the CI receipt, deployed image digest, migration state, and rollback rehearsal before changing publication status.

19. Escalation and incident response

If an unauthorized principal can retrieve another tenant’s private object, treat it as a potential security incident rather than an editorial or cache-only defect. Immediately preserve logs and restrict the affected path using authorized procedures; notify the platform security owner. Establish which objects, credentials, routes, timestamps, and exports were accessible without reproducing the exposure on live data. Avoid deleting logs or manually rewriting project provenance during containment.

Use a restricted incident record that distinguishes source finding, staging reproduction, and confirmed production impact. Provide affected teams only with verified scope and a remediation plan. Where disclosure obligations exist, follow the organization’s approved incident policy.

20. Platform-specific verification limits

Evidence at commit 59b8444 supports the presence of the governance APIs, generic service guards, and unified project bundle routes described above. It does not independently establish the production network exposure of these routes, verified organization membership, complete route-level enforcement, downstream public-data filtering, or real-world tenant isolation. The offline checker is an evidence-format regression tool, not an access-control implementation.

Production conclusion: no full tenant-isolation pass can be asserted from source inspection or synthetic fixtures alone. Keep private research and new cross-tenant features behind deployment controls until a reviewed, authenticated staging acceptance report passes.

21. Technical references

  1. Platform Core administrative read/write dependencies: public-read flag and service write-key guard.
  2. Governance router: readiness, policies, roles, decisions, audit verification, public readiness.
  3. Governance policy service: role actions, policy matching, audit and deny/default behavior.
  4. Governance access control-plane release note: audit-versus-enforce boundary.
  5. Unified Research Project routes: administrative/project/public route wiring.
  6. Unified Research Project bundle service: current top-level public visibility check and child collections.
  7. Public API authentication and scopes: public API credential scope dependency.
  8. Governance tests: policy evaluation, role scoping, audit tamper detection.
  9. OWASP API Security Top 10: object-level authorization and excessive exposure failure modes.
  10. OWASP Authorization Cheat Sheet: deny-by-default, object-level checks and testing.
  11. NIST SP 800-53 Rev. 5: access-control and audit-control families.
Scroll to Top