Skip to content
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

Put prometheus metrics behind federation/origin token #176

Merged
merged 3 commits into from
Oct 5, 2023

Conversation

turetske
Copy link
Collaborator

@turetske turetske commented Oct 2, 2023

This addresses issue Issue #6 and puts the accessing of prometheus metrics behind the federation or origin token.

@turetske turetske added the enhancement New feature or request label Oct 2, 2023
@turetske turetske added this to the v7.1.0 milestone Oct 2, 2023
@turetske turetske requested a review from jhiemstrawisc October 2, 2023 20:00
@turetske turetske self-assigned this Oct 2, 2023
web_ui/prometheus.go Outdated Show resolved Hide resolved
web_ui/prometheus.go Outdated Show resolved Hide resolved
web_ui/prometheus_test.go Show resolved Hide resolved
web_ui/prometheus.go Show resolved Hide resolved
web_ui/prometheus.go Show resolved Hide resolved
    -- Added a checkPromToken function in prometheus.go to check the tokens
    -- Added unit tests for checking the metrics
    -- Fixed missing "Bearer " in redirect_test
    -- Tokens are now in WLCG format
    -- Added scope check
    -- Added comment clarifying issuer claim retrieval
    -- Parse federation jwks correctly (as json)
    -- Changed ES512 to ES256
@turetske turetske force-pushed the turetske/prometheus branch from 73b0b66 to 209e3a0 Compare October 5, 2023 17:30
@turetske
Copy link
Collaborator Author

turetske commented Oct 5, 2023

@jhiemstrawisc Addressed the code review comments, if you could review it again.

@jhiemstrawisc jhiemstrawisc requested review from jhiemstrawisc and removed request for jhiemstrawisc October 5, 2023 17:47
Copy link
Member

@jhiemstrawisc jhiemstrawisc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@turetske turetske merged commit bdf5a2e into PelicanPlatform:main Oct 5, 2023
6 checks passed
@turetske turetske linked an issue Oct 5, 2023 that may be closed by this pull request
@turetske turetske deleted the turetske/prometheus branch November 7, 2023 18:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Require federation token for accessing Prometheus metrics
2 participants