zar3bski commented on code in PR #54:
URL: 
https://github.com/apache/apisix-python-plugin-runner/pull/54#discussion_r976509465


##########
apisix/runner/server/server.py:
##########
@@ -82,6 +84,7 @@ def __init__(self, config: NewServerConfig):
             os.remove(self.fd)
         self.sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM)
         self.sock.bind(self.fd)
+        os.chown(self.fd, getpwnam('nobody').pw_uid, 
grp.getgrnam('nobody').gr_gid)

Review Comment:
   @spacewander : I fixed the tests and added the possibility to override 
default `socket.owner` from `nobody` => `${whomever you want}`



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to