Skip to content

Commit

Permalink
for cisagov#496, getting permissions working in v4.1.6 (still broken)
Browse files Browse the repository at this point in the history
  • Loading branch information
mmguero committed Nov 21, 2024
1 parent 6415d7a commit 7a6d7ab
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions config/netbox.env.example
Original file line number Diff line number Diff line change
@@ -1,20 +1,30 @@
ENFORCE_GLOBAL_UNIQUE=False
EXEMPT_VIEW_PERMISSIONS=*

CORS_ORIGIN_ALLOW_ALL=True
# If using the NetBox interface to create API tokens, set this
# (see https://docs.djangoproject.com/en/4.1/ref/settings/#csrf-trusted-origins)
# CSRF_TRUSTED_ORIGINS=https://malcolm.example.org
CSRF_TRUSTED_ORIGINS=http://* https://*

# Remote authentication allows NetBox to automatically create user accounts from NGINX
# https://netboxlabs.com/docs/netbox/en/stable/configuration/remote-authentication
REMOTE_AUTH_ENABLED=True
REMOTE_AUTH_BACKEND=netbox.authentication.RemoteUserBackend
REMOTE_AUTH_HEADER=HTTP_X_REMOTE_AUTH
REMOTE_AUTH_GROUP_HEADER=HTTP_X_REMOTE_AUTH_GROUP
REMOTE_AUTH_USER_EMAIL=HTTP_X_REMOTE_AUTH_EMAIL
REMOTE_AUTH_USER_FIRST_NAME=HTTP_X_REMOTE_AUTH_FIRST_NAME
REMOTE_AUTH_USER_LAST_NAME=HTTP_X_REMOTE_AUTH_LAST_NAME
REMOTE_AUTH_AUTO_CREATE_USER=True
REMOTE_AUTH_AUTO_CREATE_GROUPS=True
REMOTE_AUTH_GROUP_SYNC_ENABLED=False
REMOTE_AUTH_DEFAULT_GROUPS=standard
REMOTE_AUTH_DEFAULT_PERMISSIONS=standard_permission
REMOTE_AUTH_STAFF_GROUPS=administrator
REMOTE_AUTH_STAFF_USERS=
REMOTE_AUTH_SUPERUSER_GROUPS=administrator
REMOTE_AUTH_SUPERUSERS=
ENFORCE_GLOBAL_UNIQUE=False
EXEMPT_VIEW_PERMISSIONS=*

DB_HOST=netbox-postgres
DB_NAME=netbox
[email protected]
Expand Down

0 comments on commit 7a6d7ab

Please sign in to comment.