Skip to content

Add draft threat model + SECURITY.md + AGENTS.md for security-model discoverability#61

Open
potiuk wants to merge 1 commit into
apache:masterfrom
potiuk:asf-security/threat-model-2026-05-31
Open

Add draft threat model + SECURITY.md + AGENTS.md for security-model discoverability#61
potiuk wants to merge 1 commit into
apache:masterfrom
potiuk:asf-security/threat-model-2026-05-31

Conversation

@potiuk
Copy link
Copy Markdown
Member

@potiuk potiuk commented May 31, 2026

This is a draft proposal for the Tapestry PMC to review — please correct, reject, or discuss as needed. Nothing here is a requirement; the maintainers are the decision-makers.

This PR adds THREAT_MODEL.md + SECURITY.md + AGENTS.md, wiring AGENTS.md -> SECURITY.md -> THREAT_MODEL.md.

Framing: Tapestry is a framework — the application developer's pages/components/handlers and the operator's config are trusted, while the web client is the adversary. The most load-bearing mechanism is the HMAC-protected serialized client state: Tapestry round-trips serialized objects through the browser and deserializes them on return, gated by tapestry.hmac-passphrase (the post-CVE-2021-27850 protection).

Draft-first, mostly inferred (~12 documented / 0 maintainer / ~46 inferred); every *(inferred)* claim routes to a numbered §14 question. The wave-1 rulings:

  • Is a configured tapestry.hmac-passphrase effectively required (fail-closed) so the serialized-state deserialization is always HMAC-gated — and what happens if it is unset?
  • Is framework-rendered output HTML-escaped by default (raw output opt-in)?
  • Are assets protected against path traversal / arbitrary classpath read by default?

I also tried to fold in the component categorization shared earlier — please confirm the §2 family table and the §11a "deserialization is HMAC-gated" non-finding.

Context: the ASF Security team is preparing the project for an automated agentic security scan we're piloting. Drafted via the threat-model-producer rubric. If you'd rather author it yourselves, close this PR and we'll regroup.

…l discoverability

Adds a draft (v0) threat model plus SECURITY.md and AGENTS.md so an automated
scan agent can discover the model via AGENTS.md -> SECURITY.md -> THREAT_MODEL.md.
The model is a proposal for the PMC to review; most claims are (inferred) and
route to open questions in its section 14.

Generated-by: Claude Code (Claude Opus 4.8)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant