Add ContainerRegistryDomainEntityUnbinder and ASE binder helpers for domain scope
- Dominant language
- Python
- Stars
- 670
- Forks
- 183
- Avg merge
- 15h 13m
- Merged PRs (30d)
- 368
Description
## Description
Add a domain-scoped unbinder that mirrors the existing `ContainerRegistryProjectEntityUnbinder`, and helpers for binding domain ↔ container registry pairs into `association_scopes_entities` via the RBAC framework.
## Implementation
- Add `ContainerRegistryDomainEntityUnbinder` to `repositories/container_registry/scope_binders.py`.
- Configure `entity_type = RBACElementType.CONTAINER_REGISTRY` and `scope_ref = RBACElementRef(RBACElementType.DOMAIN, domain_name)`.
- Because the domain side has no business junction table, `build_purger_spec` removes only the ASE row.
- Expose a small helper for assembling the `RBACScopeBinder` pair used by domain create/update flows.
## Success Criteria
- Unbinder conforms to the `RBACScopeEntityUnbinder` interface and integrates with `execute_rbac_scope_binder` / `execute_rbac_scope_entity_unbinder`.
- pants lint/check passes for the affected packages.
JIRA Issue: BA-5786
Contributor guide
Assessment
This issue has not been assessed yet.