Skip to content

istio: grant waypoint controller namespaced secret-write via RoleBinding#4877

Draft
alexh-tigera wants to merge 1 commit into
tigera:masterfrom
alexh-tigera:waypoint-pull-secret-rbac
Draft

istio: grant waypoint controller namespaced secret-write via RoleBinding#4877
alexh-tigera wants to merge 1 commit into
tigera:masterfrom
alexh-tigera:waypoint-pull-secret-rbac

Conversation

@alexh-tigera

Copy link
Copy Markdown
Member

The waypoint pull-secrets controller copies the Installation pull secret into namespaces that contain istio-waypoint Gateways so waypoint pods can pull the Istio proxy image from a private registry. The operator's cluster-wide secrets grant is read-only, so CopyToNamespace is RBAC-denied in a user namespace.

Render a per-namespace tigera-operator-secrets RoleBinding in each waypoint namespace (ordered before the copied secrets, cleaned up after them so write access persists while the secrets are removed), mirroring how egressgateway obtains namespaced secret-write. Unit tests (fake client) and GKE node-cred environments masked this gap.

Description

Release Note

TBD

For PR author

  • Tests for change.
  • If changing pkg/apis/, run make gen-files
  • If changing versions, run make gen-versions

For PR reviewers

A note for code reviewers - all pull requests must have the following:

  • Milestone set according to targeted release.
  • Appropriate labels:
    • kind/bug if this is a bugfix.
    • kind/enhancement if this is a a new feature.
    • enterprise if this PR applies to Calico Enterprise only.

The waypoint pull-secrets controller copies the Installation pull secret
into namespaces that contain istio-waypoint Gateways so waypoint pods can
pull the Istio proxy image from a private registry. The operator's
cluster-wide secrets grant is read-only, so CopyToNamespace is RBAC-denied
in a user namespace.

Render a per-namespace tigera-operator-secrets RoleBinding in each
waypoint namespace (ordered before the copied secrets, cleaned up after
them so write access persists while the secrets are removed), mirroring
how egressgateway obtains namespaced secret-write. Unit tests (fake
client) and GKE node-cred environments masked this gap.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants