Repository navigation
fix: harden the response cache, share lookup, project credentials and release permissions - #527
Merged
Merged
Conversation
- response cache: a paraphrase only matches an entry with the same conversation before the question, and images are keyed by content, so one conversation cannot get another's answer; - shares: a symlink in a shares directory is not served; - release workflow: read-only token by default, write only in the publish job. Co-Authored-By: Claude Fable 5.2 <[email protected]>
The table names the environment variable a key is read from, so a cloned repository could send another service's secret to a provider. Co-Authored-By: Claude Fable 5.2 <[email protected]>
Co-Authored-By: Claude Fable 5.2 <[email protected]>
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.
Four small fixes from a source audit, each checked against the current code first.
/s/<id>route. A cloned repository could ship one pointing at any readable file. Links are no longer served.providers.<id>.credentialsnames the environment variable a key is read from, so a project config could send another service's secret to a provider. The table is now read only from the global config, like endpoints and headers.contents: writeandactions: writefor every job, including the build jobs that run third-party actions. It is read-only by default now; onlypublish(creates the release) getscontents: write.landingalready declared its own.Verification
cargo testfor config, llm (response cache) and server (shares) pass.whycodes-config,whycodes-llm,whycodes-server: no missed lines.homebrewonly reads the release and pushes with the deploy key, so it should not need more than read; if a release job fails on permissions, that is the place to look.🤖 Generated with Claude Code