Skip to content

Adapt to kcp 0.34 authorization chain restructuring #313

Open

Description

@mjudeikis-bot

Tracking the downstream changes needed for kcp release 0.34 after kcp-dev/kcp#4507 ("Restructure authz chain"), requested in kcp-dev/kcp#4507 (comment).

What changed in kcp

The authorization chain was restructured into bypass / pregate / grant / gate groups (pkg/server/options/authorization.go, pkg/authorization/*, docs in docs/content/concepts/authorization/authorizers.md):

  • --authorization-order now only selects and orders RBAC and Webhook (default RBAC,Webhook). AlwaysAllowGroups and AlwaysAllowPaths always run first; they are still accepted in the flag but ignored and will be removed. Use --authorization-always-allow-paths to control always-allowed paths.
  • The MaximalPermissionPolicy authorizer now returns Deny instead of NoOpinion when a policy applies and does not allow the request; the webhook can no longer allow such a request.
  • Audit annotation authorizer names changed (01-requiredgroups -> gate-requiredgroups, 02-content -> grant-content, 03-systemcrd -> gate-systemcrd, 04-maxpermissionpolicy -> gate-maxpermissionpolicy, 05-bootstrap/local/global -> grant-bootstrap/local/global; new: grant-webhook, pregate-existence, bypass-logicalclustermanagement).
  • system:kcp:initializer:* / system:kcp:terminator:* groups only grant access for registered initializers/terminators in the matching phase.
  • Logical cluster admin identities skip authorization only for requests the bootstrap policy allows.

Steps

  • Review the deployment/config templates for --authorization-order and remove AlwaysAllowGroups / AlwaysAllowPaths from it (use --authorization-always-allow-paths instead where needed)
  • Check any webhook authorization configuration against the new ordering and Deny semantics
  • Update any audit policy, log tooling or docs that match old authorizer annotation names
  • Verify the kcp 0.34 bump works with the above (e2e/smoke test)
  • Mention the breaking changes in the release notes / upgrade docs

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions