sandialabs / sceptre-phenix

phenix is an orchestration tool and GUI for Sandia's minimega platform
https://sandialabs.github.io/sceptre-docs/
GNU General Public License v3.0
17 stars 23 forks source link

Add optional --unix-socket-gid flag #191

Closed glattercj closed 1 month ago

glattercj commented 1 month ago

Adds an optional (and hidden) flag for specifying a group ID to apply group ownership to the unix-socket. Also sets the permissions to be group-writable. Use case: phenix starts from within a docker container as the root user, but normal users wish to be able to use the unix-socket to communicate with phenix (without having to switch to root). This allows the users to be a part of the group specified in the flag and have write access to the socket.

Normal (--unix-socket-gid=1000):

Screenshot 2024-08-02 at 08 49 19

Error (--unix-socket-gid=foobar):

Screenshot 2024-08-04 at 21 27 37