Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Comments

Close side panel

ROX-30034,ROX-29995,ROX-29996: New admission controller options: fail…#16149

Merged
clickboo merged 1 commit intomasterstackrox/stackrox:masterfrom
boo-roxctl-adm-ctrl-new-optionsstackrox/stackrox:boo-roxctl-adm-ctrl-new-optionsCopy head branch name to clipboard
Aug 1, 2025
Merged

ROX-30034,ROX-29995,ROX-29996: New admission controller options: fail…#16149
clickboo merged 1 commit intomasterstackrox/stackrox:masterfrom
boo-roxctl-adm-ctrl-new-optionsstackrox/stackrox:boo-roxctl-adm-ctrl-new-optionsCopy head branch name to clipboard

Conversation

@clickboo
Copy link
Contributor

@clickboo clickboo commented Jul 24, 2025

…ure policy and enforcement opt out.

Description

  1. Two new command line flags to roxctl sensor generate to configure failure policy and opt out of enforcement.
  2. Defaults to fail open and enforcement turned on. Ensures defaults are adhered to.
  3. Corresponding helm changes - when a cluster is created in the datastore from the helm config - addition of support for new field.
  4. Addition of necessary proto variables to the Static configuration of the cluster.
  5. Necessary values.yaml.htpl changes to plumb through the roxctl option value into the rendered install bundle.

@pedrottimark Keeping you in the loop for proto changes.
@mclasmeier Would like you to review the Helm changes for sure, if not all the changes.
@kcarmichael08 Keeping you in the loop for context on subsequent doc changes that will be needed.

Note: I am aware of the need for backport for this PR. I am ironing out some details based on this related PR to figure which backport labels to add (also will need to remove feature flag, and I await the reviewers thoughts on this)

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

roxctl bundle generation with option combinations (enforce options old and new, and the new failure policy option) to ensure correct bundle generation. Results as expected.

@rhacs-bot
Copy link
Contributor

rhacs-bot commented Jul 24, 2025

Images are ready for the commit at 81c97ed.

To use with deploy scripts, first export MAIN_IMAGE_TAG=4.9.x-371-g81c97ed0b7.

@codecov
Copy link

codecov bot commented Jul 24, 2025

Codecov Report

❌ Patch coverage is 15.62500% with 27 lines in your changes missing coverage. Please review.
✅ Project coverage is 48.84%. Comparing base (ab2837a) to head (81c97ed).
⚠️ Report is 4 commits behind head on master.

Files with missing lines Patch % Lines
roxctl/sensor/generate/generate.go 5.26% 17 Missing and 1 partial ⚠️
central/graphql/resolvers/generated.go 25.00% 6 Missing ⚠️
central/cluster/datastore/datastore_impl.go 25.00% 2 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master   #16149      +/-   ##
==========================================
- Coverage   48.85%   48.84%   -0.01%     
==========================================
  Files        2611     2611              
  Lines      192812   192841      +29     
==========================================
+ Hits        94189    94200      +11     
- Misses      91206    91224      +18     
  Partials     7417     7417              
Flag Coverage Δ
go-unit-tests 48.84% <15.62%> (-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.

@clickboo clickboo force-pushed the boo-roxctl-adm-ctrl-new-options branch from 0137455 to b0d55fc Compare July 24, 2025 10:12
@clickboo clickboo added the ci-all-qa-tests Tells CI to run all API tests (not just BAT). label Jul 24, 2025
@clickboo clickboo force-pushed the boo-roxctl-adm-ctrl-new-options branch 3 times, most recently from e5679db to 5ad4fe3 Compare July 25, 2025 09:46
central/cluster/datastore/datastore_impl.go Show resolved Hide resolved
roxctl/sensor/generate/generate.go Outdated Show resolved Hide resolved
@mclasmeier
Copy link
Contributor

@clickboo,

regarding

@mclasmeier Would like you to review the Helm changes for sure, if not all the changes.

I don't see Helm changes in this PR?

@clickboo
Copy link
Contributor Author

@clickboo,

regarding

@mclasmeier Would like you to review the Helm changes for sure, if not all the changes.

I don't see Helm changes in this PR?

I've tagged you on the relevant section in the PR - look out for my comments.

Copy link
Contributor

@janisz janisz left a comment

Choose a reason for hiding this comment

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

roxctl part looks good

proto/storage/cluster.proto Outdated Show resolved Hide resolved
central/cluster/datastore/datastore_impl.go Outdated Show resolved Hide resolved
roxctl/sensor/generate/generate.go Outdated Show resolved Hide resolved
central/cluster/datastore/datastore_impl.go Show resolved Hide resolved
central/cluster/datastore/datastore_impl.go Show resolved Hide resolved
@clickboo clickboo force-pushed the boo-roxctl-adm-ctrl-new-options branch from 8657f42 to fa93bb9 Compare July 29, 2025 13:31
@clickboo clickboo force-pushed the boo-roxctl-adm-ctrl-new-options branch from 7d5cbc2 to 278d4b7 Compare July 29, 2025 15:20
@clickboo clickboo requested a review from janisz July 29, 2025 18:23
@clickboo clickboo force-pushed the boo-roxctl-adm-ctrl-new-options branch from 838e6de to 781889b Compare July 30, 2025 05:28
roxctl/sensor/generate/generate.go Outdated Show resolved Hide resolved
@clickboo clickboo requested a review from mclasmeier July 30, 2025 14:05
@clickboo clickboo dismissed mclasmeier’s stale review July 30, 2025 14:21

The file and these defaults have always existed and so has the code logic. If they were always wrong, I do not know - it is for teams working on Helm(install team) and senseco to figure it out since it falls under your area of expertise and responsibility. I changed the defaults on this file to match the defaults in roxctl (which I also changed) - I believe that to be correct. Hence I am dismissing the review.

If you still think the values file is an issue, I recommend you file an appropriate task under the epics you are working on to make modifications based on your subject matter expertise. I do not believe it makes sense to block this PR on that future work.

central/clusters/zip/render_test.go Outdated Show resolved Hide resolved
central/clusters/zip/render_test.go Outdated Show resolved Hide resolved
roxctl/sensor/generate/generate.go Show resolved Hide resolved
roxctl/sensor/generate/generate.go Outdated Show resolved Hide resolved
roxctl/sensor/generate/generate.go Show resolved Hide resolved
@clickboo clickboo requested review from mclasmeier and porridge July 31, 2025 13:30
Copy link
Contributor

@mclasmeier mclasmeier left a comment

Choose a reason for hiding this comment

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

As discussed, would be nice IMHO to make the deprecation warnings more concise.

@clickboo clickboo force-pushed the boo-roxctl-adm-ctrl-new-options branch from 460d59c to 81c97ed Compare August 1, 2025 09:11
@clickboo clickboo merged commit ccc50db into master Aug 1, 2025
95 of 97 checks passed
@clickboo clickboo deleted the boo-roxctl-adm-ctrl-new-options branch August 1, 2025 13:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/central area/helm area/roxctl ci-all-qa-tests Tells CI to run all API tests (not just BAT).

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.