OCPBUGS-74506: Remove ConsolePluginSecurityPolicy featuregate#2683
OCPBUGS-74506: Remove ConsolePluginSecurityPolicy featuregate#2683jhadvig wants to merge 1 commit intoopenshift:masterfrom
Conversation
|
Pipeline controller notification For optional jobs, comment This repository is configured in: LGTM mode |
|
Hello @jhadvig! Some important instructions when contributing to openshift/api: |
|
@jhadvig: This pull request references Jira Issue OCPBUGS-74506, which is valid. The bug has been moved to the POST state. 3 validation(s) were run on this bug
Requesting review from QA contact: The bug has been updated to refer to the pull request using the external bug tracker. DetailsIn response to this:
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 openshift-eng/jira-lifecycle-plugin repository. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository YAML (base), Organization UI (inherited) Review profile: CHILL Plan: Pro Run ID: ⛔ Files ignored due to path filters (2)
📒 Files selected for processing (6)
💤 Files with no reviewable changes (3)
🚧 Files skipped from review as they are similar to previous changes (2)
📝 WalkthroughWalkthroughThis change removes the 🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 golangci-lint (2.11.4)Error: build linters: unable to load custom analyzer "kubeapilinter": tools/_output/bin/kube-api-linter.so, plugin: not implemented Comment |
|
@jhadvig: This pull request references Jira Issue OCPBUGS-74506, which is valid. 3 validation(s) were run on this bug
Requesting review from QA contact: DetailsIn response to this:
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 openshift-eng/jira-lifecycle-plugin repository. |
PR Compliance Guide 🔍Below is a summary of compliance checks for this PR:
Compliance status legend🟢 - Fully Compliant🟡 - Partial Compliant 🔴 - Not Compliant ⚪ - Requires Further Human Verification 🏷️ - Compliance label |
|||||||||||||||||||||||
PR Code Suggestions ✨Explore these optional code suggestions:
|
|||||||||
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Fix all issues with AI agents
In `@console/v1/tests/consoleplugins.console.openshift.io/AAA_ungated.yaml`:
- Around line 264-275: The test text and value are inconsistent: the test claims
a “tab” but the CSP value uses spaces; update the YAML so
spec.contentSecurityPolicy[0].values[0] contains an actual tab character (escape
it) in the URI (replace the series of spaces in the initial block value
"https://scri pt1.com/" with a single \t where intended) or alternatively
rename the test description from “tab” to “spaces” so it accurately reflects the
current input; ensure you only modify the initial block value or the test name
and keep the expectedError unchanged.
| initial: | | ||
| apiVersion: console.openshift.io/v1 | ||
| kind: ConsolePlugin | ||
| spec: | ||
| displayName: foo | ||
| backend: | ||
| type: Service | ||
| contentSecurityPolicy: | ||
| - directive: ScriptSrc | ||
| values: | ||
| - https://scri pt1.com/ | ||
| expectedError: "spec.contentSecurityPolicy[0].values[0]: Invalid value: \"string\": CSP directive value cannot contain a whitespace" |
There was a problem hiding this comment.
Test description says “tab” but the value uses spaces.
Either use an actual tab (escaped) or rename the test to “spaces” to avoid confusion.
🔧 Suggested fix (use a tab escape)
- - name: Should throw an error for invalid CSP directive values with whitespace, using tab
+ - name: Should throw an error for invalid CSP directive values with whitespace, using tab
initial: |
apiVersion: console.openshift.io/v1
kind: ConsolePlugin
spec:
displayName: foo
backend:
type: Service
contentSecurityPolicy:
- directive: ScriptSrc
values:
- - https://scri pt1.com/
+ - "https://scri\tpt1.com/"🤖 Prompt for AI Agents
In `@console/v1/tests/consoleplugins.console.openshift.io/AAA_ungated.yaml` around
lines 264 - 275, The test text and value are inconsistent: the test claims a
“tab” but the CSP value uses spaces; update the YAML so
spec.contentSecurityPolicy[0].values[0] contains an actual tab character (escape
it) in the URI (replace the series of spaces in the initial block value
"https://scri pt1.com/" with a single \t where intended) or alternatively
rename the test description from “tab” to “spaces” so it accurately reflects the
current input; ensure you only modify the initial block value or the test name
and keep the expectedError unchanged.
|
/lgtm |
|
Scheduling tests matching the |
|
Looking at the CI, looks like maybe the console operator is still looking for this gate? Is there a PR to remove references to this gate for the console operator that needs to merge first? |
|
@JoelSpeed opened console and console-operator PR where I vendor these changes in order to unblock the CI |
|
/lgtm |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: JoelSpeed The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
Scheduling tests matching the |
|
/retest |
1 similar comment
|
/retest |
|
/retest |
|
@JoelSpeed: This PR has been marked as verified by DetailsIn response to this:
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 openshift-eng/jira-lifecycle-plugin repository. |
|
/override ci/prow/e2e-aws-ovn-hypershift-conformance Known issue with the conformance image configuration at the moment |
|
@JoelSpeed: Overrode contexts on behalf of JoelSpeed: ci/prow/e2e-aws-ovn-hypershift-conformance DetailsIn response to this:
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. |
|
@jhadvig: The following tests failed, say
Full PR test history. Your PR dashboard. DetailsInstructions 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. |
|
PR needs rebase. DetailsInstructions 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. |
User description
/assign @JoelSpeed
PR Type
Enhancement
Description
Remove ConsolePluginContentSecurityPolicy feature gate
Make CSP configuration always available for ConsolePlugin
Move CSP tests from gated to ungated test suite
Update feature gate manifests and documentation
Diagram Walkthrough
File Walkthrough
5 files
Remove feature gate annotation from CSP fieldDelete ConsolePluginContentSecurityPolicy feature gate definitionClear FeatureGates list for ConsolePlugin CRDAdd full CSP schema to ungated CRD manifestRemove feature-gated CRD manifest file2 files
Add comprehensive CSP validation tests to ungated suiteRemove feature-gated CSP test file entirely1 files
Remove ConsolePluginContentSecurityPolicy from feature matrix8 files
Remove CSP feature gate from Hypershift Default profileRemove CSP feature gate from Hypershift DevPreview profileRemove CSP feature gate from Hypershift OKD profileRemove CSP feature gate from Hypershift TechPreview profileRemove CSP feature gate from SelfManagedHA Default profileRemove CSP feature gate from SelfManagedHA DevPreview profileRemove CSP feature gate from SelfManagedHA OKD profileRemove CSP feature gate from SelfManagedHA TechPreview profile