smolnar82 commented on a change in pull request #418:
URL: https://github.com/apache/knox/pull/418#discussion_r597463606
##########
File path: gateway-release/home/conf/topologies/homepage.xml
##########
@@ -70,6 +75,20 @@
<service>
<role>KNOX-METADATA</role>
</service>
+ <service>
+ <role>KNOXTOKEN</role>
+ <param>
+ <name>knox.token.ttl</name>
+ <value>604800000</value>
+ </param>
+ <param>
+ <name>knox.token.target.url</name>
+ <value>cdp-proxy-token/</value>
+ </param>
Review comment:
nit: The target URL should have been removed
##########
File path:
gateway-service-knoxtoken/src/main/java/org/apache/knox/gateway/service/knoxtoken/TokenResource.java
##########
@@ -91,6 +92,7 @@
static final String RENEW_PATH = "/renew";
static final String REVOKE_PATH = "/revoke";
private static final String TARGET_ENDPOINT_PULIC_CERT_PEM =
"knox.token.target.endpoint.cert.pem";
+ private static final long MILLIS_IN_DAY = 86400000L;
Review comment:
nit: TimeUnit.DAYS.toMillis()
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]