Orbit Ring · docs
How Ring works
Ring is a control plane with a database behind it. Five mechanisms do nearly everything: who is asking, what they may do, what Ring may hold, how much is allowed, and what Ring may reach.
Who is asking
Three credentials are accepted, and all three resolve to one subject before a row is read.
A session cookie
Ring accepts a session issued by the auth service it was configured with, reads it as an HttpOnly cookie, and asks that service who owns it rather than decoding the cookie and believing it. The subject that comes back is then looked up in Ring’s own tables, where roles actually live.
A bearer token
A token is verified by signature, issuer and audience against the provider’s JWKS, with the accepted key types constrained so a token signed for something else cannot pass. A role claim inside that token is dropped and never reaches a decision.
An API key
A ring_live_ or ring_test_ key is matched by its SHA-256 digest and then acts as the member who created it, so every row-level rule that member is subject to still applies. Revoke the membership and the key stops working at the same moment.
Ring holds no passwords
Sign-in, registration, password reset and email confirmation happen at Orbit Auth. The four routes on this host carry no form and collect no credential; they hand off and name the issuer they were configured with.
What is not finished in this area
Cross-subdomain session inheritance is implemented and verified server-side, but it has not been exercised against the hosted auth service, so it is configured behaviour rather than proven behaviour. Ring has no authorization-code callback in this build.
What they may do
Permissions are decided by the database on every request, inside the organization a caller is acting in. The browser is never asked.
Organization capabilities, and what a key may carry
An API key holds scopes rather than roles. This is the map between them.
reada key needsorganizations:readmanage_projectsa key needsprojects:writemanage_deploymentsa key needsdeployments:writemanage_membersno key scope stands for thismanage_connectionsa key needsconnections:writeread_secretsa key needssecrets:readmanage_secretsa key needssecrets:writemanage_monitoringno key scope stands for thismanage_billingno key scope stands for thismanage_organizationno key scope stands for thistransfer_ownershipno key scope stands for this
The gaps are deliberate. Adding a member, moving billing, opening the vault, transferring ownership and running the monitors are not things a token that leaks out of a CI job should be able to do, so no scope represents them and a key is refused rather than quietly downgraded.
The scopes a key can hold
organizations:readprojects:readprojects:writedeployments:readdeployments:writesecrets:readsecrets:writeconnections:readconnections:writeusage:readevents:readwebhooks:manage
A page and an endpoint give the same answer
The console reads the same capability matrix the guard does, so a screen cannot offer a button that the request behind it will refuse. Where a refusal is about the credential rather than the person, the page says which one it is about.
What Ring is allowed to hold
Provider tokens, database passwords and bucket keys, sealed. Nothing else, and never an account password.
- Sealing
- AES-256-GCM, with the secret id, the organization id and the version bound as additional authenticated data.
- Reveal
- The plaintext is shown once, at creation. No API, screen or export returns it afterwards.
- Rotation
- The key version is stored beside each ciphertext, so a new key can seal new writes while old rows still open with the version that sealed them.
- Tamper
- A ciphertext lifted onto another row fails the tag check instead of decrypting. The bound data is what makes that true.
- Logging
- Every decrypt is written to the audit log as an event. No value, and no part of one, is ever written to a log line.
- Where the key lives
- RING_VAULT_KEY in the environment of the process serving requests. An HSM or KMS backed key is not implemented in this build.
What Ring is allowed to reach
A connection is an organization’s own account at a provider: a sealed credential plus the answers a probe actually received.
Verified means a call happened
A connection is marked verified only when a live call came back and the time was stored on the row. Nothing about a provider’s API is inferred from its documentation.
Proven and claimed are separate words
Capabilities are split into what a call proved and what the provider advertises. A console screen prints the second kind as claimed and never as available.
Outbound calls are screened
When Ring fetches an address on someone’s behalf, the hostname is resolved and screened against private, loopback, link-local and documentation ranges before the request, and the screened answers are the ones used. A webhook endpoint is refused unless it resolves to public space on port 443.
How much is allowed
A plan is a set of ceilings, and a ceiling is enforced where a write happens rather than where a request is parsed.
Counting
- Counters Ring owns are counted from live rows at the moment of the check.
- Counters only a provider knows arrive from a collector and are stored as a sample with the time it was taken.
- A metric with no ceiling row for the plan is not modelled, so it is not printed rather than printed as unlimited.
- A metric no collector has reported reads as “Not measured”, never as zero.
Refusing
- A write past a ceiling is refused by a database trigger, so the rule cannot be stepped around by a new endpoint.
- The refusal names the metric and the ceiling, and is recorded with the organization in the audit log.
- Nothing in a self-serve plan is unlimited; only a limit an operator negotiated and wrote down reads as uncapped.
How a measurement is made
The one module where Ring performs the work itself rather than asking a provider.
- The check
- Ring requests the address at the interval the organization set, and records status code, latency and a failure reason for every sample.
- The address
- Resolved and screened before the request, then pinned, so a public name cannot be used to reach an internal host.
- Incidents
- Opened from failed samples and closed when a sample succeeds. An incident is a derived record, not a manual note.
- Uptime
- Computed from the samples that exist. Where none do, the screens state that the figure was not measured.
- The schedule
- A token-guarded job route runs the checks whose interval has elapsed. Until a scheduler is configured and RING_JOB_TOKEN is set, results appear only when a person presses Measure now.
- The limit
- One probe location rather than a distributed network, so a regional outage that spares the control plane reads as healthy. No alerting channel sends mail or a message in this build.
What is written down
Every meaningful action, and every refusal
The audit trail records the actor, the organization, the resource, the outcome and a request id. A refusal is an event like any other, which is the only way to see someone testing identifiers that are not theirs.
Never a secret, never a raw address
Log lines pass through redaction, no secret value is ever part of one, and a client address is kept as a keyed digest rather than as an address. An error leaves the service as a code, a sentence written for a person, and a request id to quote.
What this build does not do
Not open yet
- A public REST surface under
/api/v1. Keys, scopes and digest storage exist; the routes do not. - An inbound webhook receiver that turns a provider event into a deployment row, and outbound delivery with retries and a delivery log.
- Platform administration screens. The staff read paths behind them exist; the pages are the next build.
- Billing of any kind, and any email sent from this application.
None of this is a roadmap promise
The sentences above describe the state of the code serving this page, in the language of what a person cannot do today. A module that is planned says so on its own screen, with the same words this page uses.
These mechanisms are read from the modules the console itself calls. There is no second description of the rules kept somewhere else to fall out of date.