From 918952a2a50373b4718ea831bd93a35da123e038 Mon Sep 17 00:00:00 2001 From: Niklas Date: Fri, 10 May 2024 10:19:55 +0200 Subject: [PATCH 1/6] Update docker-compose.yml --- docker-compose.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker-compose.yml b/docker-compose.yml index 958561f..0dcb7c4 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -8,7 +8,7 @@ services: env_file: env/netbox.env user: 'unit:root' healthcheck: - start_period: 60s + start_period: 90s timeout: 3s interval: 15s test: "curl -f http://localhost:8080/login/ || exit 1" From 60e9cfd45880648ee0ec9a6e9ea01b46100216d5 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Thu, 16 May 2024 19:29:50 +0000 Subject: [PATCH 2/6] Update dependency sentry-sdk to v2.2.0 --- requirements-container.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements-container.txt b/requirements-container.txt index f65442d..c006b93 100644 --- a/requirements-container.txt +++ b/requirements-container.txt @@ -2,4 +2,4 @@ django-auth-ldap==4.8.0 django-storages[azure,boto3,dropbox,google,libcloud,sftp]==1.14.3 dulwich==0.22.1 python3-saml==1.16.0 --no-binary lxml -sentry-sdk[django]==2.1.1 +sentry-sdk[django]==2.2.0 From 8c691f13089aef8da74a8e6fbfe4c49c247f7942 Mon Sep 17 00:00:00 2001 From: Tobias Genannt Date: Tue, 21 May 2024 13:04:35 +0200 Subject: [PATCH 3/6] Change LOGIN_REQUIRED default to 'True' --- configuration/configuration.py | 6 +++--- test-configuration/test_config.py | 1 + test.sh | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/configuration/configuration.py b/configuration/configuration.py index 2145a25..78fe58e 100644 --- a/configuration/configuration.py +++ b/configuration/configuration.py @@ -221,9 +221,9 @@ if 'GRAPHQL_ENABLED' in environ: # authenticated to NetBox indefinitely. LOGIN_PERSISTENCE = _environ_get_and_map('LOGIN_PERSISTENCE', 'False', _AS_BOOL) -# Setting this to True will permit only authenticated users to access any part of NetBox. By default, anonymous users -# are permitted to access most data in NetBox (excluding secrets) but not make any changes. -LOGIN_REQUIRED = _environ_get_and_map('LOGIN_REQUIRED', 'False', _AS_BOOL) +# When enabled, only authenticated users are permitted to access any part of NetBox. +# Disabling this will allow unauthenticated users to access most areas of NetBox (but not make any changes). +LOGIN_REQUIRED = _environ_get_and_map('LOGIN_REQUIRED', 'True', _AS_BOOL) # The length of time (in seconds) for which a user will remain logged into the web UI before being prompted to # re-authenticate. (Default: 1209600 [14 days]) diff --git a/test-configuration/test_config.py b/test-configuration/test_config.py index 884defd..09bd5dc 100644 --- a/test-configuration/test_config.py +++ b/test-configuration/test_config.py @@ -4,3 +4,4 @@ LOGGING = { } DEFAULT_PERMISSIONS = {} +LOGIN_REQUIRED = False diff --git a/test.sh b/test.sh index 62ed3cb..f415cd7 100755 --- a/test.sh +++ b/test.sh @@ -84,7 +84,7 @@ test_netbox_web() { --retry 5 \ --retry-delay 0 \ --retry-max-time 40 \ - http://127.0.0.1:8000/ + http://127.0.0.1:8000/login/ ) if [ "$RESP_CODE" == "200" ]; then echo "Webservice running" From 730743139ecb71d94fe7f528e4a4bf9dd7c2a220 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Tue, 21 May 2024 12:56:09 +0000 Subject: [PATCH 4/6] Update dependency sentry-sdk to v2.2.1 --- requirements-container.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements-container.txt b/requirements-container.txt index c006b93..bd1f9b9 100644 --- a/requirements-container.txt +++ b/requirements-container.txt @@ -2,4 +2,4 @@ django-auth-ldap==4.8.0 django-storages[azure,boto3,dropbox,google,libcloud,sftp]==1.14.3 dulwich==0.22.1 python3-saml==1.16.0 --no-binary lxml -sentry-sdk[django]==2.2.0 +sentry-sdk[django]==2.2.1 From daa8b40c3490beb9f3a056a619678b17410fbb43 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Thu, 23 May 2024 11:23:15 +0000 Subject: [PATCH 5/6] Update dependency sentry-sdk to v2.3.0 --- requirements-container.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements-container.txt b/requirements-container.txt index bd1f9b9..26412a0 100644 --- a/requirements-container.txt +++ b/requirements-container.txt @@ -2,4 +2,4 @@ django-auth-ldap==4.8.0 django-storages[azure,boto3,dropbox,google,libcloud,sftp]==1.14.3 dulwich==0.22.1 python3-saml==1.16.0 --no-binary lxml -sentry-sdk[django]==2.2.1 +sentry-sdk[django]==2.3.0 From 75fa7e7e99be13a9fed6592786fd4ac83dee6ff2 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Thu, 23 May 2024 14:08:00 +0000 Subject: [PATCH 6/6] Update dependency sentry-sdk to v2.3.1 --- requirements-container.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements-container.txt b/requirements-container.txt index 26412a0..36904fc 100644 --- a/requirements-container.txt +++ b/requirements-container.txt @@ -2,4 +2,4 @@ django-auth-ldap==4.8.0 django-storages[azure,boto3,dropbox,google,libcloud,sftp]==1.14.3 dulwich==0.22.1 python3-saml==1.16.0 --no-binary lxml -sentry-sdk[django]==2.3.0 +sentry-sdk[django]==2.3.1