Auth0 + NGINX as an API Gateway + k8s

Any recommendations for using Auth0 + NGINX + k8s together please?

We want to run our REST APIs on k8s, with nginx as an API gateway. At the API gateway level we want to handle integration with Auth0 for API authentication.

Is this a use case you see a lot? Any other recommendations for an API gateway would be appreciated also if nginx (free version) + Auth0 isn’t ideal for this use case.


I confess it’s the first time I’m seeing that trio together, but the Auth0 + NGINX combination is more common. Looking at NGINX features ( it seems that the Plus edition would be the one with API Gateway built-in functionalities like (Module ngx_http_auth_jwt_module) which would allow integration with any authorization server issuing JWT bearer tokens (Auth0 in your scenario).

In the free version I believe you would have to build your own JWT validation logic into NGINX; for example, there was this Lua-based script that validated JWT’s, however, the repository is no longer being maintained. In conclusion, it may be possible, but it seems the API Gateway usage scenario is more aligned with the use of NGINX Plus.

Ah ok, thought that might be the case. Thanks for the response.

My options then are probably pay for something or roll my own solution for a very basic setup. The fully-featured solutions all look a tad expensive.

Thanks for the help.

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.