add 90-day TTL to trust model, unblock OPERATIONS.md for public
Trust model: refresh-token rotation paragraph now states the 90-day expiry. OPERATIONS.md (operator runbook) whitelisted in .gitignore — useful for anyone deploying RedFlag.
This commit is contained in:
parent
b810b10162
commit
2b55410323
3 changed files with 142 additions and 1 deletions
|
|
@ -92,7 +92,7 @@ Agent-server communication runs over HTTPS. The Ed25519 signing model is a defen
|
|||
|
||||
Before a package is installed: the agent fetches the expected SHA-256 from the server, downloads the artifact, verifies the hash. Mismatch blocks the install. OSV.dev is queried for known vulnerabilities at discovery time (async, deduped) for npm, PyPI, apt, and dnf packages — results are visible in the dashboard before approval.
|
||||
|
||||
**Refresh-token rotation.** Each renewal mints a new refresh token and marks the old one consumed. Replaying a consumed token whose successor was also consumed means theft — the server revokes the entire token family and logs a security event. Agent crash-before-save is covered by accept-previous-once grace: a consumed token whose successor is still unconsumed gets a fresh one, not a revocation.
|
||||
**Refresh-token rotation (90-day TTL).** Each renewal mints a new refresh token (90-day expiry) and marks the old one consumed. Replaying a consumed token whose successor was also consumed means theft — the server revokes the entire token family and logs a security event. Agent crash-before-save is covered by accept-previous-once grace: a consumed token whose successor is still unconsumed gets a fresh one, not a revocation.
|
||||
|
||||
**Machine-bound renewal.** The renewal endpoint now checks `X-Machine-ID` against the registered host, exactly as command endpoints do. A stolen `config.json` cannot mint access tokens from an unregistered machine — a mismatch returns 403 with a logged `machine_id_mismatch` security event. The agent surfaces this as a critical event, not a quiet backoff.
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue