Skip to content

chore(api): add auth attributes#2120

Open
jakubno wants to merge 7 commits intomainfrom
chore/improve-identification-in-logs
Open

chore(api): add auth attributes#2120
jakubno wants to merge 7 commits intomainfrom
chore/improve-identification-in-logs

Conversation

@jakubno
Copy link
Member

@jakubno jakubno commented Mar 12, 2026

image

Note

Medium Risk
Touches authentication validation call signatures and adds new telemetry/logging attributes derived from auth tokens; while tokens are masked, any masking/attribute propagation bug could leak sensitive data or cause missing/incorrect trace context.

Overview
Plumbs *gin.Context through auth validation calls so the request’s parent span can be enriched with new telemetry attributes (masked API key/access token, user ID, team ID), and tightens the auth service generics by requiring teams to expose TeamID(). It also centralizes proxy request logging fields (including derived client IP) to reduce duplication and ensure consistent request metadata across proxies.

Written by Cursor Bugbot for commit 4bf4c51. This will update automatically on new commits. Configure here.

@jakubno jakubno marked this pull request as ready for review March 12, 2026 14:14
@ValentaTomas ValentaTomas removed their request for review March 12, 2026 23:45
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.

2 participants