Skip to content

chore(deps): update module github.com/fxamacker/cbor/v2 to v2.9.1#123

Open
red-hat-konflux[bot] wants to merge 1 commit intobackplane-2.11from
konflux/mintmaker/backplane-2.11/github.com-fxamacker-cbor-v2-2.x
Open

chore(deps): update module github.com/fxamacker/cbor/v2 to v2.9.1#123
red-hat-konflux[bot] wants to merge 1 commit intobackplane-2.11from
konflux/mintmaker/backplane-2.11/github.com-fxamacker-cbor-v2-2.x

Conversation

@red-hat-konflux
Copy link
Copy Markdown

@red-hat-konflux red-hat-konflux bot commented Mar 5, 2026

This PR contains the following updates:

Package Change Age Confidence
github.com/fxamacker/cbor/v2 v2.7.0 -> v2.9.1 age confidence

Warning

Some dependencies could not be looked up. Check the warning logs for more information.


Release Notes

fxamacker/cbor (github.com/fxamacker/cbor/v2)

v2.9.1

Compare Source

This release includes important bugfixes, defensive checks, improved code quality, and more tests. Although not public, the fuzzer was also improved by adding more fuzz tests.

🐞 Bug fixes related to the keyasint feature

These changes only affect Go struct fields tagged with keyasint:

  • [Decoding] Reject integer keys that exceed math.MaxInt64 when decoding CBOR map to a struct with keyasint field (PR #​757)
  • [Decoding] Prevent string representation of an integer key from matching the struct field tagged by keyasint (PR #​757)
  • [Encoding & Decoding] Deduplicate struct fields with the same normalized keyasint tag values (PR #​757)
🐞 Other bug fixes and defensive checks

Some of the bugs fixed are related to decoding extreme values that cannot be encoded with this library. For example, the decoder checks if epoch time encoded as CBOR float value representing hundreds of billions of years overflows int64(seconds).

NOTE: It is generally good practice to avoid using floating point to store epoch time (even when not using CBOR).

  • [Decoding] Reject decoding epoch time encoded as floats that overflow int64 (PR #​753)
  • [Encoding] Return a cloned slice for an empty RawMessage from RawMessage.MarshalCBOR (PR #​753)
  • [Encoding] Reject encoding nil inside indefinite-length strings (PR #​750)
  • [Diagnostic] Accept valid U+FFFD replacement character (PR #​753)
What's Changed
CI / GitHub Actions and Docs
🔎 Details...

New Contributors

Full Changelog: fxamacker/cbor@v2.9.0...v2.9.1

v2.9.0

Compare Source

v2.9.0 adds new features, refactors tests, and improves docs. New features improve interoperability/transcoding between CBOR & JSON.

v2.9.0 passed fuzz tests and is production quality. However, the new TextUnmarshaler feature will continue being fuzz tested a bit longer due to recent changes. The recent changes are limited and don't affect other parts of the codec that passed ~2 billion execs fuzzing.

What's Changed
Docs
CI
🔎 Details
Special Thanks

Many thanks to @​benluddy for adding these new features! 🎉

  • Add opt-in support for encoding.TextMarshaler and encoding.TextUnmarshaler to encode and decode from CBOR text string.
  • Add opt-in support for json.Marshaler and json.Unmarshaler via user-provided transcoding function.
New Contributors

Full Changelog: fxamacker/cbor@v2.8.0...v2.9.0

v2.8.0

Compare Source

v2.8.0 adds omitzero struct tag option, fixes and deprecates 3 functions, and bumps requirements to go 1.20+.

Many thanks to @​liggitt for contributing the omitzero support!

The "omitzero" option omits zero values from encoding, matching stdlib encoding/json behavior.
When specified in the cbor tag, the option is always honored.
When specified in the json tag, the option is honored when building with Go 1.24+.

This release fixes 3 functions (when called directly by user apps) to use same error handling on bad input as cbor.Unmarshal():

  • RawTag.UnmarshalCBOR() (thanks @​thomas-fossati for reporting this!)
  • ByteString.UnmarshalCBOR()
  • SimpleValue.UnmarshalCBOR()

This release also deprecates those 3 functions because they were initially created for internal use. Please use Unmarshal() or UnmarshalFirst() instead.

To preserve backward compatibility, the deprecated functions were added to fuzz tests and will not be removed in v2.x.

What's Changed
Other Changes
🔍 Details
New Contributors

Full Changelog: fxamacker/cbor@v2.7.0...v2.8.0

v2.7.1

Compare Source

v2.7.1 fixes 3 functions (when called directly by user apps) to use same error handling on bad inputs as cbor.Unmarshal():

  • ByteString.UnmarshalCBOR()
  • RawTag.UnmarshalCBOR()
  • SimpleValue.UnmarshalCBOR()

The above 3 fixed functions are deprecated because they were initially created for internal use. Please use Unmarshal() or UnmarshalFirst() instead.

To preserve backward compatibility, the deprecated functions were added to fuzz tests and will not be removed in v2.x.

Before Upgrading to v2.7.1

v2.8.0 is being fuzz tested and will be released later today. It adds support for omitzero struct tag option.

v2.7.1 is the last version to support go 1.17-1.19. v2.8.0 and newer releases will require go 1.20+.

What's Changed
Special Thanks

Thanks @​thomas-fossati for reporting the bug in RawTag.UnmarshalCBOR() when it is called directly by user apps providing bad input data!

Full Changelog: fxamacker/cbor@v2.7.0...v2.7.1


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

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.

@openshift-ci
Copy link
Copy Markdown

openshift-ci bot commented Mar 5, 2026

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: red-hat-konflux[bot]
Once this PR has been reviewed and has the lgtm label, please assign jnpacker for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@red-hat-konflux red-hat-konflux bot changed the title chore(deps): update module github.com/fxamacker/cbor/v2 to v2.9.0 Update module github.com/fxamacker/cbor/v2 to v2.9.0 Mar 27, 2026
@red-hat-konflux red-hat-konflux bot changed the title Update module github.com/fxamacker/cbor/v2 to v2.9.0 chore(deps): update module github.com/fxamacker/cbor/v2 to v2.9.0 Mar 27, 2026
@red-hat-konflux red-hat-konflux bot changed the title chore(deps): update module github.com/fxamacker/cbor/v2 to v2.9.0 Update module github.com/fxamacker/cbor/v2 to v2.9.0 Mar 28, 2026
@red-hat-konflux red-hat-konflux bot changed the title Update module github.com/fxamacker/cbor/v2 to v2.9.0 chore(deps): update module github.com/fxamacker/cbor/v2 to v2.9.0 Mar 28, 2026
@red-hat-konflux red-hat-konflux bot changed the title chore(deps): update module github.com/fxamacker/cbor/v2 to v2.9.0 Update module github.com/fxamacker/cbor/v2 to v2.9.0 Mar 28, 2026
@red-hat-konflux red-hat-konflux bot changed the title Update module github.com/fxamacker/cbor/v2 to v2.9.0 chore(deps): update module github.com/fxamacker/cbor/v2 to v2.9.0 Mar 28, 2026
@red-hat-konflux red-hat-konflux bot changed the title chore(deps): update module github.com/fxamacker/cbor/v2 to v2.9.0 Update module github.com/fxamacker/cbor/v2 to v2.9.0 Mar 29, 2026
@red-hat-konflux red-hat-konflux bot changed the title Update module github.com/fxamacker/cbor/v2 to v2.9.0 chore(deps): update module github.com/fxamacker/cbor/v2 to v2.9.0 Mar 29, 2026
@red-hat-konflux red-hat-konflux bot changed the title chore(deps): update module github.com/fxamacker/cbor/v2 to v2.9.0 Update module github.com/fxamacker/cbor/v2 to v2.9.0 Mar 29, 2026
@red-hat-konflux red-hat-konflux bot changed the title Update module github.com/fxamacker/cbor/v2 to v2.9.0 chore(deps): update module github.com/fxamacker/cbor/v2 to v2.9.0 Mar 29, 2026
@red-hat-konflux red-hat-konflux bot changed the title chore(deps): update module github.com/fxamacker/cbor/v2 to v2.9.0 Update module github.com/fxamacker/cbor/v2 to v2.9.0 Mar 30, 2026
@red-hat-konflux red-hat-konflux bot changed the title Update module github.com/fxamacker/cbor/v2 to v2.9.0 chore(deps): update module github.com/fxamacker/cbor/v2 to v2.9.0 Mar 30, 2026
@red-hat-konflux red-hat-konflux bot changed the title chore(deps): update module github.com/fxamacker/cbor/v2 to v2.9.0 Update module github.com/fxamacker/cbor/v2 to v2.9.0 Mar 30, 2026
Signed-off-by: red-hat-konflux <126015336+red-hat-konflux[bot]@users.noreply.github.com>
@red-hat-konflux red-hat-konflux bot force-pushed the konflux/mintmaker/backplane-2.11/github.com-fxamacker-cbor-v2-2.x branch from bd7539b to cc344c2 Compare March 31, 2026 00:51
@red-hat-konflux red-hat-konflux bot changed the title Update module github.com/fxamacker/cbor/v2 to v2.9.0 chore(deps): update module github.com/fxamacker/cbor/v2 to v2.9.1 Mar 31, 2026
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.

0 participants