-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Resolve: Add option to configure key caching duration (#24) #25
Conversation
Also 1 test in master is failed === RUN TestJWK is it ok? |
@foxcool I think this is a great idea and I'm loving you make it backward compatible. On the other side, I think the TTL should not be too long in order to properly react to a rotation of the keys regarding your comment, there is a test that requires a cert and key. They are generated with this line from the
the CI config calls https://github.com/devopsfaith/krakend-jose/blob/master/.travis.yml#L11-L13 |
I accept a duration value of less than a second. Maybe I need to increase the step to a second? |
I'd change the type of the new property and instead of using a otherwise, the duration will be defined in nanoseconds (https://play.golang.org/p/Hw0QJ7XDgdE) |
Yes, this is what I meant in the previous comment. A nanosecond is too small a step. But the minute, it seems to me, is too large. Maybe a second is better? |
ouch, I did not understand you... 😄 I think it's ok to use seconds instead of minutes. |
thanks for the contribution! |
This pull request was marked as resolved a long time ago and now has been automatically locked as there has not been any recent activity after it. You can still open a new issue and reference this link. |
This PR is just adds cacheDuration parameter. When specified, the default value (15 minutes) is replaced.