🚀 Feature Request: Create free JWT decryption service or give one free service worker #2813
VR-Architect
started this conversation in
Ideas
Replies: 2 comments
-
@VR-Architect thanks for writing this request up. I'm going to transfer to a Discussion to get additional feedback on it from the community. We have discussed this internally a bit, but can't commit to anything currently. |
Beta Was this translation helpful? Give feedback.
0 replies
-
I love the idea, I just want to give my wish to not force it to a kind of token ( JWS aka JWT ). There is different (better?) solutions like Biscuit, Macaroon, PASETO ... |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Describe the solution
In an effort to promote the use of use of JWT for security it would be very appreciated if Cloudflare either:
Why?
In order to promote code reuse, we have separated our decryption service to a service worker. That service worker is called with almost every other public call to our other workers so we can validate the security token. This results in two hits to our purchased worker hit counts for every call to our API instead of one. Of course, we could copy-paste the code snippet into every worker we have, but then we would also have to edit the secret variable for everyone of them too which would be very painful. It would really help if Cloudflare could actually write and own this special service so we all have your best security practices in place. If that is not an option, then allowing us to define one security service with the following rules would be awesome:
I estimate with about 21,000 daily active customers, they will make a minimum of 30 API calls per day. This results in 630k calls per day and 18.9M per month without using a separate service worker. If we use a separate service worker, those values double. Of course, the 30 calls a day is a minimum just to log in and look around. It doesn't account for users staying and using our services for longer.
Here is the code we have started with:
Thank you for the consideration.
Beta Was this translation helpful? Give feedback.
All reactions