8000 docs: add threat model by adeelahmad · Pull Request #157 · adeelahmad/lense · GitHub
[go: up one dir, main page]

Skip to content

docs: add threat model - #157

Merged
adeelahmad merged 2 commits into
mainfrom
claude/project-thread-qt650x
Oct 5, 2026
Merged

adeelahmad merged 2 commits into
mainfrom
claude/project-thread-qt650x

Conversation

@adeelahmad
Copy link
Copy Markdown
Owner

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 (with threat-model.yaml and threat-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.py was not available in this session, so it has not been re-run on this version.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change; ! in the title)

Docs only.

Checklist:

  • The title is a Conventional Commit.
  • My code follows the code style of this project (make hooks checks it on commit).
  • I added or updated tests.
  • My change requires documentation updates, and I have updated docs/ accordingly.
  • Users need more than the title to understand it, so I wrote it under ## Unreleased in CHANGELOG.md.

🤖 Generated with Claude Code

https://claude.ai/code/session_01W42z4FbekWr33b6791svQQ


Generated by Claude Code

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
@adeelahmad adeelahmad self-assigned this Oct 5, 2026
Copy link
Copy Markdown
Owner Author

Local CI: green. The self-hosted runner is down, so I replayed every PR job from .github/workflows (ci.yml, pre-commit.yml, pr-title.yml) with ci/local-ci.sh --pr 157 (#181). It tests the head merged into the latest main, which is what GitHub's pull_request event tests.

Local CI on PR #157 head 3133843 merged into main f69d6af, 2026-10-05 08:12 UTC

Job Result Time
FastAPI (embedded SurrealDB) pass 446s
FastAPI (SurrealDB server) pass 216s
Next.js pass 187s
pre-commit pass 72s
PR title pass 0s

Generated by Claude Code

@adeelahmad
adeelahmad merged commit 2e70bc8 into main Oct 5, 2026
5 checks passed
@adeelahmad
adeelahmad deleted the claude/project-thread-qt650x branch October 5, 2026 12:42
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.

2 participants

0