Skip to content
Snippets Groups Projects
Commit c1f8f7bc authored by Aleš Mrázek's avatar Aleš Mrázek
Browse files

datamodel: management: warning that the unix-socket is not located in rundir

parent 2b312097
No related branches found
No related tags found
1 merge request!1664datamodel: management: reverting to absolute path for unix-socket
......@@ -184,6 +184,14 @@ class KresConfig(ConfigSchema):
return obj.dns64
def _validate(self) -> None:
# warn about '/management/unix-socket' not located in '/rundir'
if self.management.unix_socket and self.management.unix_socket.to_path().parent != self.rundir.to_path():
logger.warning(
f"The management API unix-socket '{self.management.unix_socket}'"
f" is not located in the resolver's rundir '{self.rundir}'."
" This can lead to permissions issues."
)
# enforce max-workers config
workers_max = _workers_max_count()
if int(self.workers) > workers_max:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment