Skip to content

[ADDED] Add auth callout [REDACTED] token test#7096

Merged
neilalexander merged 1 commit intomainfrom
maurice/callout-token
Jul 24, 2025
Merged

[ADDED] Add auth callout [REDACTED] token test#7096
neilalexander merged 1 commit intomainfrom
maurice/callout-token

Conversation

@MauriceVanVeen
Copy link
Copy Markdown
Member

Prior to #6808, ac.ClientInformation.User and ac.ConnectOptions.Token would both hold the raw token value. This means in an auth callout service, you could use ac.ClientInformation.User when doing token-auth, and it would break after upgrading to 2.11.2+. However, the token is not public information so it's now [REDACTED] in ac.ClientInformation.User.

When upgrading past server version 2.11.2, make sure to use ac.ConnectOptions.Token and not ac.ClientInformation.User when getting the token.

This PR just adds a test to explicitly cover this as correct behavior, and calling out the above functionality for anyone upgrading and noticing this change.

Signed-off-by: Maurice van Veen github@mauricevanveen.com

Signed-off-by: Maurice van Veen <github@mauricevanveen.com>
@MauriceVanVeen MauriceVanVeen requested a review from a team as a code owner July 24, 2025 09:13
Copy link
Copy Markdown
Member

@neilalexander neilalexander left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@neilalexander neilalexander merged commit a6c942b into main Jul 24, 2025
69 of 70 checks passed
@neilalexander neilalexander deleted the maurice/callout-token branch July 24, 2025 14:05
@wallyqs wallyqs changed the title Add auth callout [REDACTED] token test [ADDED] Add auth callout [REDACTED] token test Jul 24, 2025
neilalexander added a commit that referenced this pull request Jul 25, 2025
Includes the following:

- #7031
- #7033
- #7034
- #7035
- #7036
- #7040
- #7043
- #7045
- #7047
- #7046
- #7050
- #7051
- #7052
- #7053
- #7061
- #7063
- #7064
- #7065
- #7066
- #7070
- #7072
- #7080
- #7026
- #6728
- #7074
- #7089
- #7095
- #7087
- #7094
- #7096
- #7099

Signed-off-by: Neil Twigg <neil@nats.io>
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