Skip to content

fix(sight): fix command allowlisting and iterative traversal#27

Merged
Patel230 merged 3 commits into
mainfrom
fix/sight-issue
Jul 17, 2026
Merged

fix(sight): fix command allowlisting and iterative traversal#27
Patel230 merged 3 commits into
mainfrom
fix/sight-issue

Conversation

@Patel230

Copy link
Copy Markdown
Contributor

Fix command allowlisting and iterative traversal in sight.

Patel230 added 3 commits July 17, 2026 08:22
…y fix

- Add AllowedCommands allowlist and hookArgPattern regex validation
- Validate hook commands before execution to prevent shell injection
- Replace recursive graph traversal with iterative BFS with depth limit
- Fix HTTP client use-after-close by reading body before returning
- Add ErrNotImplemented for placeholder audit functions
@Patel230
Patel230 merged commit 97144a0 into main Jul 17, 2026
11 of 12 checks passed
@Patel230
Patel230 deleted the fix/sight-issue branch July 17, 2026 07:09
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.

1 participant