google-gemini / google-gemini/gemini-cli

Enterprise: Policy Engine Integration for Hooks

Open
#15,270 1 comment 0 reactions 0 assignees View on GitHub
🔒 maintainer only area/enterprise kind/customer-issue priority/p2 status/bot-triaged workstream-rollup
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.