How do you share private keys for signing e.g. JWTs inside Docker-Containers?

I’ve written an application in NodeJS which essentially only performs a login:
You send your username/password, and you retrieve an JWT (JSON Web Token).
Those tokens are being signed by a private key. Using HMAC, these tokens can be verif… Continue reading How do you share private keys for signing e.g. JWTs inside Docker-Containers?

Can the data between Express.js middleware be manipulated/tampered in any way?

In the node.js express.js framework there is middleware support. Let’s assume I have two middleware – the first one, which verifies whether the JWT token is legit and not tampered with and the second middleware which doesn’t verify anymore… Continue reading Can the data between Express.js middleware be manipulated/tampered in any way?