-
Notifications
You must be signed in to change notification settings - Fork 27
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
Revisit checkAPIToken
and similar functions
#405
Comments
I agree that I think it's a bit unclear to me at the start why we would need to check all three places ( Regarding the other questions: 2&3 are in tight couple and I'm not sure how I should proceed in solving both. For 2, Yes, we shouldn't accept I suggest that we abort using a single place ( For 3, I think at the end of the day there should be two Prometheus scopes exist, one should be something like
If we do want to merge federation/director into a single issuer, we need to somehow add director's public key to federation's |
Related: #159 |
Based on the discussion with @bbockelm, this issue can be detailed as follows: Keep The function will call corresponding The scopes for Prometheus will be renamed to We keep checking |
(I think this one is important to get done before 7.3.0 is out!)
There's a few issues in
checkAPIToken
and friends I spotted when working on #404:checkAnyAuthorization
; making it configurable would be providing a bitmask for the different sources of authorization as an input variable.pelican.directorScrape
,pelican.promMetric
, andprometheus.read
) withinpromMetricAuthHandler
; I'm pretty sure we shouldn't be acceptingpelican.directorScrape
from the origin's issuer.pelican.directorScrape
andprometheus.read
: it's about the permission being granted, not who is doing the action.iss
claim to be the federation URL. Is there a strong reason why we'd need to separate them?/metrics
endpoint repeatedly with a fake token). Instead, we should follow what's done in the director and use thejwk
library'sCache
object to maintain the key.The text was updated successfully, but these errors were encountered: