Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FIXED] Random authentication error due to missing signature #705

Merged
merged 4 commits into from
Jan 16, 2024

Conversation

tyler92
Copy link
Contributor

@tyler92 tyler92 commented Jan 10, 2024

Sometimes there is an authentication error due to a missing signature when natsOptions_SetUserCredentialsFromMemory is used:

[1] 2023/12/29 13:23:44.880932 [ERR] 172.18.0.1:33898 - cid:36 - authentication error

The problem is that _base64Encode doesn't do anything if the first byte is zero. Since the function works with strings and bytes, it makes sense to check srcLen instead of the first byte.

@kozlovic kozlovic self-requested a review January 11, 2024 02:45
Copy link
Member

@kozlovic kozlovic left a comment

Choose a reason for hiding this comment

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

LGTM. But will wait for PR #708 to be merged before merging this one so that build on main branch does not fail.

@tyler92 tyler92 changed the title Fix random authentication error due to missing signature [FIXED] Random authentication error due to missing signature Jan 14, 2024
@levb levb merged commit 4108c7d into nats-io:main Jan 16, 2024
1 check passed
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.

3 participants