Page MenuHomePhabricator

Block /admin login page in production & staging
Closed, ResolvedPublic

Description

There's no reason to make Django's /admin login page available to users in the Production or Staging environments. Staff are already authenticated, and/or can be added via command line by users with server access. No one should need to log in via /admin directly, so we shouldn't even let users try.

Related Objects

Event Timeline

I have done some research on this and will raise a pull request soon

@NirmalaSainsara You have some feedback in your PR, do you need anything else from us to continue with this?

Hey sorry for the delay I will get back on it before this weekend.

oh, maybe the new merged changes are not deployed yet.

@jsn.sherman suspects this is simply an issue of the nginx config line being at the bottom of the file rather than the top. Testing.

turns out the issue was an oversight in our deployment pipeline:
the change was correctly implemented, but our deployment script doesn't pick up and deploy nginx config changes. They have just been super rare to date.

Confirmed this is now working as expected.