Skip to content

feat: add Kuadrant operator as optional installer component - #1262

Merged
pdettori merged 2 commits into
rossoctl:mainfrom
pdettori:feat/kuadrant-installer-1138
Apr 17, 2026
Merged

pdettori merged 2 commits into
rossoctl:mainfrom
pdettori:feat/kuadrant-installer-1138

Conversation

@pdettori

@pdettori pdettori commented Apr 16, 2026 •

Copy link
Copy Markdown
Member

Summary

  • Add Kuadrant operator (v1.4.2) as an optional Ansible installer component for MCP Gateway JWT validation and authorization via Authorino
  • Installs via Helm from kuadrant.io/helm-charts, creates a Kuadrant CR to instantiate Authorino
  • Disabled by default; enabled in dev, ocp, and ocp-minimal environments where MCP Gateway is active

Details

The Kuadrant/mcp-gateway project uses Kuadrant's AuthPolicy for gateway-level JWT validation and coarse-grained authorization. All Kuadrant dependencies (Istio, cert-manager, Gateway API CRDs) are already present in Kagenti.

Files changed

File Change
deployments/ansible/default_values.yaml Add charts.kuadrant section (disabled by default, v1.4.2)
deployments/ansible/roles/kagenti_installer/tasks/main.yml Add Helm install + rollout wait + Kuadrant CR creation tasks
deployments/envs/dev_values.yaml Enable Kuadrant for Kind dev
deployments/envs/ocp_values.yaml Enable Kuadrant for OpenShift
deployments/envs/ocp_minimal_values.yaml Enable Kuadrant for minimal OpenShift

Task ordering

Istio + cert-manager + Gateway API CRDs + kagenti-deps (Keycloak)
  → kind registry DNS
  → [NEW] Kuadrant operator (Helm + wait + CR)
  → gateway-system namespace
  → MCP Gateway chart
  → Kagenti chart

Follow-up work

AuthPolicy configuration (JWT validation rules, OPA-based tool authorization, token exchange) and Keycloak realm integration will be done in a separate PR, as noted in the issue.

Closes #1138

Test plan

  • Run kind-full-test.sh --skip-cluster-destroy with dev values — verify kubectl get pods -n kuadrant-system shows operator + authorino running
  • Verify kubectl get kuadrant -n kuadrant-system returns the CR
  • Verify kubectl get crd | grep kuadrant shows AuthPolicy, RateLimitPolicy CRDs
  • Run installer with default values (Kuadrant disabled) — verify kuadrant-system namespace does not exist
  • Run installer twice with Kuadrant enabled — second run succeeds (idempotency)

🤖 Generated with Claude Code

@pdettori

Copy link
Copy Markdown
Member Author

Test Results — Kind (dev values)

Tested on local Kind cluster with dev_values.yaml (Kuadrant enabled).

Kuadrant operator pods (kuadrant-system)

All 6 pods running:

Pod Status
kuadrant-operator-controller-manager Running
authorino Running
authorino-operator Running
limitador-limitador Running
limitador-operator-controller-manager Running
dns-operator-controller-manager Running

Kuadrant CR

NAME       MTLS AUTHORINO   MTLS LIMITADOR   AGE
kuadrant   false            false            3m56s

CRDs installed (16 Kuadrant CRDs)

authpolicies.kuadrant.io, ratelimitpolicies.kuadrant.io, tlspolicies.kuadrant.io, dnspolicies.kuadrant.io, kuadrants.kuadrant.io, authconfigs.authorino.kuadrant.io, limitadors.limitador.kuadrant.io, and 9 others.

MCP Gateway coexistence

MCP Gateway broker-router and controller both running in mcp-system — no conflicts with Kuadrant.

Note on Docker Hub rate limiting

The first installer run failed at SPIRE OIDC Discovery Provider due to Docker Hub 429 rate limiting (nginx-prometheus-exporter:1.4.2, nginx-unprivileged:1.29.1-alpine). This is a pre-existing infra issue unrelated to this PR — both images are already listed in preload-images.txt but preloading was disabled. Re-running the installer succeeded after preloading the images into Kind.

@pdettori

Copy link
Copy Markdown
Member Author

Clean cluster verification results

Ran full kind-full-test.sh on a freshly created Kind cluster from the worktree branch:

Kuadrant pods (all 6 Running)

