google-gemini / google-gemini/gemini-cli
Enterprise: Policy Engine Integration for Hooks
- Dominant language
- TypeScript
- Stars
- 107k
- Forks
- 14.6k
- Avg merge
- 2d 3h
- Merged PRs (30d)
- 45
Description
# Enterprise: Policy Engine Integration for Hooks
## Description
Enterprises require centralized control over local code execution. Hooks should be integrated into the Policy Engine to allow administrators to enforce restrictions at an organizational level, separate from standard remote configuration.
## Proposed Changes
- Map hook execution permissions to the Policy Engine.
- Allow policies to define mandatory hooks or strictly forbidden commands.
- Ensure enterprise policy overrides local user or project settings.
## Acceptance Criteria
- [ ] Policy Engine can block hook execution.
- [ ] Administrator-defined policies take precedence over local `settings.json`.
- [ ] Clear error messages when a hook is blocked by enterprise policy.
Contributor guide
Assessment
This issue has not been assessed yet.