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. - Trust
Entry - A single trust entry recording the hash and timestamp of a trusted config.
- Trust
Guard - Guard that wraps a config file modification to preserve trust.
Enums§
- Trust
Status - 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:".