authorino-6458b56b-dlvvn                                 1/1   Running   0     4m34s
authorino-operator-6bccb7c696-2qdr6                      1/1   Running   0     5m12s
dns-operator-controller-manager-55887cb68b-qvfh9         1/1   Running   0     5m12s
kuadrant-operator-controller-manager-84b5dc8b46-7wjnj    1/1   Running   0     5m12s
limitador-limitador-85c8d6848b-b7t59                     1/1   Running   0     4m34s
limitador-operator-controller-manager-85b5c6778d-wbkz6   1/1   Running   0     5m12s

Kuadrant CR

NAME       MTLS AUTHORINO   MTLS LIMITADOR   AGE
kuadrant   false            false            4m35s

CRDs (16 Kuadrant CRDs installed)

AuthPolicy, RateLimitPolicy, DNSPolicy, TLSPolicy, OIDCPolicy, TokenRateLimitPolicy, and more.

MCP Gateway coexistence

mcp-gateway-broker-router-7b5d8d8798-hccr4   1/1   Running
mcp-gateway-controller-6cb55ccc69-zggmj      1/1   Running

Idempotency

Second installer run completed successfully (exit 0). All pods stable, no restarts.

Disabled by default

default_values.yaml sets charts.kuadrant.enabled: false. The Ansible block is guarded by when: charts.kuadrant.enabled | default(false) — Kuadrant tasks are completely skipped when disabled.

All test plan items verified ✅

@pdettori

Copy link
Copy Markdown
Member Author

/run-e2e

@github-actions github-actions Bot added the safe-to-test Maintainer reviewed - safe to run E2E tests label Apr 16, 2026
@github-actions

Copy link
Copy Markdown

E2E HyperShift Tests Started

Triggered by: @pdettori
Commit: e81ee204028060cb538fbd176fb61631cc711996
Workflow Run: View logs

Tests are running on OpenShift 4.20.11. This typically takes 30-45 minutes.


To re-run tests after new commits, comment /run-e2e again.

@github-actions

Copy link
Copy Markdown

E2E HyperShift Tests Failed

Commit: e81ee204028060cb538fbd176fb61631cc711996
Result: Tests failed - please check the logs
Workflow Run: View logs


To re-run tests after fixing issues, comment /run-e2e again.

@pdettori

Copy link
Copy Markdown
Member Author

/run-e2e

@github-actions

Copy link
Copy Markdown

E2E HyperShift Tests Started

Triggered by: @pdettori
Commit: e81ee204028060cb538fbd176fb61631cc711996
Workflow Run: View logs

Tests are running on OpenShift 4.20.11. This typically takes 30-45 minutes.


To re-run tests after new commits, comment /run-e2e again.

@github-actions

Copy link
Copy Markdown

E2E HyperShift Tests Failed

Commit: e81ee204028060cb538fbd176fb61631cc711996
Result: Tests failed - please check the logs
Workflow Run: View logs


To re-run tests after fixing issues, comment /run-e2e again.

Add Kuadrant operator installation to the Ansible installer for MCP
Gateway JWT validation and authorization via Authorino. The operator
is installed via Helm from kuadrant.io/helm-charts (v1.4.2) and a
Kuadrant CR is created to instantiate Authorino.

Kuadrant is disabled by default and enabled in dev, ocp, and
ocp-minimal environments where MCP Gateway is active. AuthPolicy
configuration and Keycloak realm integration will follow in a
separate PR.

Closes rossoctl#1138

Assisted-By: Claude (Anthropic AI) <[email protected]>
Signed-off-by: Paolo Dettori <[email protected]>
Signed-off-by: Paolo Dettori <[email protected]>
@pdettori
pdettori force-pushed the feat/kuadrant-installer-1138 branch from e81ee20 to cef81e4 Compare April 17, 2026 13:50
@github-actions

Copy link
Copy Markdown

New Commits Detected

The safe-to-test label has been automatically removed because new commits were pushed.

New HEAD: cef81e4

For maintainers: Please review the new changes and comment /run-e2e to trigger E2E tests.

Security checklist

Before running E2E tests, verify the PR does NOT contain:

  • Changes to .github/workflows/ that bypass security
  • Changes to .github/scripts/ that could exfiltrate secrets
  • curl, wget, or nc commands to external URLs in scripts
  • Base64 encoding of environment variables
  • Printing secrets to logs (echo $SECRET)
  • Suspicious package installations

