Architecture & security
How OspreyGate authenticates to Microsoft 365, how it is kept from writing where it shouldn't, and how every write is accounted for.
Microsoft Graph credential
App-only, centrally managed
OspreyGate never holds its own tenant/client secret or certificate. A single Microsoft Graph app registration is shared across CodeRaft products that need Graph access; the credential itself lives in Coderaft Vault and is resolved on demand by the platform's dashboard-api, never by OspreyGate directly.
Per-resource token caching
Microsoft Graph and each SharePoint host have distinct token audiences. Tokens are cached per resource and refreshed within a 5-minute margin of expiry — there is no standing, long-lived credential sitting in OspreyGate's own storage.
Scope allowlisting
The internal token-issuing endpoint only ever hands out a token scoped to Microsoft Graph's .default or a specific *.sharepoint.com host's .default — nothing broader, and the raw tenant/client secret is never returned to the product container.
Second-tenant connection (foundation)
A separate credential role can be resolved for a genuinely different, second Microsoft 365 tenant — the groundwork for tenant-to-tenant migration. No shipped feature writes to a second tenant today; this exists as infrastructure only.
Write-access modes
Every mutating action is gated by a single write-policy mode, configurable from the product's Settings screen — not an environment variable or a config file an operator has to find and edit.
Read-only (default)
No write reaches Microsoft 365 at all. Inventory, reporting and dry-run simulations work normally.
Sandbox
Real writes are allowed, but only against an explicit site allowlist you maintain — everything else still behaves as read-only.
Full
Real writes anywhere in the tenant. Switching to Full requires an explicit confirmation step in the UI, warning that this removes every site restriction at once.
Every mode change — including the exact previous-mode → new-mode transition — is written to the audit trail, so a switch to Full can never happen silently.
Regulated zones
Declare a site or library as a regulated zone and every automated engine — version cleanup, on-premise archiving, sharing-link cleanup — is required to skip it and report the exclusion by name, never silently. Declaring or removing a regulated zone requires a written justification and is itself audited. There is no automatic detection of "what counts as regulated" — it's a deliberate, justified, admin-entered decision, by design.
Immutable audit trail
- Every non-read request against Microsoft 365 is logged exactly once — success, failure or blocked — at the HTTP-pipeline level, so a new mutating route gets audit coverage automatically rather than needing a bespoke call wired in by hand
- The journal is hash-chained and append-only, aligned with ISO 27001 A.8.15
- Read-only routes (reports, previews, inventory) are not logged as actions — only writes are
- Rollback/undo is real for a narrow set of actions today (direct person-to-person access transfer, Quick Assist's Recycle Bin restore); most logged actions are visible and classified by reversibility but not yet one-click reversible — reversing an arbitrary already-applied Microsoft 365 mutation safely is a harder problem the product does not claim to have solved everywhere
Deployment
OspreyGate runs as one container behind the unified CodeRaft dashboard, on your own infrastructure (Docker). There is no standalone desktop app, CLI or Windows service, and no separate per-product license-activation flow — access is governed by the same platform session as every other CodeRaft product.
Questions about a specific compliance requirement or your regulated-zone setup? Contact [email protected].