Skip to content

CRDs need updates to accommodate authorizer-plugin support #3157

Open

Description

@ghaskins

Problem Statement

Pull request #3110 adds support for pluggable authorizers. One remaining gap is the presence of Cedar-isms in the CRDs. For example:

There are a few ways to handle this, but they all likely require a new version of the affected CRDs:

Possible Solutions

  1. New CRD schema drops "inline" authz support, relying purely on a configmap-reference. Validation would remain at the code level but would be removed from the schema level.
  2. New CRD schema modifies "inline" authz support to relax schema checking (see https://kubernetes.io/docs/tasks/extend-kubernetes/custom-resources/custom-resource-definitions/#controlling-pruning) to accommodate various types of authz plugins. Validation would remain at the code level, but is removed at the schema level
  3. We drop "configmap-reference" support and create CRD(s) for Authz configuration. The inline configuration would be generalized to accept an inline representation of the Authz configuration using RawExtensions. Likewise, the previous use cases for configmap-based Authz configuration would now use the new Authz CRD. Validation would remain at the code and inline schema levels, and is now also introduced at the "external reference" level, since we've replaced ConfigMaps with a CRD.

Activity

  1. added
    kubernetes
    on Dec 24, 2025
  2. ghaskins commented on Dec 24, 2025

    @ghaskins
    ContributorAuthor
    Option Inline Validation External Reference Validation Plugin Support
    Current CRDs Yes No No
    Proposal 1 n/a No Yes
    Proposal 2 No No Yes
    Proposal 3 (*) Yes Yes Yes

    (*): While Proposal 3 looks appealing feature-wise, it should be pointed out that it is also redundant with the concept of a ConfigMap and goes against the grain a bit, so this fact should be considered as well.

  3. ChrisJBurns commented on Jul 30, 2026

    @ChrisJBurns
    Collaborator

    Apologies for the long silence here, @ghaskins. This deserved an answer at the time and did not get one.

    To close the loop on the decision: we landed something close to your Proposal 3, with Proposal 2's schema relaxation folded in. MCPAuthzConfig is now a dedicated CRD for backend-agnostic authorization, with a type field naming the authorizer backend (cedarv1, httpv1) and x-kubernetes-preserve-unknown-fields: true on the config body, so a new authorizer does not need a CRD schema change. Reference resolution landed in #5559 and the MCPRemoteProxy wiring in #5564.

    What your issue actually asked for is only partly closed, though. The inline Cedar fields on the MCPServer CRD are still there, so the Cedar-isms you pointed at have not been generalized or deprecated on that surface.

    Keeping this open for that remaining piece. Does MCPAuthzConfig cover your plugin use case in practice, or do the inline fields on MCPServer still get in your way? If they do, we would rather hear which of the two shapes you would want before we change that surface.

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

    authenticationenhancementkubernetesoperator

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions