The JWT verification request sent by the Spool API to Auth0 isn't successful. It appears that the request is being rerouted from opens.auth0.com to the spool API server. The request fails to receive a response and the api registers a 404 not found at the endpoint that was supposed to be queried on the auth0 server.
Reproducibility
This bug only occurs in the production version of the code running on the production server in the docker container. This makes it difficult (impossible?) to reproduce without using the production server.
Relevant Areas of Code
The request is sent by the getKeys() function in the auth0/node-jwks-rsa library.
Problem was caused by mixing iptables config on host and in container. All iptables configurations have been moved to docker files to prevent conflict.
The JWT verification request sent by the Spool API to Auth0 isn't successful. It appears that the request is being rerouted from opens.auth0.com to the spool API server. The request fails to receive a response and the api registers a 404 not found at the endpoint that was supposed to be queried on the auth0 server.
Reproducibility This bug only occurs in the production version of the code running on the production server in the docker container. This makes it difficult (impossible?) to reproduce without using the production server.
Relevant Areas of Code
The request is sent by the getKeys() function in the auth0/node-jwks-rsa library.
This is the where the request is being sent in spool (api/lib/middleware/secured.js):