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

Ensure 'jiffy:encode/1' returns a binary #145

Merged
merged 1 commit into from
Dec 7, 2023

Conversation

ssepml
Copy link
Contributor

@ssepml ssepml commented Sep 25, 2023

Description

jiffy may return an iolist instead of a binary when encoding big objects (see details here). This leads to problems inside jose as it expects the plaintext to be a binary when signing a token (see here).

@potatosalad
Copy link
Owner

@ssepml Thanks!

@potatosalad potatosalad merged commit c53977d into potatosalad:main Dec 7, 2023
@ssepml ssepml deleted the jiffy_binary branch December 7, 2023 13:56
potatosalad added a commit that referenced this pull request Apr 7, 2024
* Security Patches
  * [CVE-2023-50966](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2023-50966): Add `jose:pbes2_count_maximum/0`.  By default, the maximum iterations are set to 10,000 and it will raise an error if `p2c` is larger than this value.
* Changes
  * Declare Poison as an optional dependency, thanks to [@lnikkila][https://github.com/lnikkila]; see [#144](#144).
  * Ensure `jiffy:encode/1` returns a binary, thanks to [@ssepml](https://github.com/ssepml); see [#145](#145).
  * Various type spec additions and dialyzer/dialyxir integrations, thanks to [@whatyouhide](https://github.com/whatyouhide) and [@maennchen](https://github.com/maennchen).
  * Doc updates and fixes, thanks to [@aymanosman](https://github.com/aymanosman) and [@adamu](https://github.com/adamu); see [#158](#158) and [#159](#159).
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