mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-15 14:03:02 +00:00
This commit is contained in:
@@ -617,7 +617,7 @@ class JupyterHub(Application):
|
||||
if not secret and os.path.exists(secret_file):
|
||||
secret_from = 'file'
|
||||
perm = os.stat(secret_file).st_mode
|
||||
if perm & 0o077:
|
||||
if perm & 0o07:
|
||||
self.log.error("Bad permissions on %s", secret_file)
|
||||
else:
|
||||
self.log.info("Loading %s from %s", trait_name, secret_file)
|
||||
|
Reference in New Issue
Block a user