-
Notifications
You must be signed in to change notification settings - Fork 105
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
mix deps.compile jose error since 1.10 release #82
Comments
I`m with the same error here. Waiting for help. |
Getting the same issue. I have an umbrella app and in the "root" mix.exs I put: However, after running
to:
|
@mazz Have you tried just |
Getting the same with a fresh Phoenix install. I added Guardian which has the jose dependancy. Unfortunately none of the above fixes have worked for me thus far. Edit: Looks like hand editing the mix.lock to 1.9.0 does the trick as per @mazz |
Hi Ruan,
I had the same issue because of guardian. The workaround was to lock the
jose version by putting {:jose, "1.8.0"} as the first dependency in mix.ex.
then clean and repull your deps.
Ed
…On Mon, Jan 6, 2020 at 2:21 AM Ruan Zeelie ***@***.***> wrote:
Getting the same with a fresh Phoenix install. I added Guardian which has
the jose dependancy. Unfortunately none of the above fixes have worked for
me thus far.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#82?email_source=notifications&email_token=AALVZVQBDEAIO4CQ3QF4HGTQ4LLXJA5CNFSM4KCXDC22YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEIEULOI#issuecomment-571033017>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AALVZVVDG66KSLZA4SWVK53Q4LLXJANCNFSM4KCXDC2Q>
.
|
Passing
Works :) |
Will try the
|
it requires: elixir 1.9.4 and Erlang to be as younger as/than 22.1 |
Really odd, I haven't been able to reproduce this behavior locally with either of the following setups:
This sounds like it's a minimum OTP version number problem where OTP 22.1 might be the new minimum requirement in order to support the new cryptographic operations (specifically, the switch from default PEM encryption from DES3 to AES-256-CBC). erts-10.4.4 would mean OTP-22.0.{5,6,7}, so I'll do some more tests with that version and report back. |
It looks as though there was a moderate change between I'll see if I can get a compatibility fix put together for a version 1.10.1 release. |
To make things even more confusing, OTP-21.3.8.11 works fine. So, somewhere between OTP-21 and OTP-22, some of the public key macros appear to have been messed up. |
From memory, I am using otp 22.0.7/elixir 1.9.1 if that helps. I installed elixir 1.10-rc0 and plan to upgrade to latest otp.
|
* Fixes * Add PEM/DER compatibility layer for PKCS-8 incompatibilities with various versions of OTP, `crypto`, and `public_key`; see #82
The compilation error should no longer occur as of There are some slight differences between the way PEM and DER formats will be generated between OTP 20, 21, and 22, but hopefully the compatibility layer I added will help smooth things over during the transition. Thanks to everyone who reported this! |
# Changelog ## 1.10.1 (2020-01-08) * Fixes * Add PEM/DER compatibility layer for PKCS-8 incompatibilities with various versions of OTP, `crypto`, and `public_key`; see [#82](potatosalad/erlang-jose#82) ## 1.10.0 (2020-01-03) * Enhancements * Remove [base64url](https://github.com/dvv/base64url) dependency and include embedded version. * Add support for `C20P` and `XC20P` encryption based on [draft-amringer-jose-chacha](https://tools.ietf.org/html/draft-amringer-jose-chacha-01) (ChaCha20/Poly1305 and XChaCha20/Poly1305). * Add support for ECDH-ES keywrapping for AES-GCM, ChaCha20/Poly1305, and XChaCha20/Poly1305. * Add support for PBES2 keywrapping for AES-GCM, ChaCha20/Poly1305, and XChaCha20/Poly1305. * Add support for `ECDH-1PU` encryption based on [draft-madden-jose-ecdh-1pu](https://tools.ietf.org/html/draft-madden-jose-ecdh-1pu-02). * Add support for reading/writing DER format (or PKCS8 format). * Fixes * Fix PSS salt length (thanks to [@ntrepid8](https://github.com/ntrepid8), see [#65](potatosalad/erlang-jose#65)) * Speed up and stabilize tests on CI environment. ## 1.9.0 (2018-12-31) * Enhancements * Add support for [Jason](https://github.com/michalmuskala/jason) JSON encoding and decoding. * Add support for Poison 4.x and lexical ordering. * Use `public_key` over `cutkey` for RSA key generation if available. * Drop support for older versions of OTP (19+ now required). * Relicense library under MIT license. * Fixes * Add macro so the application compiles without warnings after `erlang:get_stacktrace/0` has been deprecated. * Extra sanity check for RSA padding modes when falling back.
mix.deps get and compile failing for version 1.10
Issue did not occur using 1.8
Compiling 105 files (.erl)
src/jwk/jose_jwk_pem.erl:82: undefined macro 'id-aes256-CBC'
src/jwk/jose_jwk_pem.erl:20: function to_binary/3 undefined
src/jwk/jose_jwk_der.erl:58: undefined macro 'id-aes256-CBC'
src/jwk/jose_jwk_der.erl:18: function to_binary/3 undefined
I am unsure if related to external factors.
using
Erlang/OTP 22 [erts-10.4.4] [source] [64-bit] [smp:12:12] [ds:12:12:10] [async-threads:1] [hipe]
Elixir 1.9.0 (compiled with Erlang/OTP 22)
The text was updated successfully, but these errors were encountered: