Skip to content

Fix control plane access for private endpoints - #230

Merged
mikouaj merged 1 commit into
google:mainfrom
AnouarMohamed:fix/control-plane-access-private-endpoint
Jul 24, 2026
Merged

Fix control plane access for private endpoints#230
mikouaj merged 1 commit into
google:mainfrom
AnouarMohamed:fix/control-plane-access-private-endpoint

Conversation

@AnouarMohamed

Copy link
Copy Markdown
Contributor

Summary

  • skip master authorized network checks when the cluster has no public control plane endpoint
  • support both legacy private endpoint config and the newer control plane endpoint config shape
  • add v1/v2 regression tests for private-only, disabled IP endpoint, and nested authorized-network configs

Root cause

The policy always required master authorized network CIDRs, even when the public control plane endpoint was disabled. Authorized networks constrain public endpoint access, so private-only clusters were reported invalid incorrectly.

Validation

  • /tmp/opa test gke-policies -v
  • /tmp/opa test gke-policies-v2 -v
  • /tmp/regal lint --format github gke-policies-v2
  • go test ./...

Closes #227

@mikouaj mikouaj left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@mikouaj
mikouaj force-pushed the fix/control-plane-access-private-endpoint branch from 24fd5c1 to bff12e1 Compare July 24, 2026 08:41
@mikouaj
mikouaj merged commit 701388d into google:main Jul 24, 2026
10 checks passed
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.

reporting issue with policy - Limit Control Plane endpoint access

2 participants