Skip to content

API tokens created in NetBox still require authentication through NGINX reverse proxy #326

Closed Answered by mmguero
LWJ-SARA asked this question in Q&A
Discussion options

You must be logged in to vote

Ah, interesting! This is a good point and is an oversight that we should address. I can explain why it's happening: in Malcolm, all of the external access is reverse proxied through an NGINX server that acts as a reverse proxy and also handles all of the authentication across all of the components. This is so the authentication can happen in one place, rather than having to be controlled individually across the components.

However, this means that even for something like an API call for netbox that is using a token, it's still going through the same authentication path, as in this case NGINX doesn't know the difference between your token-authenticated API call and access to NetBox's user …

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by LWJ-SARA
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
nginx Relating to Malcolm's use of nginx netbox Related to Malcolm's use of NetBox security Related to issues with bearing on the security of Malcolm itself
2 participants