This is an automated security measure to prevent TOCTOU attacks

@github-actions github-actions Bot removed the safe-to-test Maintainer reviewed - safe to run E2E tests label Apr 17, 2026
@pdettori

Copy link
Copy Markdown
Member Author

/run-e2e

@github-actions github-actions Bot added the safe-to-test Maintainer reviewed - safe to run E2E tests label Apr 17, 2026
@github-actions

Copy link
Copy Markdown

E2E HyperShift Tests Started

Triggered by: @pdettori
Commit: cef81e4c9032657b00661139b9555443958947dc
Workflow Run: View logs

Tests are running on OpenShift 4.20.11. This typically takes 30-45 minutes.


To re-run tests after new commits, comment /run-e2e again.

@github-actions

Copy link
Copy Markdown

E2E HyperShift Tests Passed

Commit: cef81e4c9032657b00661139b9555443958947dc
Result: All tests passed
Workflow Run: View logs

The safe-to-test label indicates this commit has been approved for E2E testing.


If you push new commits, the label will be removed and you'll need to comment /run-e2e again.

@huang195 huang195 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.

Clean, focused PR that adds Kuadrant operator as an optional Ansible installer component for MCP Gateway JWT validation. Follows existing patterns well — Helm install with retries, rollout wait, CR creation, all inside a block gated by charts.kuadrant.enabled | default(false). Disabled by default with env-specific overrides for dev, ocp, and ocp-minimal.

Areas reviewed: YAML, Ansible tasks, commit conventions, security, PR format
Commits: 1 commit, signed-off: ✓
CI status: all 22 checks passing

One minor suggestion below.

Assisted-By: Claude (Anthropic AI) [email protected]

@github-actions

Copy link
Copy Markdown

New Commits Detected

The safe-to-test label has been automatically removed because new commits were pushed.

New HEAD: 9c06e5a

For maintainers: Please review the new changes and comment /run-e2e to trigger E2E tests.

Security checklist

Before running E2E tests, verify the PR does NOT contain:

  • Changes to .github/workflows/ that bypass security
  • Changes to .github/scripts/ that could exfiltrate secrets
  • curl, wget, or nc commands to external URLs in scripts
  • Base64 encoding of environment variables
  • Printing secrets to logs (echo $SECRET)
  • Suspicious package installations

This is an automated security measure to prevent TOCTOU attacks

@github-actions github-actions Bot removed the safe-to-test Maintainer reviewed - safe to run E2E tests label Apr 17, 2026
@pdettori
pdettori merged commit cc6e2cf into rossoctl:main Apr 17, 2026
21 checks passed
Ladas added a commit to Ladas/kagenti that referenced this pull request Apr 20, 2026
Adding MLflow + Phoenix + Kuadrant (upstream rossoctl#1262) exceeds the Kind
CI runner's CPU capacity. Keep MLflow (the focus of this PR) and
disable Phoenix to stay within resource limits. Phoenix can be
re-enabled when CI runner resources are increased.

Assisted-By: Claude (Anthropic AI) <[email protected]>
Signed-off-by: Ladislav Smola <[email protected]>
Ladas added a commit to Ladas/kagenti that referenced this pull request Apr 20, 2026
Kuadrant operator + Authorino (merged upstream rossoctl#1262) consumes too
much CPU on Kind CI runners. Disable for Kind — Kuadrant AuthPolicy
is OpenShift-specific and not needed for local development/testing.

Assisted-By: Claude (Anthropic AI) <[email protected]>
Signed-off-by: Ladislav Smola <[email protected]>
pdettori added a commit to pdettori/rossoctl that referenced this pull request Apr 21, 2026
Install Kuadrant operator (v1.4.2) from kuadrant.io/helm-charts and
create a Kuadrant CR to instantiate Authorino for MCP Gateway AuthPolicy
JWT validation and authorization.

Separate from --with-mcp-gateway (which installs the MCP Gateway broker).
Both are included in --with-all. Cleanup script updated to delete the
Kuadrant CR and uninstall the operator.

Matches rossoctl#1262.

Assisted-By: Claude (Anthropic AI) <[email protected]>
Signed-off-by: Paolo Dettori <[email protected]>
@pdettori
pdettori deleted the feat/kuadrant-installer-1138 branch April 23, 2026 19:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

feature: Include Authorino/Kuadrant in the Kagenti install for MCP Gateway

2 participants