Skip to content

ESO-566: Reject arg overrides with an empty flag name - #177

Merged
openshift-merge-bot[bot] merged 1 commit into
openshift:release-1.1from
bharath-b-rh:release-1.1
Aug 11, 2026
Merged

ESO-566: Reject arg overrides with an empty flag name#177
openshift-merge-bot[bot] merged 1 commit into
openshift:release-1.1from
bharath-b-rh:release-1.1

Conversation

@bharath-b-rh

Copy link
Copy Markdown
Contributor

Summary

Follow-up to #175: reject malformed tokens with an empty flag name (e.g. --=value, --=).

Previously these passed the -- prefix check, argFlagKey returned "--", and mergeContainerArgs could append the invalid arg to the operand Deployment instead of failing configuration validation (Degraded).

Changes

  • parseOperandArgsEnv rejects tokens whose argFlagKey is "--"
  • Unit coverage for --=value, --=, mid-list cases, and apply-path non-mutation

Test plan

  • go test ./pkg/controller/external_secrets/ -count=1 -run 'TestParseOperandArgsEnv|TestApplyOperandArgsFromEnv'
  • Confirm --=value in OPERAND_*_ARGS marks ExternalSecretsConfig Degraded and does not mutate operand args

Signed-off-by: Bharath B <bhb@redhat.com>
@openshift-ci-robot

openshift-ci-robot commented Aug 11, 2026

Copy link
Copy Markdown

@bharath-b-rh: This pull request references ESO-566 which is a valid jira issue.

Details

In response to this:

Summary

Follow-up to #175: reject malformed tokens with an empty flag name (e.g. --=value, --=).

Previously these passed the -- prefix check, argFlagKey returned "--", and mergeContainerArgs could append the invalid arg to the operand Deployment instead of failing configuration validation (Degraded).

Changes

  • parseOperandArgsEnv rejects tokens whose argFlagKey is "--"
  • Unit coverage for --=value, --=, mid-list cases, and apply-path non-mutation

Test plan

  • go test ./pkg/controller/external_secrets/ -count=1 -run 'TestParseOperandArgsEnv|TestApplyOperandArgsFromEnv'
  • Confirm --=value in OPERAND_*_ARGS marks ExternalSecretsConfig Degraded and does not mutate operand args

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.

@openshift-ci-robot openshift-ci-robot added the jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. label Aug 11, 2026
@coderabbitai

coderabbitai Bot commented Aug 11, 2026

Copy link
Copy Markdown

Important

Review skipped

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

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: openshift/coderabbit/.coderabbit.yaml

Review profile: CHILL

Plan: Enterprise

Run ID: 86a313c2-7b54-4a38-8944-2a6576aa85e4

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 requested review from mytreya-rh and swghosh August 11, 2026 06:00
@openshift-ci

openshift-ci Bot commented Aug 11, 2026

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: bharath-b-rh

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

@openshift-ci openshift-ci Bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Aug 11, 2026
@openshift-ci

openshift-ci Bot commented Aug 11, 2026

Copy link
Copy Markdown

@bharath-b-rh: all tests passed!

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.

@mytreya-rh

Copy link
Copy Markdown
Contributor

/lgtm

@openshift-ci openshift-ci Bot added the lgtm Indicates that a PR is ready to be merged. label Aug 11, 2026
@bharath-b-rh

Copy link
Copy Markdown
Contributor Author

PR is for an additional misconfiguration scenario, which is vetted in e2e and UTs. Adding all required labels
/label docs-approved
/label qe-approved
/label px-approved

@openshift-ci openshift-ci Bot added docs-approved Signifies that Docs has signed off on this PR qe-approved Signifies that QE has signed off on this PR px-approved Signifies that Product Support has signed off on this PR labels Aug 11, 2026
@openshift-merge-bot
openshift-merge-bot Bot merged commit c26b21f into openshift:release-1.1 Aug 11, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. docs-approved Signifies that Docs has signed off on this PR jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. lgtm Indicates that a PR is ready to be merged. px-approved Signifies that Product Support has signed off on this PR qe-approved Signifies that QE has signed off on this PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants