JWK Secret Environment #42550
-
Hello, I am trying to setup a Quarkus app with Supabase Auth as a backend. Supabase Auth provides a HS256 JWT for authentication as well as a secret key string. Using #25632 and https://quarkus.io/guides/security-jwt, I was able to setup a Now I have a plaintext
but figured I shouldn't save this file into my Github repo publicly since HS256 uses symmetric keys. Attempts to use an environment variable didn't work:
Is there perhaps a way to save my |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 12 replies
-
@jfslin Hi, can you please point to the Base64URL encoded string representing this JWK ? I don't recall right now if it will work for this case, but smallrye-jwt will attempt decode strings and treat them as JWKs as well. The only problem you'd have to use |
Beta Was this translation helpful? Give feedback.
-
@jfslin The fact you had to double encode Right, the last example is what I meant, only make sure it is base64url encoded value, and then you can use env vars to replace |
Beta Was this translation helpful? Give feedback.
-
@jfslin I've added a couple of tests, inlining the raw JWK content and base64url encoding it works, watch smallrye/smallrye-jwt#814 |
Beta Was this translation helpful? Give feedback.
@jfslin I've added a couple of tests, inlining the raw JWK content and base64url encoding it works, watch smallrye/smallrye-jwt#814