You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by no...@apache.org on 2016/01/04 10:45:08 UTC

svn commit: r1722815 - in /lucene/dev/branches/lucene_solr_5_3: ./ solr/ solr/CHANGES.txt solr/core/ solr/core/src/java/org/apache/solr/security/PKIAuthenticationPlugin.java

Author: noble
Date: Mon Jan  4 09:45:08 2016
New Revision: 1722815

URL: http://svn.apache.org/viewvc?rev=1722815&view=rev
Log:
SOLR-8470: Make TTL of PKIAuthenticationPlugin's tokens configurable through a system property (pkiauth.ttl)

Modified:
    lucene/dev/branches/lucene_solr_5_3/   (props changed)
    lucene/dev/branches/lucene_solr_5_3/solr/   (props changed)
    lucene/dev/branches/lucene_solr_5_3/solr/CHANGES.txt   (contents, props changed)
    lucene/dev/branches/lucene_solr_5_3/solr/core/   (props changed)
    lucene/dev/branches/lucene_solr_5_3/solr/core/src/java/org/apache/solr/security/PKIAuthenticationPlugin.java

Modified: lucene/dev/branches/lucene_solr_5_3/solr/CHANGES.txt
URL: http://svn.apache.org/viewvc/lucene/dev/branches/lucene_solr_5_3/solr/CHANGES.txt?rev=1722815&r1=1722814&r2=1722815&view=diff
==============================================================================
--- lucene/dev/branches/lucene_solr_5_3/solr/CHANGES.txt (original)
+++ lucene/dev/branches/lucene_solr_5_3/solr/CHANGES.txt Mon Jan  4 09:45:08 2016
@@ -37,6 +37,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

Modified: lucene/dev/branches/lucene_solr_5_3/solr/core/src/java/org/apache/solr/security/PKIAuthenticationPlugin.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/lucene_solr_5_3/solr/core/src/java/org/apache/solr/security/PKIAuthenticationPlugin.java?rev=1722815&r1=1722814&r2=1722815&view=diff
==============================================================================
--- lucene/dev/branches/lucene_solr_5_3/solr/core/src/java/org/apache/solr/security/PKIAuthenticationPlugin.java (original)
+++ lucene/dev/branches/lucene_solr_5_3/solr/core/src/java/org/apache/solr/security/PKIAuthenticationPlugin.java Mon Jan  4 09:45:08 2016
@@ -63,7 +63,7 @@ public class PKIAuthenticationPlugin ext
   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;