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

listener: respect address.pipe.mode (it didn't work) #13493

Merged
merged 10 commits into from
Oct 13, 2020

Conversation

sorah
Copy link
Contributor

@sorah sorah commented Oct 11, 2020

listener[].address.pipe.mode configuration wasn't working since it has been landed, as it was ignored during resolution from config object to Address instance.


This patch fixes the following configuration working as expected.

static_resources:
  listeners:
    - name: http
      address:
        pipe:
          path: '/tmp/envoy.sock'
          mode: 438 # 0666
      # ...

Commit Message: listener: respect address.pipe.mode (it didn't work)
Risk Level: Low
Testing: added integration test
Docs Changes: N/A
Release Notes: N/A
Fixes: #11809

It seems listener[].address.pipe.mode configuration wasn't working under v3 api.

Fixes envoyproxy#11809

Signed-off-by: Sorah Fukumori <[email protected]>
@sorah
Copy link
Contributor Author

sorah commented Oct 11, 2020

I thought that some commit broke this feature, but I couldn't confirm the mode configuration was working as expected at the commit #8423 ...

@sorah
Copy link
Contributor Author

sorah commented Oct 11, 2020

Trying to add an integration test as it has never worked properly.

(PR #8423 was changing protobufAddressToAddress, but listeners were created using resolveProtoAddress since when it has been merged)

commit 750431a added the feature w/
unit tests but wasn't working properly. Adding integration test to make
it sure.

Signed-off-by: Sorah Fukumori <[email protected]>
test/integration/uds_integration_test.cc Outdated Show resolved Hide resolved
test/integration/uds_integration_test.cc Outdated Show resolved Hide resolved
fix miss copy and paste

Signed-off-by: Sorah Fukumori <[email protected]>
Signed-off-by: Sorah Fukumori <[email protected]>
Signed-off-by: Sorah Fukumori <[email protected]>
the unit test, PipeInstanceTest/BasicPermission is also skipped on
win32

Signed-off-by: Sorah Fukumori <[email protected]>
stat(2) fails with ENOENT against Windows dialect AF_UNIX socket files,
while chmod(2) succeeds.

Signed-off-by: Sorah Fukumori <[email protected]>
Signed-off-by: Sorah Fukumori <[email protected]>
@sorah
Copy link
Contributor Author

sorah commented Oct 11, 2020

/retest

@repokitteh-read-only
Copy link

Retrying Azure Pipelines, to retry CircleCI checks, use /retest-circle.
Cannot retry non-completed check: envoy-presubmit (Verify examples run as documented), please wait.

🐱

Caused by: a #13493 (comment) was created by @sorah.

see: more, trace.

@sorah
Copy link
Contributor Author

sorah commented Oct 11, 2020

/retest

@repokitteh-read-only
Copy link

Retrying Azure Pipelines, to retry CircleCI checks, use /retest-circle.
Retried failed jobs in: envoy-presubmit

🐱

Caused by: a #13493 (comment) was created by @sorah.

see: more, trace.

@sorah
Copy link
Contributor Author

sorah commented Oct 11, 2020

CIs passed.

@sorah sorah changed the title config: respect address.pipe.mode in v3 api listener: respect address.pipe.mode (it didn't work) Oct 11, 2020
Copy link
Member

@lizan lizan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you merge main branch once?

@lizan lizan merged commit db1a352 into envoyproxy:master Oct 13, 2020
@sorah sorah deleted the pipe-mode branch October 13, 2020 23:35
mpuncel added a commit to mpuncel/envoy that referenced this pull request Oct 14, 2020
* master: (22 commits)
  http: using CONNECT_ERROR for HTTP/2 (envoyproxy#13519)
  listener: respect address.pipe.mode (it didn't work) (envoyproxy#13493)
  examples: Fix more deprecations/warnings in configs (envoyproxy#13529)
  overload: tcp connection refusal overload action (envoyproxy#13311)
  tcp: towards pluggable upstreams (envoyproxy#13331)
  conn_pool: fixing comments (envoyproxy#13520)
  Prevent SEGFAULT when disabling listener (envoyproxy#13515)
  Convert overload manager config literals to YAML (envoyproxy#13518)
  Fix runtime feature variable name (envoyproxy#13533)
  dependencies: refactor repository location schema utils, cleanups. (envoyproxy#13452)
  router:  fix an invalid ASSERT when encoding metadata frames in the router. (envoyproxy#13511)
  http2: Proactively disconnect connections flooded when resetting stream (envoyproxy#13482)
  ci use azp to sync filter example (envoyproxy#13501)
  mongo_proxy: support configurable command list for metrics (envoyproxy#13494)
  http local rate limit: note token bucket is shared (envoyproxy#13525)
  wasm/extensions: Wasm extension policy. (envoyproxy#13526)
  http: removing envoy.reloadable_features.http1_flood_protection (envoyproxy#13508)
  build: update ppc64le CI build status shield (envoyproxy#13521)
  dependencies: enforce dependency shepherd sign-off via RepoKitteh. (envoyproxy#13522)
  Add no_traffic_healthy_interval (envoyproxy#13336)
  ...

Signed-off-by: Michael Puncel <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

"mode" setting on config.core.v3.Pipe has no apparent effect
2 participants