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

fix: metrics endpoint must be secured behind authN #1864

Merged
merged 1 commit into from
Oct 2, 2023

Conversation

adodon2go
Copy link
Collaborator

What type of PR is this?
bug

Which issue does this PR fix:
#1859

What does this PR do / Why do we need it:

If an issue # is not available please add repro steps and logs showing the issue:

Testing done on this change:

Automation added to e2e:

Will this break upgrades or downgrades?

Does this PR introduce any user-facing change?:

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@codecov
Copy link

codecov bot commented Sep 27, 2023

Codecov Report

Merging #1864 (c32bbfc) into main (0eb9844) will increase coverage by 0.01%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main    #1864      +/-   ##
==========================================
+ Coverage   92.02%   92.04%   +0.01%     
==========================================
  Files         152      152              
  Lines       26454    26455       +1     
==========================================
+ Hits        24344    24350       +6     
+ Misses       1559     1555       -4     
+ Partials      551      550       -1     
Files Coverage Δ
pkg/api/errors/errors.go 100.00% <100.00%> (ø)
pkg/extensions/extension_metrics_disabled.go 100.00% <100.00%> (ø)

... and 1 file with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@adodon2go adodon2go force-pushed the secure-metrics-endpoint branch 2 times, most recently from a2be177 to 6805636 Compare September 29, 2023 09:09
@adodon2go adodon2go marked this pull request as ready for review September 29, 2023 09:16
Copy link
Collaborator

Choose a reason for hiding this comment

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

lgtm

pkg/api/errors/errors.go Outdated Show resolved Hide resolved
test/blackbox/metrics.bats Show resolved Hide resolved
@adodon2go adodon2go merged commit 2fd7bfc into project-zot:main Oct 2, 2023
33 checks passed
@adodon2go adodon2go deleted the secure-metrics-endpoint branch October 2, 2023 13:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants