From 45ac1cfd54e95b42daa49820c2d5a93f55c00f81 Mon Sep 17 00:00:00 2001 From: jeremystretch Date: Wed, 8 Dec 2021 15:47:41 -0500 Subject: [PATCH] Fixes #8019: Exclude metrics endpoint when LOGIN_REQUIRED is true --- docs/release-notes/version-3.1.md | 1 + netbox/netbox/settings.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/release-notes/version-3.1.md b/docs/release-notes/version-3.1.md index c7ac990c5..1fbd9de04 100644 --- a/docs/release-notes/version-3.1.md +++ b/docs/release-notes/version-3.1.md @@ -10,6 +10,7 @@ * [#8003](https://github.com/netbox-community/netbox/issues/8003) - Fix cable tracing across bridged interfaces with no cable * [#8005](https://github.com/netbox-community/netbox/issues/8005) - Fix contact email display * [#8010](https://github.com/netbox-community/netbox/issues/8010) - Allow filtering devices by multiple serial numbers +* [#8019](https://github.com/netbox-community/netbox/issues/8019) - Exclude metrics endpoint when `LOGIN_REQUIRED` is true --- diff --git a/netbox/netbox/settings.py b/netbox/netbox/settings.py index 27860e967..40c31b74d 100644 --- a/netbox/netbox/settings.py +++ b/netbox/netbox/settings.py @@ -424,7 +424,7 @@ EXEMPT_PATHS = ( f'/{BASE_PATH}graphql/', f'/{BASE_PATH}login/', f'/{BASE_PATH}oauth/', - f'/{BASE_PATH}metrics/', + f'/{BASE_PATH}metrics', )