Skip to main content

Module approval

Module approval 

Source
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§

ApprovalRule
A single approval rule.
ApprovalRulesManager
Manager for approval rules and command history.
CommandHistory
Record of a command that was evaluated by the approval system.

Enums§

RuleAction
Action to take when a rule matches.
RuleScope
Persistence scope for rules.
RuleType
How the rule pattern is matched against commands.