Skip to content

ROX-28151: limit the number of registries#16773

Merged
parametalol merged 2 commits intomasterfrom
michael/ROX-28151-registries-limit
Sep 26, 2025
Merged

ROX-28151: limit the number of registries#16773
parametalol merged 2 commits intomasterfrom
michael/ROX-28151-registries-limit

Conversation

@parametalol
Copy link
Copy Markdown
Contributor

@parametalol parametalol commented Sep 11, 2025

Description

In case of an abuse from users, central may create too many in-memory Prometheus registries — one per user identity. The scope of this PR is to set a maximum number of such registries, and reject new requests to the <API>/metrics endpoint for new identities.

User-facing documentation

Testing and quality

  • the change is production ready: the change is GA, or otherwise the functionality is gated by a feature flag
  • CI results are inspected

Automated testing

  • added unit tests
  • added e2e tests
  • added regression tests
  • added compatibility tests
  • modified existing tests

How I validated my change

CI

Current dependencies on/for this PR:

@parametalol parametalol requested review from a team as code owners September 11, 2025 14:15
@parametalol parametalol changed the title michael/ROX-28151-registries-limit ROX-28151: limit the number of registries Sep 11, 2025
@parametalol parametalol force-pushed the michael/ROX-28151-registry-cleanup branch from a88508c to d9d376a Compare September 11, 2025 14:18
@parametalol parametalol force-pushed the michael/ROX-28151-registries-limit branch from b80149c to f7cf578 Compare September 11, 2025 14:25
@rhacs-bot
Copy link
Copy Markdown
Contributor

rhacs-bot commented Sep 11, 2025

Images are ready for the commit at b5f3477.

To use with deploy scripts, first export MAIN_IMAGE_TAG=4.9.x-909-gb5f34771e8.

@codecov
Copy link
Copy Markdown

codecov bot commented Sep 11, 2025

Codecov Report

❌ Patch coverage is 46.66667% with 8 lines in your changes missing coverage. Please review.
✅ Project coverage is 48.81%. Comparing base (5b3700d) to head (b5f3477).
⚠️ Report is 2 commits behind head on master.

Files with missing lines Patch % Lines
central/metrics/custom/runner.go 20.00% 3 Missing and 1 partial ⚠️
central/metrics/custom/tracker/tracker_base.go 20.00% 3 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master   #16773      +/-   ##
==========================================
- Coverage   48.81%   48.81%   -0.01%     
==========================================
  Files        2706     2706              
  Lines      202028   202038      +10     
==========================================
+ Hits        98616    98618       +2     
- Misses      95651    95657       +6     
- Partials     7761     7763       +2     
Flag Coverage Δ
go-unit-tests 48.81% <46.66%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@parametalol parametalol force-pushed the michael/ROX-28151-registry-cleanup branch from f4ae8f9 to dc7da70 Compare September 15, 2025 15:27
@parametalol parametalol force-pushed the michael/ROX-28151-registries-limit branch from f7cf578 to b04e6fa Compare September 15, 2025 15:30
@parametalol parametalol force-pushed the michael/ROX-28151-registry-cleanup branch from dc7da70 to 3511616 Compare September 22, 2025 16:00
@parametalol parametalol force-pushed the michael/ROX-28151-registries-limit branch from b04e6fa to 2170e00 Compare September 22, 2025 16:07
@parametalol parametalol force-pushed the michael/ROX-28151-registry-cleanup branch from 3511616 to 57c7d2d Compare September 24, 2025 20:43
@parametalol parametalol force-pushed the michael/ROX-28151-registries-limit branch 2 times, most recently from 376bd5c to d57be59 Compare September 24, 2025 21:09
Base automatically changed from michael/ROX-28151-registry-cleanup to master September 26, 2025 16:23
@parametalol parametalol force-pushed the michael/ROX-28151-registries-limit branch from d57be59 to b5f3477 Compare September 26, 2025 18:35
@parametalol parametalol enabled auto-merge (squash) September 26, 2025 18:35
@openshift-ci
Copy link
Copy Markdown

openshift-ci bot commented Sep 26, 2025

@parametalol: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/ocp-4-19-nongroovy-e2e-tests d57be59 link false /test ocp-4-19-nongroovy-e2e-tests
ci/prow/ocp-4-18-nongroovy-e2e-tests d57be59 link false /test ocp-4-18-nongroovy-e2e-tests
ci/prow/gke-qa-e2e-tests b5f3477 link false /test gke-qa-e2e-tests

Full PR test history. Your PR dashboard.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here.

@parametalol parametalol merged commit 50453fe into master Sep 26, 2025
86 of 90 checks passed
@parametalol parametalol deleted the michael/ROX-28151-registries-limit branch September 26, 2025 20:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants