Skip to main content

Crate sill_adapter

Crate sill_adapter 

Source
Expand description

The Sill adapter format.

An adapter answers two questions about one upstream: where does the credential live in a request, and what must never come back out in a response. Everything else about the request — path, method, body — is passed through untouched.

The format is published and contributable, which is why it lives in the MIT tree. The CLI validates adapters and the relay executes them from this same crate, so the two cannot drift in their reading of a file.

schema_version = 1

[adapter.railway]
upstream = "backboard.railway.com"

[[adapter.railway.auth]]
location = "header"
name = "authorization"
scheme = "Bearer"

[adapter.railway.response]
redact = ["$.data.token"]

§Why this parser is strict

Unknown fields are rejected. A misspelled redact key that parsed successfully would silently disable response redaction, and the adapter would look like it was enforcing something it was not. In a credential broker that failure mode is indistinguishable from working until an incident, so every typo is a hard error.

Structs§

Adapter
Where a credential lives for one upstream, and what must not come back.
AdapterFile
A parsed adapter file. One file may define several upstreams.
AuthSlot
Capture
Where a response hands back a credential that did not exist before.
ResponsePolicy
SlotPath
A parsed path to one position in a JSON document.

Enums§

AdapterError
Protocol
The wire protocol an upstream speaks.
SlotLocation
A place a credential can be carried.
SlotPathError
SlotSegment
StreamingPolicy

Constants§

SCHEMA_VERSION
The only schema version this crate understands.