Repository navigation
docs: add threat model - #157
Merged
Merged
Conversation
Lens's security contract (modeled at 5f799f2): what it assumes, guarantees and leaves to the operator, and how a report is routed. SECURITY.md links to it, and its SSRF example now follows the ruling that admin-set URLs are trusted. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01W42z4FbekWr33b6791svQQ
Owner
Author
|
Local CI: green. The self-hosted runner is down, so I replayed every PR job from Local CI on PR #157 head 3133843 merged into main f69d6af, 2026-10-05 08:12 UTC
Generated by Claude Code |
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.
Requested by Adeel · project thread
Description
Before: SECURITY.md was the only written security policy, and its SSRF example named "a model server", which only an admin can set.
After:
threat-model.md(withthreat-model.yamlandthreat-model.json) sits at the repo root, modeled at 5f799f2. It says what Lens assumes, what it guarantees, what it leaves to the operator, and how a report is routed. SECURITY.md links to it. The SSRF bullet now covers URLs a non-admin sets, and says admin-set URLs are trusted except for the guards Lens documents (iCal feeds, the telemetry endpoint). DEVLOG.md gets an entry for this work, added on top of main's newer entries.Motivation and Context
This gives security reports a written contract to be routed against. The prose is canonical. After the SECURITY.md change I updated the §1.16 bullet and appendix row S14 to say the alignment is done, then refreshed the prose hash in the YAML. Nothing else in the YAML or JSON mirrors those lines. The threat-model plugin's
validate_model.pywas not available in this session, so it has not been re-run on this version.Types of changes
!in the title)Docs only.
Checklist:
make hookschecks it on commit).docs/accordingly.## UnreleasedinCHANGELOG.md.🤖 Generated with Claude Code
https://claude.ai/code/session_01W42z4FbekWr33b6791svQQ
Generated by Claude Code