Skip to content

fix: pass OIDC transport flags to TokenValidatorConfig in thv run - #6794

Closed
suantea wants to merge 3 commits into
stacklok:mainfrom
suantea:fix/vmcp-multi-valued-claims
Closed

suantea wants to merge 3 commits into
stacklok:mainfrom
suantea:fix/vmcp-multi-valued-claims

Conversation

@suantea

@suantea suantea commented Oct 10, 2026 •

Copy link
Copy Markdown

Summary

Passes --oidc-insecure-allow-http and --thv-ca-bundle to the OIDC token validator in thv run. Also forwards --jwks-auth-token-file. This ensures the middleware can use the provided CA bundle for JWKS/OIDC discovery and allow HTTP issuers when requested.

Fixes #6522 (same as #1470 but for the remaining transport flags).


Also includes unlink-before-unlock fix for lockfile cleanup (#6713 follow-up).

Add MultiValuedClaims to vmcpconfig.AuthzConfig and copy it from
Cedar authz options in operator vMCP converter (inline/ConfigMap and ref
paths). Pass MultiValuedClaims through pkg/vmcp/auth/factory to the
Cedar authorizer so claimset_<name> attributes are produced for
VirtualMCPServer when multi_valued_claims is configured.

The Cedar authorizer already supports MultiValuedClaims; this change
extends support to the vMCP deployment path (issue stacklok#6737).
Wire --oidc-insecure-allow-http and --thv-ca-bundle into createOIDCConfig
in thv run so the middleware's token validator receives InsecureAllowHTTP
and CACertPath. Also forward JWKS auth token file. This matches issue
stacklok#6522 (same pattern as stacklok#1470).
@suantea suantea changed the title fix: plumb multi_valued_claims through vMCP authz path fix: pass OIDC transport flags to TokenValidatorConfig in thv run Oct 11, 2026
Reorder CleanupAll and CleanupStaleLocks to remove the lock file before
unlocking to avoid the race described in the review of stacklok#6711. This
prevents the path-to-inode reuse window where a waiter could acquire a
stale inode after we release.

Addresses stacklok#6713 (follow-up to stacklok#6711).
@suantea

suantea commented Oct 11, 2026

Copy link
Copy Markdown
Author

Also fixes #6737 (multi-valued claims for vMCP authz) and continues #6713 cleanup fix in the same branch.

@jhrozek

jhrozek commented Oct 12, 2026

Copy link
Copy Markdown
Contributor

Hi @suantea, I'm closing this PR along with the rest of this batch. Nothing personal, it's just not how we're set up to take contributions.

Our contributing guide asks you to comment on an issue and wait for someone on the team to assign it to you before you start. We do that so two people don't end up fixing the same thing, and so we can agree on the approach first. A few of these PRs landed on issues that already had someone assigned, and I can't review 20+ PRs across unrelated parts of the codebase from one person anyway.

If you'd like to contribute, please read CONTRIBUTING.md, pick one issue, and ask to be assigned. A good-first-issue is a fine place to start. Happy to take a proper look at that one.

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.

thv run ignores --oidc-insecure-allow-http and --thv-ca-bundle — both dropped in createOIDCConfig (same as #1470)

2 participants