Improve instructions and security - #5
Merged
Merged
Conversation
- Added a new section in the CHANGELOG to document changes made to `instructions.md`, which has been streamlined for clarity and organization. - Revised the `active-work/<branch>.md` description in `index.md` to enhance understanding of when to start or resume work. - Expanded the `instructions.md` to include detailed permission boundaries and precedence for memory management, ensuring better guidance for users.
- Introduced `SECURITY.md` to document trust boundaries and intentional capabilities for hooks, emphasizing the importance of trusting project directories. - Updated `CHANGELOG.md` to include security-related changes and improvements in the OpenCode plugin, including validation of session IDs and refusal of symlink hook scripts. - Revised `README.md` to reference the new security document. - Improved hook script validation in `hooks/opencode/safe-script.ts` to ensure safe execution and prevent symlink escapes. - Added tests for hook script safety and binding ID validation in `tests/opencode-safe-script.test.ts`.
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.
No description provided.