Apache Lucene open-source search software
SOLR-8470: Make TTL of PKIAuthenticationPlugin's tokens configurable through a system property (pkiauth.ttl)
Noble Pauld66bc6b4bed3
diff --git a/solr/CHANGES.txt b/solr/CHANGES.txtindex 72144349479..80dc5292016 100644--- a/solr/CHANGES.txt+++ b/solr/CHANGES.txt@@ -268,6 +268,9 @@ New Features* SOLR-8220: Read field from DocValues for non stored fields.(Keith Laban, yonik, Erick Erickson, Ishan Chattopadhyaya, shalin)+* SOLR-8470: Make TTL of PKIAuthenticationPlugin's tokens configurable through a system property+ (pkiauth.ttl) (noble)+Bug Fixes----------------------diff --git a/solr/core/src/java/org/apache/solr/security/PKIAuthenticationPlugin.java b/solr/core/src/java/org/apache/solr/security/PKIAuthenticationPlugin.javaindex 75708085b6a..c811d6a7d23 100644--- a/solr/core/src/java/org/apache/solr/security/PKIAuthenticationPlugin.java+++ b/solr/core/src/java/org/apache/solr/security/PKIAuthenticationPlugin.java@@ -65,7 +65,7 @@ public class PKIAuthenticationPlugin extends AuthenticationPlugin implements Httprivate final Map<String, PublicKey> keyCache = new ConcurrentHashMap<>();private final CryptoKeys.RSAKeyPair keyPair = new CryptoKeys.RSAKeyPair();private final CoreContainer cores;- private final int MAX_VALIDITY = 5000;+ private final int MAX_VALIDITY = Integer.parseInt(System.getProperty("pkiauth.ttl", "5000"));private final String myNodeName;private boolean interceptorRegistered = false;