Skip to content

ROX-37581: issue Sensor-bound metrics tokens from permission set - #23450

Draft
parametalol wants to merge 1 commit into
michael/ROX-37581-console-proxy-foundationfrom
michael/ROX-37581-sensor-metrics-token
Draft

parametalol wants to merge 1 commit into
michael/ROX-37581-console-proxy-foundationfrom
michael/ROX-37581-sensor-metrics-token

Conversation

@parametalol

@parametalol parametalol commented Oct 15, 2026 •

Copy link
Copy Markdown
Contributor

Description

Issue Sensor-proxied metrics tokens using the same configurable Prometheus metrics permission set as the Central Prometheus role. Scope tokens to the authenticated Sensor cluster and reject caller-supplied permissions or scopes. No separate secured-cluster metrics role is needed; changes to configured resources apply to newly issued tokens.

Depends on #23470. This replaces closed PR #23443, which GitHub could not reopen.

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

  • go test ./central/auth/internaltokens/service ./central/auth/openshift ./sensor/common/centralproxy -count=1
  • No benchmarks applicable.

@openshift-ci

openshift-ci Bot commented Oct 15, 2026

Copy link
Copy Markdown

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@github-actions

github-actions Bot commented Oct 15, 2026 •

Copy link
Copy Markdown
Contributor

🚀 Build Images Ready

Images are ready for commit 80e6114. To use with deploy scripts:

export MAIN_IMAGE_TAG=5.1.x-302-g80e6114786

@codecov

codecov Bot commented Oct 15, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 96.29630% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 51.97%. Comparing base (3bcb2fd) to head (80e6114).

Files with missing lines Patch % Lines
central/auth/openshift/metrics_auth.go 0.00% 1 Missing ⚠️
Additional details and impacted files
@@                             Coverage Diff                             @@
##           michael/ROX-37581-console-proxy-foundation   #23450   +/-   ##
===========================================================================
  Coverage                                       51.97%   51.97%           
===========================================================================
  Files                                            2915     2915           
  Lines                                          183777   183793   +16     
===========================================================================
+ Hits                                            95517    95533   +16     
  Misses                                          79889    79889           
  Partials                                         8371     8371           
Flag Coverage Δ
go-unit-tests 51.97% <96.29%> (+<0.01%) ⬆️

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

☔ View full report in Codecov by Harness.
📢 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-37581-sensor-metrics-token branch from 58d7211 to a9bbaa8 Compare October 16, 2026 09:46
@parametalol
parametalol force-pushed the michael/ROX-37581-sensor-metrics-token branch from a9bbaa8 to 80a6dfe Compare October 16, 2026 13:42
@parametalol
parametalol removed this pull request from stack #23451 October 16, 2026 13:43
@parametalol
parametalol changed the base branch from michael/ROX-37581-secured-cluster-metrics-role to michael/ROX-37581-console-proxy-foundation October 16, 2026 13:43
@parametalol
parametalol added this pull request to stack #23471 October 16, 2026 13:43
@parametalol
parametalol force-pushed the michael/ROX-37581-sensor-metrics-token branch from 80a6dfe to 39e2e57 Compare October 16, 2026 14:41
@parametalol parametalol changed the title ROX-37581: issue Sensor-bound metrics tokens from managed role ROX-37581: issue Sensor-bound metrics tokens from permission set Oct 16, 2026
@parametalol
parametalol force-pushed the michael/ROX-37581-sensor-metrics-token branch from 39e2e57 to c7b12c4 Compare October 16, 2026 15:45
Use the managed Prometheus permission set for Sensor-bound metrics tokens and restrict each token to the authenticated cluster.

AI-assisted: code partially generated with AI.
@parametalol
parametalol force-pushed the michael/ROX-37581-sensor-metrics-token branch from c7b12c4 to 80e6114 Compare October 16, 2026 16:22

This branch has not been deployed

No deployments
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.

1 participant