google-nomulus/java/google/registry/proxy
jianglai fc75e08061 Change access token validity and remove logging
The access token renewal on GCE is not what we expected. The metadata server always returns the same token as long as it is valid for 1699 to 3599 seconds and rolls over to the next token on its own schedule. Calling refresh on the GoogleCredential has no effect. We were caching the token for 30 min (1800 seconds), so in a rare case where we "refreshed" the token while its expiry is between 1699 and 1800 seconds, we will cache the token for longer than its validity. [] shorted the caching period to 10 min and added logging, which proved to be working. We no longer need the log any more now that the root cause has been identified. Also changed the cache period to 15 min (900 seconds) which should still be good.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=208888170
2018-08-20 14:14:21 -04:00
..
config Change access token validity and remove logging 2018-08-20 14:14:21 -04:00
handler Change access token validity and remove logging 2018-08-20 14:14:21 -04:00
kubernetes Set up GCLB to router web WHOIS traffic 2018-08-10 13:44:25 -04:00
metric Migrating to fluent logging (green) 2018-05-30 12:18:54 -04:00
quota Migrating to fluent logging (green) 2018-05-30 12:18:54 -04:00
resources Open source GCP proxy 2017-11-21 19:19:03 -05:00
terraform Set up GCLB to router web WHOIS traffic 2018-08-10 13:44:25 -04:00
BUILD Update Netty version 2018-08-10 13:46:48 -04:00
CertificateModule.java Cache server certificates for up to 30 min 2018-08-10 13:46:48 -04:00
EppProtocolModule.java Cache server certificates for up to 30 min 2018-08-10 13:46:48 -04:00
GcpJsonFormatter.java Make GCP proxy log in a Stackdriver logging compliant format 2018-03-06 19:23:23 -05:00
HealthCheckProtocolModule.java Add web WHOIS redirect support 2018-08-10 13:46:48 -04:00
HttpsRelayProtocolModule.java Use self signed certificate when running the proxy locally 2018-04-10 16:36:56 -04:00
MetricsModule.java Migrating to fluent logging (green) 2018-05-30 12:18:54 -04:00
Protocol.java Add web WHOIS redirect support 2018-08-10 13:46:48 -04:00
ProxyConfig.java Change access token validity and remove logging 2018-08-20 14:14:21 -04:00
ProxyModule.java Change access token validity and remove logging 2018-08-20 14:14:21 -04:00
ProxyServer.java Remove some unnecessary loggings from the proxy 2018-08-20 14:12:44 -04:00
WebWhoisProtocolsModule.java Cache server certificates for up to 30 min 2018-08-10 13:46:48 -04:00
WhoisProtocolModule.java Clean up some code quality issues in GCP proxy 2018-03-19 18:44:12 -04:00