Skip to content

fix(api): derive comment author, reserve user trust label#150

Open
benvinegar wants to merge 2 commits into
mainfrom
fix/author-derivation
Open

fix(api): derive comment author, reserve user trust label#150
benvinegar wants to merge 2 commits into
mainfrom
fix/author-derivation

Conversation

@benvinegar

Copy link
Copy Markdown
Member

Closes #145. Derives comment author from session.agent and reserves the 'user' trust label at session creation, ensuring that programmatic access points (API, MCP, CLI) cannot forge 'user' comments. Only same-origin requests from the browser viewer can mint same-origin user comments.

@benvinegar benvinegar force-pushed the fix/author-derivation branch 2 times, most recently from a32748e to f30fbbd Compare June 26, 2026 00:09
@benvinegar benvinegar force-pushed the fix/author-derivation branch from f30fbbd to ead838e Compare June 26, 2026 00:12
@benvinegar benvinegar marked this pull request as ready for review June 26, 2026 00:19
@benvinegar

Copy link
Copy Markdown
Member Author

I think at best this just reduces the odds of an agent pretending to be a user. Not sure that's ideal.

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.

Feedback-label forgery: REST POST /api/comments does not enforce reserved author: "user"

1 participant