[java-identity-provider] branch main updated: Add a property for metrics flow access control for consistency.

Codeberg noreply at shibboleth.net
Mon Nov 23 14:41:10 UTC 2026


This is an automated email from the git hooks/post-receive script.

codeberg pushed a commit to branch main
in repository java-identity-provider.

View the commit online:
https://codeberg.org/Shibboleth/java-identity-provider/commit/510ae933e86ef9beb05f145c62533e4edd934adb

The following commit(s) were added to refs/heads/main by this push:
     new 510ae933e Add a property for metrics flow access control for consistency.
510ae933e is described below

commit 510ae933e86ef9beb05f145c62533e4edd934adb
Author: Scott Cantor <scott at restingparrotsoftware.com>
AuthorDate: Mon Nov 23 09:08:39 2026 -0500

    Add a property for metrics flow access control for consistency.
---
 .../resources/net/shibboleth/idp/module/conf/admin/admin.properties    | 1 +
 .../main/resources/net/shibboleth/idp/module/conf/admin/metrics.xml    | 3 ++-
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/idp-conf-impl/src/main/resources/net/shibboleth/idp/module/conf/admin/admin.properties b/idp-conf-impl/src/main/resources/net/shibboleth/idp/module/conf/admin/admin.properties
index 8713a8178..92fe09770 100644
--- a/idp-conf-impl/src/main/resources/net/shibboleth/idp/module/conf/admin/admin.properties
+++ b/idp-conf-impl/src/main/resources/net/shibboleth/idp/module/conf/admin/admin.properties
@@ -41,6 +41,7 @@
 #idp.mdquery.postAuthenticationFlows =
 
 #idp.metrics.logging = Metrics
+#idp.metrics.accessPolicy = AccessByIPAddress
 #idp.metrics.authenticated = false
 #idp.metrics.nonBrowserSupported = false
 #idp.metrics.defaultAuthenticationMethods =
diff --git a/idp-conf-impl/src/main/resources/net/shibboleth/idp/module/conf/admin/metrics.xml b/idp-conf-impl/src/main/resources/net/shibboleth/idp/module/conf/admin/metrics.xml
index 1fc7a7ea4..e5080761d 100644
--- a/idp-conf-impl/src/main/resources/net/shibboleth/idp/module/conf/admin/metrics.xml
+++ b/idp-conf-impl/src/main/resources/net/shibboleth/idp/module/conf/admin/metrics.xml
@@ -78,7 +78,8 @@
     -->
     
     <!-- If you don't specify an alternate access policy, this named policy will be enforced. -->
-    <bean id="shibboleth.metrics.DefaultAccessPolicy" class="java.lang.String" c:_0="AccessByIPAddress" />
+    <bean id="shibboleth.metrics.DefaultAccessPolicy" class="java.lang.String"
+        c:_0="%{idp.metrics.accessPolicy:AccessByIPAddress}" />
     
     <!--
     To override the default access policy, map a metric name or

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the commits mailing list