Expand description
The API block’s auth: a Vault entry whose value is sent as one header
(the Vault slice of Drone phase 3).
{ "auth": { "vault": "api-key-github", "as": "bearer" } }
{ "auth": { "vault": "api-key-acme", "as": "header:X-Api-Key" } }The drone’s definition names the entry and the site; the value never appears in it, in a run’s input, in the ledger or in what the node outputs. What keeps it from going anywhere else:
- The URL’s site (scheme, host and port) is written out in the drone: nothing from a run (a
{{...}}value, which may be something an outsider wrote) can pick or change it. It must behttps. - The resolved URL must have exactly that site, and no user name or password.
- A call with a credential follows no redirect: the one site is the only site.
- The header is the one the node names; the node’s own
headerscan’t set it as well.
The pure checks are here; asking the person, the grant and reading the value are
server::drone_vault.
Structs§
- Auth
- A node’s
auth, checked.
Enums§
- How
- How the value is sent.
Constants§
- REFUSED 🔒
- Headers a credential can’t be put in: the request’s framing, not its authorization.
Functions§
- parse
- The node’s
auth: none when the node has none (absent,nullor an empty entry), or why it can’t be used. Nothing is read from the Vault here. - sets_
it_ too - Whether the node’s own
headerssetnametoo: the credential is the Vault’s alone. - site
- The site a call with a credential goes to, from the URL as the drone has it written (
raw) and as it resolved:https://host[:port]. The site must be written out inraw, and the resolved URL must be the same site.