Skip to content

fix(lab): match manager log users by issuer and subject - #1364

Merged
QuentinBisson merged 3 commits into
mainfrom
fix/manager-log-user-fields
Nov 27, 2026
Merged

QuentinBisson merged 3 commits into
mainfrom
fix/manager-log-user-fields

Conversation

@QuentinBisson

@QuentinBisson QuentinBisson commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

Problem

Manager logs now identify users by issuer and subject. Matching subject alone can attribute another issuer's write to the caller.

Change

Reuse the existing logfmt parser and match the validated token's issuer and subject together. Retain exact caller-email matching only when structured identity is absent; contradictory or incomplete identity fails. Tests cover quoting, foreign issuers, missing fields and misleading message text. Supports giantswarm/agent-manager#490 and model-manager 1.25.0.

…caller

model-manager 1.25.0 logs the user as user.issuer/user.subject (mcp-oauth's
UserInfo) instead of caller=<email>; agent-manager and cluster-manager follow.
The agents, portal create and portal models checks accept either form.
@QuentinBisson QuentinBisson changed the title fix(lab): find the person in manager logs by user.subject as well as caller fix(lab): match manager log users by issuer and subject Nov 27, 2026
@QuentinBisson
QuentinBisson marked this pull request as ready for review November 27, 2026 12:28
@QuentinBisson
QuentinBisson requested a review from a team as a code owner November 27, 2026 12:28
@QuentinBisson
QuentinBisson merged commit 784582c into main Nov 27, 2026
8 of 9 checks passed
@QuentinBisson
QuentinBisson deleted the fix/manager-log-user-fields branch November 27, 2026 12:28
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