Skip to content

build: rebase the Radar WorkOS fork onto v1.22.1 - #14

Merged
mfroembgen merged 0 commit into
mainfrom
fork-sync/v1.22.1-rebase
Nov 30, 2026
Merged

mfroembgen merged 0 commit into
mainfrom
fork-sync/v1.22.1-rebase

Conversation

@mfroembgen

@mfroembgen mfroembgen commented Nov 30, 2026 •

Copy link
Copy Markdown
Owner

Description

Rebase the fork's four patches onto Radar v1.22.1. WorkOS keeps OAuth grants outside Radar so existing MCP clients can stay signed in across restarts. Upstream's built-in OAuth remains available for single-replica OIDC deployments.

v1.22.1
  + WorkOS AuthKit
  + linear URL suffix normalization
  + optional MCP server instructions
  + fork image and chart packaging

Security and compatibility

  • v1.22.1 stops AI answers from fetching remote Markdown images. Helm chart READMEs still opt in. skyhook-io/radar#2975
  • GHSA-h4q4-5hfg-qpqc was fixed in the existing v1.21.5 base. Upstream lists no new Radar advisory with a first fix in v1.22.x.
  • The root Go module now requires Go 1.27.4. Cloud Owner action defaults and authorization checks changed for Argo CD and Velero. Go upgrade, Argo CD actions, Velero permissions
  • The inherited web lockfile still includes Zod 4.4.3 through the ESLint React Hooks development dependency. The production dependency audit reported zero findings. GHSA-mrhx-c7xc-m3w5

Upstream changes

The two releases contain 37 upstream commits.

  • v1.22.0 adds opt-in OIDC MCP OAuth with browser consent and endpoint-specific credentials. It adds a CloudNativePG fleet view, Flux source revision and activity views, Traefik route and certificate details, and CSI VolumeSnapshot relationships. Resource filtering recognizes kubectl short names. Helm operations and port-forwards now belong to the active cluster connection. MCP OAuth, v1.22.0 changes
  • v1.22.1 separates integration instances by cluster connection, lets MCP report the observed Kubernetes UID and version, supports opening investigations with a resource question, and filters out false CoreDNS findings about rewrite and template rules. v1.22.1 changes

Patch stack

Commit Decision
72334457d2f6bb4ef1ee209508eae714c3e617b2 feat(mcp): authenticate remote MCP clients with WorkOS AuthKit Adapted. Use upstream's auth entry point while preserving endpoint audiences, Kubernetes identity mapping, and the one-fetch-per-minute JWKS limit.
c7e35dc6bf5b03b7dae422cfb0c822e3131ab78a fix: reuse linear URL suffix normalization Kept. The target tag still has all three regex call sites.
b94c6d185662be70b2ccbe5cf7b6b191f4acd845 feat(mcp): add --mcp-no-instructions to send no server instructions Kept. Upstream has no equivalent flag.
56b30710a43d388c66642804931baaf03bac9fb5 build: package the Radar 1.22.1 WorkOS fork Adapted. The binary, image and packaged chart use 1.22.1. The chart and future image build use the same product commit.

Conflict notes

  • internal/server/server.go conflicted around auth state and metadata routes. Both modes keep their routes and share upstream's auth dispatch. Upstream's per-connection MCP wrapper stays in place.
  • deploy/helm/radar/templates/deployment.yaml, values.yaml and values.schema.json conflicted around the MCP settings. The chart keeps both settings and rejects a deployment that enables both OAuth modes.
  • cmd/explorer/main.go and docs/configuration.md both added an MCP flag at the same location. Keep and document both flags.
  • The URL and packaging commits replayed without textual conflicts. The packaging commit regenerates the archive and index and updates the pinned release and product commits.
1:  4a65e5114 ! 1:  72334457d feat(mcp): authenticate remote MCP clients with WorkOS AuthKit
2:  e0e897ea5 = 2:  c7e35dc6b fix: reuse linear URL suffix normalization
3:  d6b8bcf3f ! 3:  b94c6d185 feat(mcp): add --mcp-no-instructions to send no server instructions
4:  6ea4a6194 ! 4:  56b30710a build: package the Radar 1.21.5 WorkOS fork

Decisions

  • WorkOS deployments expose the two WorkOS-protected MCP endpoints and disable the built-in agent routes.
  • Helm rejects WorkOS flags in extraArgs when mcp.oauth.enabled is true. It also rejects --mcp-oauth in extraArgs when mcp.workos is configured. Both guards match single-dash and double-dash flag names regardless of their values. Radar validates other combinations at startup.
  • The Helm schema and deployment template require all three WorkOS settings, MCP enabled, and standalone OIDC or proxy authentication.
  • WorkOS and built-in OAuth are mutually exclusive at startup and in Helm. They would otherwise claim the same MCP routes.
  • The image workflow reads its Go version from the pinned source's go.mod. The source chart keeps upstream's development placeholders and the packaged fork chart carries the release version.

Type of change

  • Bug fix
  • New feature
  • Breaking change
  • Documentation update

How has this been tested?

  • Before. The upstream tag still uses three trailing-slash regexes. A stock checkout advertises MCP server instructions by default.

  • After. The fork uses the existing linear helper at all three sites. A stdio handshake returned 3,402 instruction characters by default and zero with --mcp-no-instructions.

  • The local release build, web build, web and shared UI typechecks, 12 API config tests and web lint passed. The binary reports radar 1.22.1.

  • The local Go build, MCP/auth/server/CLI package tests, and vet passed. Helm lint, chart smoke tests, the dual-mode rejection check, and workflow lint passed. Codehygiene reported no findings on the replay edits.

  • The persistent SQLite regression test failed on the previous Helm template and passes with the new guard. All 277 chart unit tests, Helm lint, chart smoke tests and packaged-chart verification passed. Codehygiene found no issues on the added lines.

  • The draft CI probe uses the same tree as this PR. The current CI run is for probe head 58e07e31e. On an earlier probe head, all 12 runnable jobs passed, including the main CI workflow, AppImage smoke test and Windows Helm refresh. The separate Repo hygiene job skipped because this diff ran the Go checks.

  • On that earlier probe head, the JavaScript/TypeScript CodeQL job passed without either URL file appearing in a polynomial ReDoS result. The code-scanning check is neutral because the workflow reserves Go analysis for main and scheduled runs. Its two PR annotations name upstream trailing-argument warnings in unchanged Diagnose components.

  • Not verified. CI completion for probe head 58e07e31e, Go CodeQL, live WorkOS sign-in, image publication and cluster rollout.

  • Tested locally with minikube/kind

  • Tested against a remote cluster

  • Added/updated unit tests

Checklist

  • My code follows the project's coding standards
  • I have performed a self-review of my code
  • All four fork commits are signed

Merge danger

Door. Two-way. The old head stays reachable and can be restored by another reviewed lease push.

Blast radius. The fork's default branch history changes. Land by moving main to the rebased head with the exact lease below after review.

git push --force-with-lease=main:6ea4a61949dd8b9b785715766ad3b5469738f607 origin 56b30710a43d388c66642804931baaf03bac9fb5:main

After landing, publish the 1.22.1 fork image and update downstream image digest pins in a separate change.

@mfroembgen
mfroembgen force-pushed the fork-sync/v1.22.1-rebase branch 4 times, most recently from 26331b1 to 56b3071 Compare November 30, 2026 09:18
@mfroembgen
mfroembgen merged commit 56b3071 into main Nov 30, 2026
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.

1 participant