Add an option to set permissions of unix socket · Issue #11615 · VictoriaMetrics/VictoriaMetrics · GitHub
Skip to content

Add an option to set permissions of unix socket #11615

Closed

Description

@duament

Is your feature request related to a problem? Please describe

#11434 added support for unix socket. But it hard-coded 0600 permission.

I have a setup where VictoriaMetrics is executed as victoriametrics user and nginx is executed as nginx
user. To allow nginx access the unix socket, I need to add victoriametrics as a supplementary group to nginx and set 0660 permission for the unix socket.

BTW, there's a mismatch between the doc and the code.


Describe the solution you'd like

Add a command line option -unixSocketMode to set permissions for unix socket listeners.

Describe alternatives you've considered

No response

Additional information

No response

Activity

  1. f41gh7 commented on Sep 24, 2026

    @f41gh7
    Contributor

    At the upcoming release VM components will no longer set any permissions for unix socket out of the box. It will be inherited from current process and could be configured via systemd or any other supervisor system.

  2. added
    completedThe change was merged to upstream, but wasn't released yet.
    on Sep 24, 2026
  3. f41gh7 commented on Sep 28, 2026

    @f41gh7
    Contributor

    The bugfix was included into v1.153.0 release

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

completedThe change was merged to upstream, but wasn't released yet.enhancementNew feature or requestlib

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions