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

(2.11) Bump github.com/nats-io/jwt/v2 from 2.6.0 to 2.7.0 #5915

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Sep 23, 2024

Bumps github.com/nats-io/jwt/v2 from 2.6.0 to 2.7.0.

Release notes

Sourced from github.com/nats-io/jwt/v2's releases.

v2.7.0

What's Changed

This release includes a subtle change in the way tags are handled. They are now case-sensitive. Previously, tags were converted to lowercase and then stored. This release preserves the value of the tag as specified. If you use tag APIs to Add/Remove/Contains, please verify that the format of the input is lowercased. Also Remove() API will now return an error if the requested tag could not be found. This will help in surfacing tag edits that are performed with mismatched inputs.

Full Changelog: nats-io/jwt@v2.6.0...v2.7.0

Commits
  • 18a60d6 [CHANGE] removing a tag that doesn't exist results in an error (#228)
  • de1f16b [CHANGE] Tags are now case-sensitive (#225)
  • 2d9ece2 Added validation to cluster traffic - as downstream tools like nsc will need ...
  • See full diff in compare view

Dependabot compatibility score

You can trigger a rebase of this PR by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Note
Automatic rebases have been disabled on this pull request as it has been open for over 30 days.

Bumps [github.com/nats-io/jwt/v2](https://github.com/nats-io/jwt) from 2.6.0 to 2.7.0.
- [Release notes](https://github.com/nats-io/jwt/releases)
- [Changelog](https://github.com/nats-io/jwt/blob/main/ReleaseNotes.md)
- [Commits](nats-io/jwt@v2.6.0...v2.7.0)

---
updated-dependencies:
- dependency-name: github.com/nats-io/jwt/v2
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot requested a review from a team as a code owner September 23, 2024 08:29
@dependabot dependabot bot added dependencies Pull requests that update a dependency file go Pull requests that update Go code labels Sep 23, 2024
@neilalexander neilalexander force-pushed the dependabot/go_modules/github.com/nats-io/jwt/v2-2.7.0 branch from 5fe6b58 to da3bd05 Compare September 23, 2024 10:29
@ripienaar
Copy link
Contributor

imo the jwt lib should not introduce such a change at this point in a minor release.

@neilalexander
Copy link
Member

neilalexander commented Sep 23, 2024

Indeed, there are some test failures due to tag case-sensitivity, I guess from nats-io/jwt#225. We can fix the tests, but that means this shouldn't be cherry-picked into 2.10.x releases.

@neilalexander neilalexander changed the title Bump github.com/nats-io/jwt/v2 from 2.6.0 to 2.7.0 (2.11) Bump github.com/nats-io/jwt/v2 from 2.6.0 to 2.7.0 Sep 23, 2024
@ripienaar
Copy link
Contributor

@aricart explained that only the server uses this feature so the breaking change in the lib is ok - we can fix it in the server and end up in a better place.

So I'll take back what I said above expecting the jet lib to not break the API.

@aricart
Copy link
Member

aricart commented Sep 25, 2024

@neilalexander the test is directly assigning the values to to the tags (not sure where the server is copying this to JWT), so now that they are case-sensitive - the JWT library previously downcased all the inputs, it doesn't do that anymore (or the tags cannot be used in subjects - the reason for the change)

// Case shoud not matter.

@derekcollison
Copy link
Member

What are next steps? We going to fix the tests?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file go Pull requests that update Go code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants