Update go dependencies (major) - #229
Conversation
|
Hi @red-hat-konflux-kflux-prd-rh02[bot]. Thanks for your PR. I'm waiting for a openshift-online member to verify that this patch is reasonable to test. If it is, they should reply with Regular contributors should join the org to skip this step. Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
|
/ok-to-test |
Signed-off-by: red-hat-konflux-kflux-prd-rh02 <190377777+red-hat-konflux-kflux-prd-rh02[bot]@users.noreply.github.com>
17049cc to
57931eb
Compare
|
/lgtm |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: bmeng, red-hat-konflux-kflux-prd-rh02[bot] The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
This PR contains the following updates:
v4.3.0→v7.0.0v0.21.6→v1.0.0v4.5.2→v5.3.1v1.0.1→v2.0.0v2.4.4→v3.0.5v4.13.0→v5.9.11Release Notes
cenkalti/backoff (github.com/cenkalti/backoff/v4)
v7.0.0Compare Source
v6.0.1Compare Source
v6.0.0Compare Source
v5.0.3Compare Source
v5.0.2Compare Source
v5.0.1Compare Source
v5.0.0Compare Source
go-openapi/jsonreference (github.com/go-openapi/jsonreference)
v1.0.0Compare Source
1.0.0 - 2026-07-07
Stable API pledge - no change from v0.21.6
Full Changelog: go-openapi/jsonreference@v0.21.6...v1.0.0
10 commits in this release.
Documentation
Miscellaneous tasks
Updates
People who contributed to this release
jsonreference license terms
golang-jwt/jwt (github.com/golang-jwt/jwt/v4)
v5.3.1Compare Source
What's Changed
🔐 Features
WithNotBeforeRequiredparser option and add test coverage by @equalsgibson in #456NewWithClaims()by @equalsgibson in #459ParseUnverifiedby @slickwilli in #414👒 Dependencies
New Contributors
Full Changelog: golang-jwt/jwt@v5.3.0...v5.3.1
v5.3.0Compare Source
This release is almost identical to to
v5.2.3but now correctly indicates Go 1.21 as minimum requirement.What's Changed
Full Changelog: golang-jwt/jwt@v5.2.3...v5.3.0
v5.2.3Compare Source
What's Changed
New Contributors
Full Changelog: golang-jwt/jwt@v5.2.2...v5.2.3
v5.2.2Compare Source
What's Changed
jwt.Parseexample to usejwt.WithValidMethodsby @mattt in #425New Contributors
Full Changelog: golang-jwt/jwt@v5.2.1...v5.2.2
v5.2.1Compare Source
What's Changed
New Contributors
Full Changelog: golang-jwt/jwt@v5.2.0...v5.2.1
v5.2.0Compare Source
What's Changed
NewValidatorby @oxisto in #349New Contributors
Full Changelog: golang-jwt/jwt@v5.1.0...v5.2.0
v5.1.0Compare Source
What's Changed
ErrInvalidTypeinstead ofjson.UnsupportedTypeErrorby @oxisto in #316New Contributors
Full Changelog: golang-jwt/jwt@v5.0.0...v5.1.0
v5.0.0Compare Source
🚀 New Major Version
v5🚀It's finally here, the release you have been waiting for! We don't take breaking changes lightly, but the changes outlined below were necessary to address some of the challenges of the previous API. A big thanks for @mfridman for all the reviews, all contributors for their commits and of course @dgrijalva for the original code. I hope we kept some of the spirit of your original
v4branch alive in the approach we have taken here.~@oxisto, on behalf of @golang-jwt/maintainers
Version
v5contains a major rework of core functionalities in thejwt-golibrary. This includes support for several validation options as well as a re-design of theClaimsinterface. Lastly, we reworked how errors work under the hood, which should provide a better overall developer experience.Starting from v5.0.0, the import path will be:
For most users, changing the import path should suffice. However, since we intentionally changed and cleaned some of the public API, existing programs might need to be updated. The following sections describe significant changes and corresponding updates for existing programs.
Parsing and Validation Options
Under the hood, a new
validatorstruct takes care of validating the claims. A long awaited feature has been the option to fine-tune the validation of tokens. This is now possible with severalParserOptionfunctions that can be appended to mostParsefunctions, such asParseWithClaims. The most important options and changes are:WithLeewayto support specifying the leeway that is allowed when validating time-based claims, such asexpornbf.iatclaim. Usage of this claim is OPTIONAL according to the JWT RFC. The claim itself is also purely informational according to the RFC, so a strict validation failure is not recommended. If you want to check for sensible values in these claims, please use theWithIssuedAtparser option.WithAudience,WithSubjectandWithIssuerto support checking for expectedaud,subandiss.WithStrictDecodingandWithPaddingAllowedoptions to allow previously global settings to enable base64 strict encoding and the parsing of base64 strings with padding. The latter is strictly speaking against the standard, but unfortunately some of the major identity providers issue some of these incorrect tokens. Both options are disabled by default.Changes to the
ClaimsinterfaceComplete Restructuring
Previously, the claims interface was satisfied with an implementation of a
Valid() errorfunction. This had several issues:Since all the validation functionality is now extracted into the validator, all
VerifyXXXandValidfunctions have been removed from theClaimsinterface. Instead, the interface now represents a list of getters to retrieve values with a specific meaning. This allows us to completely decouple the validation logic with the underlying storage representation of the claim, which could be a struct, a map or even something stored in a database.Supported Claim Types and Removal of
StandardClaimsThe two standard claim types supported by this library,
MapClaimsandRegisteredClaimsboth implement the necessary functions of this interface. The oldStandardClaimsstruct, which has already been deprecated inv4is now removed.Users using custom claims, in most cases, will not experience any changes in the behavior as long as they embedded
RegisteredClaims. If they created a new claim type from scratch, they now need to implemented the proper getter functions.Migrating Application Specific Logic of the old
ValidPreviously, users could override the
Validmethod in a custom claim, for example to extend the validation with application-specific claims. However, this was always very dangerous, since once could easily disable the standard validation and signature checking.In order to avoid that, while still supporting the use-case, a new
ClaimsValidatorinterface has been introduced. This interface consists of theValidate() errorfunction. If the validator sees, that aClaimsstruct implements this interface, the errors returned to theValidatefunction will be appended to the regular standard validation. It is not possible to disable the standard validation anymore (even only by accident).Usage examples can be found in example_test.go, to build claims structs like the following.
Changes to the
TokenandParserstructThe previously global functions
DecodeSegmentandEncodeSegmentwere moved to theParserandTokenstruct respectively. This will allow us in the future to configure the behavior of these two based on options supplied on the parser or the token (creation). This also removes two previously global variables and moves them to parser optionsWithStrictDecodingandWithPaddingAllowed.In order to do that, we had to adjust the way signing methods work. Previously they were given a base64 encoded signature in
Verifyand were expected to return a base64 encoded version of the signature inSign, both as astring. However, this made it necessary to haveDecodeSegmentandEncodeSegmentglobal and was a less than perfect design because we were repeating encoding/decoding steps for all signing methods. Now,SignandVerifyoperate on a decoded signature as a[]byte, which feels more natural for a cryptographic operation anyway. Lastly,ParseandSignedStringtake care of the final encoding/decoding part.In addition to that, we also changed the
Signaturefield onTokenfrom astringto[]byteand this is also now populated with the decoded form. This is also more consistent, because the other parts of the JWT, mainlyHeaderandClaimswere already stored in decoded form inToken. Only the signature was stored in base64 encoded form, which was redundant with the information in theRawfield, which contains the complete token as base64.Most (if not all) of these changes should not impact the normal usage of this library. Only users directly accessing the
Signaturefield as well as developers of custom signing methods should be affected.What's Changed
StandardClaimsin favor ofRegisteredClaimsby @oxisto in #235v5Pre-Release by @oxisto in #234DecodeSegementtoParserby @oxisto in #278Verify&Signto detail why string is not an advisable input for key by @dillonstreator in #249v5release by @oxisto in #291New Contributors
Full Changelog: golang-jwt/jwt@v4.5.0...v5.0.0
matttproud/golang_protobuf_extensions (github.com/matttproud/golang_protobuf_extensions)
v2.0.0Compare Source
Summary: Modernization of this package to Go standards in 2022, mostly
through internal cleanups.
New Features: None
The last time this package was significantly modified was 2016, which predates
cmp, subtests, the modern Protocol Buffer implementation, and numerous Gopractices that emerged in the intervening years. The new release is tested
against Go 1.19, though I expect it would work with Go 1.13 just fine.
Finally, I declared bankruptcy on the vendored test fixtures and opted for
creating my own. This is due to the underlying implementation of the generated
code in conjunction with working with a moving target that is an external data
model representation.
Upgrade Notes: This is the aborted v1.0.3 release repackaged as a new
major version 2. To use this, you will need to do or check the following:
The Protocol Buffer messages you provide to this API are from the
google.golang.org/protobufmodule. Take special care to audit anygenerated or checked-in Protocol Buffer message file assets. They may need
to be regenerated.
Your code should presumably use the
google.golang.org/protobufmodule forProtocol Buffers.
This is a new major version of the module, so you will need to transition
from module
github.com/matttproud/golang_protobuf_extensionstogithub.com/matttproud/golang_protobuf_extensions/v2.v1.0.4Compare Source
Summary: This is an emergency re-tag of v1.0.2 since v1.0.3 broke API
compatibility for legacy users. See the description of v1.0.2 for details.
v1.0.3Compare Source
DO NOT USE: Use v1.0.4 instead. What is described in v1.0.3 will be
transitioned to a new major version.
Summary: Modernization of this package to Go standards in 2022, mostly
through internal cleanups.
New Features: None
The last time this package was significantly modified was 2016, which predates
cmp, subtests, the modern Protocol Buffer implementation, and numerous Gopractices that emerged in the intervening years. The new release is tested
against Go 1.19, though I expect it would work with Go 1.13 just fine.
Finally, I declared bankruptcy on the vendored test fixtures and opted for
creating my own. This is due to the underlying implementation of the generated
code in conjunction with working with a moving target that is an external data
model representation.
v1.0.2Compare Source
Summary: Tagged version with Go module support.
New Features: None
End-users wanted a tagged release that includes Go module support.
yaml/go-yaml (go.yaml.in/yaml/v2)
v3.0.5Compare Source
v3.0.4Compare Source
v3.0.3Compare Source
v3.0.2Compare Source
v3.0.1Compare Source
v3.0.0Compare Source
evanphx/json-patch (gopkg.in/evanphx/json-patch.v4)
v5.9.11Compare Source
What's Changed
Full Changelog: evanphx/json-patch@v5.9.10...v5.9.11
v5.9.10Compare Source
What's Changed
New Contributors
Full Changelog: evanphx/json-patch@v5.9.0...v5.9.10
v5.9.0Compare Source
What's Changed
Full Changelog: evanphx/json-patch@v5.8.1...v5.9.0
v5.8.1: Fix API breakageCompare Source
This PR fixes Operation containing a reference to internal/json and breaking the ability to manually compose one. This restores that ability using a type alias.
Full Changelog: evanphx/json-patch@v5.8.0...v5.8.1
v5.8.0: Blargh Phixs and EmpathyprovementsCompare Source
This release fixes a few stray panics, addresses large number accuracy, and improves performance!
What's Changed
Full Changelog: evanphx/json-patch@v5.7.0...v5.8.0
v5.7.0: The 2023 ReleaseCompare Source
What's Changed
New Contributors
Full Changelog: evanphx/json-patch@v5.6.0...v5.7.0
v5.6.0: Bug fixesCompare Source
What's Changed
New Contributors
Full Changelog: evanphx/json-patch@v5.5.0...v5.6.0
v5.5.0: Better null handlingCompare Source
This incorporates a few fixes related to how nulls are handles in array's and objects.
v5.3.0: Fix zero sized document crashCompare Source
This fixes a crash bug where submitted an empty slice as the document would panic.
v5.2.0Compare Source
v5.1.0Compare Source
v5.0.0: Proper Go modules releaseCompare Source
This release has a proper /v5 directory, unlike the previous releases that did not have a /v4 dir. Thanks to @BenTheElder for getting this sorted out!
Configuration
📅 Schedule: (UTC)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.
To execute skipped test pipelines write comment
/ok-to-test.Documentation
Find out how to configure dependency updates in MintMaker documentation or see all available configuration options in Renovate documentation.