docs: expand cache-header-tamper mitigations#63
Merged
jgowdy-godaddy merged 1 commit intomainfrom Apr 17, 2026
Merged
Conversation
The previous 'future hardening: AAD' note understated how much the real risk is already neutralized by the layered checks that are in place today: - sso-jwt and awsenc both take max(header, config) for the risk level at read time, so a header edit that tries to downgrade is clamped back to the configured minimum. - Server-side expiration on the issued credential (STS, JWT exp) is authoritative regardless of what the client cache header says. - Both consumers recheck payload-embedded timestamps after decrypt. Spell these out in THREAT_MODEL.md so reviewers don't have to trace the mitigations back through consumer code. Keep the AAD binding noted as deferred — it's a trait-signature break across 4 backends and every consumer, plus an on-disk format break, for a threat that is already handled at the application layer.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The previous "future hardening: AAD" note on cache-header tamper understated how much the real risk-level-downgrade threat is already neutralized by the layered checks in place today:
Spell these out in `THREAT_MODEL.md` so reviewers don't have to trace the mitigations back through consumer code. Keep AAD binding noted as deferred — it's a trait-signature break across all four backends (SE, CNG, keyring, software) and every consumer, plus an on-disk format break, for a threat that's already handled at the application layer.
No code change.
Test plan