Implement enterprise governance and tenant control rules
Open
@TFT444 is already working on this.
Since Aug 20, 2026.
- Dominant language
- Python
- Stars
- 57
- Forks
- 68
- Avg merge
- 3d 15h
- Merged PRs (30d)
- 17
Description
Objective
Implement governance and tenant-control rules for Azure management hierarchy, policy, RBAC, locks, metadata, provider registration, and configuration drift.
Scope
Implement these controls:
- A subscription is outside the approved management-group hierarchy.
- A required security policy initiative is not assigned at the correct scope.
- A mandatory preventive policy uses Audit instead of an approved enforcement effect.
- A policy exemption lacks an owner, justification, or expiration date.
- A critical production resource lacks an approved deletion lock.
- A subscription has excessive Owner assignments.
- Privileged access is assigned at an unnecessarily broad scope.
- A resource provider is registered without a documented operational requirement.
- A production resource lacks accountable ownership metadata.
- Security configuration drift remains unresolved beyond the approved SLA.
Collection architecture
- Management-group and subscription hierarchy APIs.
- Azure Policy definitions, initiatives, assignments, exemptions, and effective policy state.
- Authorization role assignments and role-definition APIs.
- Resource locks, Resource Graph inventory, provider registrations, tags, and governance metadata.
- Approved exception and SLA sources.
Required implementation behavior
- Resolve inherited policy and RBAC state before evaluating a child scope.
- Honor valid exemptions, owners, justifications, expiration dates, and documented exceptions.
- Return NOT_APPLICABLE for out-of-scope subscriptions or resources.
- Return UNKNOWN for inaccessible hierarchy, policy, RBAC, lock, tag, or provider evidence.
- Return FAIL only when effective unsafe configuration is confirmed.
- Include effective scope, inherited assignment, exception state, evidence, remediation, permissions, severity, confidence, and UNKNOWN reason.
Delivery order
- Hierarchy, policy assignment, enforcement, and exemption rules.
- Locks, Owner assignments, and broad privileged-scope rules.
- Provider registration, ownership metadata, and drift rules.
Acceptance criteria
- Tests cover inheritance, conflicting assignments, valid and expired exemptions, scope boundaries, RBAC inheritance, locks, deleted resources, tags, provider state, API errors, and permission failures.
- Valid parent controls and active exemptions do not create false findings.
- Every rule has documentation, remediation, tests, and verified mappings without TBD.
- Scanner, compliance, and CI-equivalent tests pass.
- An origin-branch PR references this issue.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.