Expand description
Vault resolution: the engine never sends a path, remote or name, only an org-salted digest of its git repository’s stable identity. One git repository maps to exactly one vault.
GET /v1/org/salt→OrgSaltV1POST /v1/vaults/resolveVaultResolveRequestV1→VaultV1
identity_digest = hex(HMAC-SHA256(salt, stable_identity)), where
stable_identity is stable_identity of the engine’s repository identity
(.lean-ctx-id > normalized git origin without credentials > manifests).
Since 1.1 the request may name a vault (written by lean-ctx cloud link <ns>/<name>) to bind the repository to a vault created on the web. The
service binds on first sight when the instance may contribute to that
vault, otherwise answers 403 forbidden_right. Without vault, resolve
creates a vault on first sight.
Structs§
- OrgSalt
V1 GET /v1/org/salt.- Vault
RefV1 - The vault a git repository maps to, as
@<ns>/<name>. - Vault
Resolve Request V1 POST /v1/vaults/resolve. Creates the vault on first sight.- VaultV1
- Response of
POST /v1/vaults/resolve.
Constants§
- MAX_
VAULT_ LABEL_ CHARS - Longest vault label, in characters.
- ORG_
SALT_ SCHEMA - SEALED_
VAULT_ UNSUPPORTED - Why a vault that says it is sealed is refused.
- VAULT_
MATCH_ REQUEST_ SCHEMA - Request body of
POST /v1/vaults/match(C0 fixturesroutes/vault_match.*). - VAULT_
MATCH_ SCHEMA - Answer of
POST /v1/vaults/match. - VAULT_
RESOLVE_ REQUEST_ SCHEMA - VAULT_
SCHEMA
Functions§
- stable_
identity sha256_hex("leanctx.project-identity.v1\n" + repo_identity).