envoy icon indicating copy to clipboard operation
envoy copied to clipboard

Disable shadow host suffix append

Open jh125486 opened this issue 1 year ago • 10 comments

Commit Message: Add runtime feature envoy.reloadable_features.enable_shadow_header_suffix to toggle appending the -shadow suffix to mirrored clusters. Default is false (appends -shadow).

Additional Description: Issue: https://github.com/envoyproxy/envoy/issues/9094

Risk Level: Low

Testing: Unit

Docs Changes: Updated route mirror

Release Notes: Updated current.yaml

Platform Specific Features: n/a

Optional Runtime guard: envoy_reloadable_features_enable_shadow_header_suffix

Fixes #9094

jh125486 avatar Jan 22 '24 15:01 jh125486

Hi @jh125486, welcome and thank you for your contribution.

We will try to review your Pull Request as quickly as possible.

In the meantime, please take a look at the contribution guidelines if you have not done so already.

:cat:

Caused by: https://github.com/envoyproxy/envoy/pull/31930 was opened by jh125486.

see: more, trace.

CC @envoyproxy/runtime-guard-changes: FYI only for changes made to (source/common/runtime/runtime_features.cc).

:cat:

Caused by: https://github.com/envoyproxy/envoy/pull/31930 was opened by jh125486.

see: more, trace.

/wait

Unless the plan is to remove the suffix entirely in all cases, I think the proto change is more in line with how we usually handle conditional features. Especially since this could useful on a cluster-by-cluster basis.

zuercher avatar Jan 22 '24 22:01 zuercher

I’m working on the proto change/tests, a bit slow because building is broken on ARM, but I should have something tomorrow morning.

V/r Jacob Hochstetler


From: Stephan Zuercher @.> Sent: Monday, January 22, 2024 4:46:47 PM To: envoyproxy/envoy @.> Cc: Jacob Hochstetler @.>; Mention @.> Subject: Re: [envoyproxy/envoy] Disable shadow host suffix append (PR #31930)

/wait

Unless the plan is to remove the suffix entirely in all cases, I think the proto change is more in line with how we usually handle conditional features. Especially since this could useful on a cluster-by-cluster basis.

— Reply to this email directly, view it on GitHubhttps://github.com/envoyproxy/envoy/pull/31930#issuecomment-1904963230, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AAN5QHKWYVM3CSWTZ5SL7DLYP3T5PAVCNFSM6AAAAABCFLSKOSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMBUHE3DGMRTGA. You are receiving this because you were mentioned.Message ID: @.***>

jh125486 avatar Jan 23 '24 00:01 jh125486

CC @envoyproxy/api-shepherds: Your approval is needed for changes made to (api/envoy/|docs/root/api-docs/). envoyproxy/api-shepherds assignee is @adisuissa CC @envoyproxy/api-watchers: FYI only for changes made to (api/envoy/|docs/root/api-docs/).

:cat:

Caused by: https://github.com/envoyproxy/envoy/pull/31930 was synchronize by brianwarner.

see: more, trace.

/wait

Unless the plan is to remove the suffix entirely in all cases, I think the proto change is more in line with how we usually handle conditional features. Especially since this could useful on a cluster-by-cluster basis.

@botengyao / @zuercher Ready for review on the proto API changes.

jh125486 avatar Jan 25 '24 17:01 jh125486

Thank you for your contribution! Overall LGTM. In addition to the comments, please add an integration test that tests this feature and a release-note.

/wait

Yep, I can fix these things.
For release notes, I thought the section I added to current.yaml was where it went. Is there another place I need to put release notes?

For full transparency, I can't get the dev container to work through our proxy, bazel arm builds are broken (The current user has CAP_DAC_OVERRIDE set error) and consequently I'm sorta flying blind without an IDE.

jh125486 avatar Jan 25 '24 22:01 jh125486

I thought the section I added to current.yaml was where it went

all good - it is

For full transparency, I can't get the dev container to work through our proxy, bazel arm builds are broken (The current user has CAP_DAC_OVERRIDE set error) and consequently I'm sorta flying blind without an IDE.

looking at the .devcontainer caps - i think its overly permissive - not sure why it needs so much capability - iirc these can be used for privilege escalation

https://github.com/envoyproxy/envoy/blob/45ab9cfa30c7631fe325847dd291e2dcc80c1894/.devcontainer/devcontainer.json#L6-L9

i dont use vscode myself, so not sure if they are necessary - my guess is that these were just copied from the ci/run_envoy_docker.sh script which i think used to have similar

(EDIT: not 100% this is the issue - but probs above point stands)

phlax avatar Jan 25 '24 23:01 phlax

windows failiure is unrelated https://github.com/envoyproxy/envoy/issues/32060

phlax avatar Jan 25 '24 23:01 phlax

This pull request has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed in 7 days if no further activity occurs. Please feel free to give a status update now, ping for review, or re-open when it's ready. Thank you for your contributions!

github-actions[bot] avatar Feb 25 '24 04:02 github-actions[bot]

Sorry it took so long... got the requests changes done. It's currently working through my side.

jh125486 avatar Mar 01 '24 19:03 jh125486

This pull request has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed in 7 days if no further activity occurs. Please feel free to give a status update now, ping for review, or re-open when it's ready. Thank you for your contributions!

github-actions[bot] avatar Apr 01 '24 00:04 github-actions[bot]

This pull request has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed in 7 days if no further activity occurs. Please feel free to give a status update now, ping for review, or re-open when it's ready. Thank you for your contributions!

Still currently working through my side.

jh125486 avatar Apr 01 '24 13:04 jh125486

@phlax PR has been updated, sorry for the delay. I have not updated the change log yet, as it didn't make sense to do so until the actual code was looked over.

jh125486 avatar Apr 04 '24 13:04 jh125486

/assign @htuch Harvey it looks like you've already taken a look at this PR. Mind reviewing it?

RyanTheOptimist avatar Apr 09 '24 17:04 RyanTheOptimist