News for hackers. Stuff that matters.
Re:Building a Stateless API Proxy by siscia on Thursday May 30, 2019 @02:53AM (#20048977)
Is there a reason why they don't encrypt both the token and the permissions?

This would remove the needs of a signature altogether.

Re:Building a Stateless API Proxy by theacodes on Thursday May 30, 2019 @02:55AM (#20048983)
Because JWT is well specified and supported and it's useful in our case for proxy users to be able to inspect the token.
Re:Building a Stateless API Proxy by yardstick on Thursday May 30, 2019 @07:00AM (#20049963)
You still need an integrity check or signature on the encrypted data, otherwise it’s potentially possible for someone to tamper with the ciphertext to change specific parts, such as the permissions.

If you are encrypting using an AEAD cipher like AES-GCM or ChaCha20-Poly1305 then it is already built in. But AES-CBC and others need an explicit verification on top.

Re:Building a Stateless API Proxy by nkrisc on Thursday May 30, 2019 @08:57AM (#20050644)
Ok I'm a bit of a cryptography noob, but are you saying it's possible to alter the encrypted token such that when decrypted by the private key the permissions are changed, in this example, but the real GitHub token is not?

Edit: nevermind, I think I've just misunderstood the process outlined in the article. I confused the tokens.