aboutsummaryrefslogtreecommitdiff
path: root/weed/command/scaffold
diff options
context:
space:
mode:
authorSebastian Kurfürst <sebastian@neos.io>2021-12-24 13:59:04 +0100
committerSebastian Kurfürst <sebastian@neos.io>2021-12-24 13:59:04 +0100
commit6db49100d69b8fea1f2d27fd7f66cf5feefe700a (patch)
treec657209177a920bb487134c85e938aee7fdd512e /weed/command/scaffold
parent255a1c7dcd009524c34cb8c3d6fce59c6d9a03cb (diff)
downloadseaweedfs-6db49100d69b8fea1f2d27fd7f66cf5feefe700a.tar.xz
seaweedfs-6db49100d69b8fea1f2d27fd7f66cf5feefe700a.zip
BUGFIX: add access.ui setting to scaffolded security.toml
... The property is read here: https://github.com/chrislusf/seaweedfs/blob/b70cb3e0b2a75543f0410d4c09f42aa95fcf2ee2/weed/server/volume_server.go#L69
Diffstat (limited to 'weed/command/scaffold')
-rw-r--r--weed/command/scaffold/security.toml7
1 files changed, 7 insertions, 0 deletions
diff --git a/weed/command/scaffold/security.toml b/weed/command/scaffold/security.toml
index 0c69b2f24..93b4cc05f 100644
--- a/weed/command/scaffold/security.toml
+++ b/weed/command/scaffold/security.toml
@@ -10,6 +10,13 @@
key = ""
expires_after_seconds = 10 # seconds
+# by default, if the signing key above is set, the Volume UI over HTTP is disabled.
+# by setting ui.access to true, you can re-enable the Volume UI. Despite
+# some information leakage (as the UI is unauthenticted), this should not
+# pose a security risk.
+[access]
+ui = false
+
# jwt for read is only supported with master+volume setup. Filer does not support this mode.
[jwt.signing.read]
key = ""