-
Notifications
You must be signed in to change notification settings - Fork 22
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
Make issuer key cache length configurable #86
Comments
We are thinking of a configuration file, does that work for you? |
Hrm, I was thinking that this would be something that we could specify in the HTCondor configuration and then HTCondor would pass along its cache lifetime preference when making calls to the SciTokens library. @JaimeFrey and @timtheisen may have some opinions on whether or not a SciTokens library config file would be workable for us. |
I don't foresee any issues on the HTCondor side for a SciTokens configuration file. I would presume there'd be a way to specify what filename to use via the API. It'd be easy for us to have that be configured from the HTCondor config file. |
@djw8605 - should we really have a configuration file here? Or should we expose a configuration API that the application above (for @JaimeFrey, this would be HTCondor) can invoke and populate with their config file? What's the format and location for the Python library configuration file? |
Having recently been thinking about cache lifetimes, could this be turned around, and have key cache lifetime driven by the issuer? Use the Cache-Control max-age on the |
At one time, we discussed the minimum of either the cache-control or a configured min lifetime. I wonder if that still makes sense. |
In WLCG-AuthZ-WG/common-jwt-profile#17 we discussed updating the WLCG profile to respect the Cache-Control header, but in the end we just updated the maximum from 1 day to 4 days. Repeating a few observations I made in that WLCG pull request:
|
There's a TODO comment for looking at the cache-control header: scitokens-cpp/src/scitokens_internal.cpp Line 731 in 4f82163
For comparison, the python library already looks at the cache-control header: |
We'd like to be able to specify the length of time that issuer keys are cached (currently 4 days)
The text was updated successfully, but these errors were encountered: