lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nkn...@apache.org
Subject [42/50] [abbrv] lucene-solr git commit: SOLR-8470: Make TTL of PKIAuthenticationPlugin's tokens configurable through a system property (pkiauth.ttl)
Date Mon, 08 Feb 2016 22:36:17 GMT
SOLR-8470: Make TTL of PKIAuthenticationPlugin's tokens configurable through a system property
(pkiauth.ttl)


git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/lucene_solr_5_4@1724197 13f79535-47bb-0310-9956-ffa450edef68


Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/ca278cc8
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/ca278cc8
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/ca278cc8

Branch: refs/heads/branch_5_4
Commit: ca278cc8d55c392723c47bd7a396f591a0c6e679
Parents: bc03b0e
Author: Adrien Grand <jpountz@apache.org>
Authored: Tue Jan 12 10:26:27 2016 +0000
Committer: Adrien Grand <jpountz@apache.org>
Committed: Tue Jan 12 10:26:27 2016 +0000

----------------------------------------------------------------------
 solr/CHANGES.txt                                               | 6 ++++++
 .../java/org/apache/solr/security/PKIAuthenticationPlugin.java | 2 +-
 2 files changed, 7 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/ca278cc8/solr/CHANGES.txt
----------------------------------------------------------------------
diff --git a/solr/CHANGES.txt b/solr/CHANGES.txt
index 20fd315..6fe2f05 100644
--- a/solr/CHANGES.txt
+++ b/solr/CHANGES.txt
@@ -489,6 +489,12 @@ Bug Fixes
 * SOLR-7462: AIOOBE in RecordingJSONParser (Scott Dawson, noble)
 
 
+New Features
+----------------------
+
+* SOLR-8470: Make TTL of PKIAuthenticationPlugin's tokens configurable through a system property
+  (pkiauth.ttl) (noble)
+
 ==================  5.3.1 ==================
 
 Bug Fixes

http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/ca278cc8/solr/core/src/java/org/apache/solr/security/PKIAuthenticationPlugin.java
----------------------------------------------------------------------
diff --git a/solr/core/src/java/org/apache/solr/security/PKIAuthenticationPlugin.java b/solr/core/src/java/org/apache/solr/security/PKIAuthenticationPlugin.java
index 7570808..c811d6a 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
Htt
   private 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;


Mime
View raw message