Skip to content

CWCOW: Enforce registry entries on containers#2611

Open
MahatiC wants to merge 1 commit intomicrosoft:mainfrom
MahatiC:registry-enforcement
Open

CWCOW: Enforce registry entries on containers#2611
MahatiC wants to merge 1 commit intomicrosoft:mainfrom
MahatiC:registry-enforcement

Conversation

@MahatiC
Copy link
Member

@MahatiC MahatiC commented Feb 27, 2026

This PR implements registry enforcement to control what registry entries are allowed to be set inside a container.

  • There is a default_registry_values.go which stores the default registry entries that are necessary. As of now, it has one entry which is needed for ServerCore images as noted here
  • Adds a test annotation for internal testing of registry entries on containers
  • A new enforcement point is added to validate this and corresponding framework changes are also added
  • Unit tests for the new enforcement point

This change has been tested with this rego policy and this container config

@MahatiC MahatiC force-pushed the registry-enforcement branch 2 times, most recently from 81abd32 to 8504977 Compare February 27, 2026 16:55
Signed-off-by: Mahati Chamarthy <mahati.chamarthy@gmail.com>
@MahatiC MahatiC force-pushed the registry-enforcement branch from 8504977 to fa1974e Compare March 2, 2026 17:43
@MahatiC MahatiC marked this pull request as ready for review March 2, 2026 17:46
@MahatiC MahatiC requested a review from a team as a code owner March 2, 2026 17:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants