Expand description
Approval rules system for pattern-based command approval.
Rules can be session-only (ephemeral) or persistent across sessions. Persistent rules are stored in:
- User-global:
~/.opendev/permissions.json - Project-scoped:
.opendev/permissions.json
Ported from opendev/core/runtime/approval/rules.py.
Structs§
- Approval
Rule - A single approval rule.
- Approval
Rules Manager - Manager for approval rules and command history.
- Command
History - Record of a command that was evaluated by the approval system.
Enums§
- Rule
Action - Action to take when a rule matches.
- Rule
Scope - Persistence scope for rules.
- Rule
Type - How the rule pattern is matched against commands.