Skip to content

ACM-44887: fix non-admin SSE OOM on release-2.17 - #6838

Open
Ginxo wants to merge 4 commits into
stolostron:release-2.17from
Ginxo:ACM-44887
Open

Ginxo wants to merge 4 commits into
stolostron:release-2.17from
Ginxo:ACM-44887

Conversation

@Ginxo

@Ginxo Ginxo commented Sep 14, 2026

Copy link
Copy Markdown
Contributor

console-mce-console* pods crashing / OOMKilled [release-2.17]
https://redhat.atlassian.net/browse/ACM-44887

Summary

  • Backport SSE RBAC hardening and filter-before-inflate from ACM-44885: Fix non-admin SSE OOM under large inventory #6638 to release-2.17 (ACM-39327 / ACM-44887).
  • Extract eventsAccess, eventsCache, and eventsDefinitions with CLUSTER_SCOPED_KINDS; cluster-scoped kinds match the 2.17 watch list (no ClusterExtension).

Test plan

  • npm run test:backend
  • npm run check:backend

Made with Cursor

Ginxo and others added 2 commits September 15, 2026 00:28
Port SelfSubjectRulesReview short-circuit, access-cache hardening,
eventsDefinitions/CLUSTER_SCOPED_KINDS, and filter-before-inflate SSE
from stolostron#6638 so restricted users no longer OOM the console backend.

Signed-off-by: Enrique Mingorance Cano <emingora@redhat.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Cover access cache, SelfSubjectRulesReview short-circuit, cluster-scoped
routing, and filter-before-inflate behavior.

Signed-off-by: Enrique Mingorance Cano <emingora@redhat.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
@coderabbitai

coderabbitai Bot commented Sep 14, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

🗂️ Base branches to auto review (1)
  • main

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Advanced

Run ID: fffd78f4-b851-49b8-8eee-9290192ab610

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Comment @coderabbitai help to get the list of available commands.

@openshift-ci

openshift-ci Bot commented Sep 14, 2026

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: Ginxo

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@sonarqubecloud

Copy link
Copy Markdown

@Ginxo
Ginxo marked this pull request as draft September 15, 2026 06:14
// If a client hasn't finished receiving a broadcast in PURGE_CLIENT_TIMEOUT
// assume the browser has been refreshed or closed
const PURGE_CLIENT_TIMEOUT = 4 * 60 * 60 * 1000
const PURGE_CLIENT_TIMEOUT = 30 * 60 * 1000

@Ginxo Ginxo Sep 16, 2026

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

👍 this has been aligned with >2.17 versions

Comment thread backend/src/routes/eventsDefinitions.ts Outdated
…s -> definitions

Signed-off-by: Enrique Mingorance Cano <emingora@redhat.com>
}>
}

export type KindGetAccess =

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

just formatting changes here


import type { IWatchOptions } from '../resources/watch-options'

export const definitions: IWatchOptions[] = [

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

definitions according to

const definitions: IWatchOptions[] = [

@Ginxo
Ginxo marked this pull request as ready for review September 16, 2026 07:17
@openshift-ci

openshift-ci Bot commented Sep 16, 2026

Copy link
Copy Markdown

@Ginxo: The following test 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/unit-tests-sonarcloud 30c56ad link true /test unit-tests-sonarcloud

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.

Release-2.17 watch definitions omit clusterScoped flags, so
CLUSTER_SCOPED_KINDS is empty and SSRR grants are trusted without
mandatory SSAR confirmation for ManagedCluster and StorageClass.

Signed-off-by: Enrique Mingorance Cano <emingora@redhat.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
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