Skip to main content

Module trust

Module trust 

Source
Expand description

Project config trust model.

Stores SHA-256 hashes of trusted project config files in ~/.rippy/trusted.json. When rippy encounters a project config, it checks this database before loading. Untrusted or modified configs are ignored with a stderr warning.

Structs§

TrustDb
Trust database backed by a JSON file at ~/.rippy/trusted.json.
TrustEntry
A single trust entry recording the hash and timestamp of a trusted config.
TrustGuard
Guard that wraps a config file modification to preserve trust.

Enums§

TrustStatus
Result of checking a project config against the trust database.

Functions§

detect_repo_id
Detect the repository identity for a config file path.
hash_content
Compute a SHA-256 hash of the given content, prefixed with "sha256:".