ESO-566: Reject arg overrides with an empty flag name - #177
Conversation
Signed-off-by: Bharath B <bhb@redhat.com>
|
@bharath-b-rh: This pull request references ESO-566 which is a valid jira issue. 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. |
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Repository: openshift/coderabbit/.coderabbit.yaml Review profile: CHILL Plan: Enterprise Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Comment |
|
[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 DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
@bharath-b-rh: all tests passed! 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. |
|
/lgtm |
|
PR is for an additional misconfiguration scenario, which is vetted in e2e and UTs. Adding all required labels |
c26b21f
into
openshift:release-1.1
Summary
Follow-up to #175: reject malformed tokens with an empty flag name (e.g.
--=value,--=).Previously these passed the
--prefix check,argFlagKeyreturned"--", andmergeContainerArgscould append the invalid arg to the operand Deployment instead of failing configuration validation (Degraded).Changes
parseOperandArgsEnvrejects tokens whoseargFlagKeyis"--"--=value,--=, mid-list cases, and apply-path non-mutationTest plan
go test ./pkg/controller/external_secrets/ -count=1 -run 'TestParseOperandArgsEnv|TestApplyOperandArgsFromEnv'--=valueinOPERAND_*_ARGSmarks ExternalSecretsConfig Degraded and does not mutate operand args