Skip to content

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

Merged
openshift-merge-bot[bot] merged 7 commits into
stolostron:release-2.17from
Ginxo:ACM-44887
Oct 5, 2026
Merged

openshift-merge-bot[bot] merged 7 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: Repository: stolostron/console/.coderabbit.yaml

Review profile: CHILL

Plan: Enterprise

Run ID: 80c5aaf1-25fb-46de-9485-c42b67252b6a

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.

// 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 Resolved
…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
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>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@Ginxo cluster-scoped kinds are not marked.

@Ginxo Ginxo Sep 18, 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.

Good catch, thank you! I was focused on maintaining consistency with the target branch and overlooked that detail.

…ions"

This reverts commit c098fce.

Signed-off-by: Enrique Mingorance Cano <emingora@redhat.com>
…events.ts -> definitions"

This reverts commit 30c56ad.

Signed-off-by: Enrique Mingorance Cano <emingora@redhat.com>
@Ginxo
Ginxo requested a review from KevinFCormier September 18, 2026 05:01
Signed-off-by: Enrique Mingorance Cano <emingora@redhat.com>
@sonarqubecloud

Copy link
Copy Markdown

@KevinFCormier

Copy link
Copy Markdown
Contributor

/lgtm

@openshift-ci

openshift-ci Bot commented Sep 21, 2026

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: Ginxo, KevinFCormier

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:
  • OWNERS [Ginxo,KevinFCormier]

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

@openshift-merge-bot
openshift-merge-bot Bot merged commit be591c5 into stolostron:release-2.17 Oct 5, 2026
12 checks passed
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.

2 participants