Comments (9)
Hi! Just let you know that I'm making an attempt to package jwt-cli
for AlpineLinux at https://gitlab.alpinelinux.org/alpine/aports/-/merge_requests/46338.
It already works on my machine after the build. If the MR gets merged, you can install the package directly from Alpine's edge
repo.
from jwt-cli.
I'm not sure that this is an issue with jwt-cli
specifically? This seems like an issue with the docker setup or alpine linux where it can't find the executable. jwt-cli
has no concept, as far as I know, about its environment and definitely doesn't call itself during execution. Could this be a permissions issue? chmod +x /usr/local/bin/jwt
?
from jwt-cli.
still same issue, i don't know why this question is closed without resolution.
Could you please share that, if you missed to paste.
The environment I provided also easy to replicate as just single docker run command shared in my first comment
from jwt-cli.
Sorry, I assumed this wasn't a problem with the jwt
binary.
Upon further inspection, alpine linux seems to require a static binary (not dynamically linked). This would require rust to be built with the musl
target, but unfortunately ring
, which is a transitive dependency of jsonwebtoken
doesn't support static linking: briansmith/ring#713
Until ring
supports static linking via the musl
target, jwt
won't be able to run on alpine linux. Sorry! I'll leave this issue open for now though
from jwt-cli.
Hi, I think it is a good idea to document your findings. I now also spent a few hours facing the same issue on a busybox container with the most recent version.
Basically using the same method as OP. It is also not possible to pass it as argument to sh
:
$ sh jwt
jwt: line 1: syntax error: unexpected "("
edit: a workaround seems to be to just use the rust container image.
from jwt-cli.
Added a note with 10cea20. Thanks all!
from jwt-cli.
Looks great, thanks @folliehiyuki!
from jwt-cli.
FYI - currently static executable builds without issues with x86_64-unknown-linux-musl target and rustc 1.77.0-nightly (only had to update proc-macro2 dependency to avoid the unknown feature proc_macro_span_shrink
error).
from jwt-cli.
Sorry, I assumed this wasn't a problem with the
jwt
binary.Upon further inspection, alpine linux seems to require a static binary (not dynamically linked). This would require rust to be built with the
musl
target, but unfortunatelyring
, which is a transitive dependency ofjsonwebtoken
doesn't support static linking: briansmith/ring#713Until
ring
supports static linking via themusl
target,jwt
won't be able to run on alpine linux. Sorry! I'll leave this issue open for now though
The linked ring
issue seems resolved now.
Can this issue be revisited to support Alpine?
from jwt-cli.
Related Issues (20)
- GoFish has been abandoned and documentation about it in the README should be removed HOT 2
- Feature Request: Support plaintext payload HOT 1
- Tests not in `main_test.rs' don't run HOT 1
- Unsecured JWT HOT 4
- `--secret` flag treats all values as file paths HOT 4
- Feature Request: encode allow none `typ` HOT 2
- linux binary for jwt 5.0.3 does not run on CentOS 7 HOT 8
- Add support for TTL when generating JWTs HOT 3
- Improve documentation for using elliptic curve keys HOT 1
- Allow the `typ` header field to have values other than `JWT` HOT 1
- encode always errors with "Invalid JSON provided!" on 6.0.0 HOT 2
- Bug: Error running on Fedora Linux in Docker on Apple ARM silicon HOT 1
- missing ES512 HOT 1
- Bump jsonwebtoken to v8.3.0 to v9.x.x HOT 2
- bug: not able to use in macOS for Apple Silicon chip HOT 7
- Brew formula does not work with linuxbrew HOT 2
- Shell completion
- App crash on `jwt encode` command with `@` in secret HOT 1
- Error: version `GLIBC_2.33' not found HOT 1
- Add option to ignore alg type HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jwt-cli.