Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix analyzing envoy filter when 'filter' field is missing #42832

Conversation

pawelbeza
Copy link
Contributor

@pawelbeza pawelbeza commented Jan 16, 2023

Fixes: #42831
Before the change istioctl analyze was throwing SIGSEGV when optional field 'filter' was missing under EnvoyFilter.ListenerMatch.FilterChainMatch section.

Please provide a description of this PR:
Fixes SIGSEGV istioctl analyze issue described here #42831

To help us figure out who should review this PR, please put an X in all the areas that this PR affects.

  • Ambient
  • Configuration Infrastructure
  • Docs
  • Installation
  • Networking
  • Performance and Scalability
  • Policies and Telemetry
  • Security
  • Test and Release
  • User Experience
  • Developer Infrastructure

istio#42831
Before the change istioctl analyze was throwing SIGSEGV when optional field 'filter'
was missing under EnvoyFilter.ListenerMatch.FilterChainMatch section.
@pawelbeza pawelbeza requested a review from a team as a code owner January 16, 2023 21:37
@istio-policy-bot
Copy link

🤔 🐛 You appear to be fixing a bug in Go code, yet your PR doesn't include updates to any test files. Did you forget to add a test?

Courtesy of your friendly test nag.

@google-cla
Copy link

google-cla bot commented Jan 16, 2023

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@istio-policy-bot
Copy link

😊 Welcome @pawelbeza! This is either your first contribution to the Istio istio repo, or it's been
awhile since you've been here.

You can learn more about the Istio working groups, code of conduct, and contributing guidelines
by referring to Contributing to Istio.

Thanks for contributing!

Courtesy of your friendly welcome wagon.

@istio-testing istio-testing added size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. needs-ok-to-test labels Jan 16, 2023
@istio-testing
Copy link
Collaborator

Hi @pawelbeza. Thanks for your PR.

I'm waiting for a istio member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

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/test-infra repository.

@GregHanson
Copy link
Member

/ok-to-test

@istio-testing istio-testing added ok-to-test Set this label allow normal testing to take place for a PR not submitted by an Istio org member. and removed needs-ok-to-test labels Jan 16, 2023
@GregHanson
Copy link
Member

GregHanson commented Jan 16, 2023

@pawelbeza can you add a release note to highlight the fix? And include the issue # you have above in the release note

@pawelbeza pawelbeza requested review from a team as code owners January 16, 2023 23:01
@istio-testing istio-testing added size/S Denotes a PR that changes 10-29 lines, ignoring generated files. and removed size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Jan 16, 2023
@istio-testing istio-testing merged commit a7bd71c into istio:master Jan 16, 2023
@dhawton dhawton added cherrypick/release-1.16 Set this label on a PR to auto-merge it to the release-1.16 branch cherrypick/release-1.15 and removed cherrypick/release-1.16 Set this label on a PR to auto-merge it to the release-1.16 branch labels Jan 17, 2023
@zirain
Copy link
Member

zirain commented Mar 16, 2023

/cherry-pick release-1.15

/cherry-pick release-1.16

@zirain
Copy link
Member

zirain commented Mar 16, 2023

/cherry-pick release-1.16

@zirain
Copy link
Member

zirain commented Mar 16, 2023

/cherry-pick release-1.15

@istio-testing
Copy link
Collaborator

@zirain: new pull request created: #43959

In response to this:

/cherry-pick release-1.15

/cherry-pick release-1.16

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/test-infra repository.

@istio-testing
Copy link
Collaborator

@zirain: new pull request created: #43960

In response to this:

/cherry-pick release-1.16

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/test-infra repository.

@istio-testing
Copy link
Collaborator

@zirain: new pull request could not be created: failed to create pull request against istio/istio#release-1.15 from head istio-testing:cherry-pick-42832-to-release-1.15: status code 422 not one of [201], body: {"message":"Validation Failed","errors":[{"resource":"PullRequest","code":"custom","message":"A pull request already exists for istio-testing:cherry-pick-42832-to-release-1.15."}],"documentation_url":"https://docs.github.com/rest/reference/pulls#create-a-pull-request"}

In response to this:

/cherry-pick release-1.15

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/test-infra repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/test and release area/user experience cherrypick/release-1.16 Set this label on a PR to auto-merge it to the release-1.16 branch kind/docs ok-to-test Set this label allow normal testing to take place for a PR not submitted by an Istio org member. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

istioctl analyze SIGSEGV while analyzing envoy filter
6 participants