Skip to content

"mode" setting on config.core.v3.Pipe has no apparent effect #11809

@gvwirth

Description

@gvwirth

Hello,

We're setting up a Listener to use a unix socket, and are attempting to set the mode of the pipes to (octal) 666. We've set this config on the listener (this is copy/pasted from a config dump via the admin web interface):

  "listener": {
   "@type": "type.googleapis.com/envoy.config.listener.v3.Listener",
   "name": "listener_http",
   "address": {
    "pipe": {
     "path": "/run/copilot-http",
     "mode": 438
    }
   }, ...

However the resulting socket at /run/copilot-http has a mode of 755 (which is umask default):

gwirth@Garets-MacBook-Pro copilot-v2 % docker exec -it 76f00264e1b3 ls -la /run
total 32
drwxr-xr-x 1 root root 4096 Jun 29 22:07 .
drwxr-xr-x 1 root root 4096 Jun 29 22:07 ..
srwxr-xr-x 1 root root    0 Jun 29 22:07 copilot-http

We are running this inside of the official Envoy container, version 1.14.1. Is there extra config we're missing, or another setting that's overriding the mode of the socket perhaps?

Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions