security.toml 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. # Put this file to one of the location, with descending priority
  2. # ./security.toml
  3. # $HOME/.seaweedfs/security.toml
  4. # /etc/seaweedfs/security.toml
  5. # this file is read by master, volume server, and filer
  6. # this jwt signing key is read by master and volume server, and it is used for write operations:
  7. # - the Master server generates the JWT, which can be used to write a certain file on a volume server
  8. # - the Volume server validates the JWT on writing
  9. # the jwt defaults to expire after 10 seconds.
  10. [jwt.signing]
  11. key = ""
  12. expires_after_seconds = 10 # seconds
  13. # by default, if the signing key above is set, the Volume UI over HTTP is disabled.
  14. # by setting ui.access to true, you can re-enable the Volume UI. Despite
  15. # some information leakage (as the UI is not authenticated), this should not
  16. # pose a security risk.
  17. [access]
  18. ui = false
  19. # this jwt signing key is read by master and volume server, and it is used for read operations:
  20. # - the Master server generates the JWT, which can be used to read a certain file on a volume server
  21. # - the Volume server validates the JWT on reading
  22. # NOTE: jwt for read is only supported with master+volume setup. Filer does not support this mode.
  23. [jwt.signing.read]
  24. key = ""
  25. expires_after_seconds = 10 # seconds
  26. # If this JWT key is configured, Filer only accepts writes over HTTP if they are signed with this JWT:
  27. # - f.e. the S3 API Shim generates the JWT
  28. # - the Filer server validates the JWT on writing
  29. # the jwt defaults to expire after 10 seconds.
  30. [jwt.filer_signing]
  31. key = ""
  32. expires_after_seconds = 10 # seconds
  33. # If this JWT key is configured, Filer only accepts reads over HTTP if they are signed with this JWT:
  34. # - f.e. the S3 API Shim generates the JWT
  35. # - the Filer server validates the JWT on writing
  36. # the jwt defaults to expire after 10 seconds.
  37. [jwt.filer_signing.read]
  38. key = ""
  39. expires_after_seconds = 10 # seconds
  40. # all grpc tls authentications are mutual
  41. # the values for the following ca, cert, and key are paths to the PERM files.
  42. # the host name is not checked, so the PERM files can be shared.
  43. [grpc]
  44. ca = ""
  45. # Set wildcard domain for enable TLS authentication by common names
  46. allowed_wildcard_domain = "" # .mycompany.com
  47. [grpc.volume]
  48. cert = ""
  49. key = ""
  50. allowed_commonNames = "" # comma-separated SSL certificate common names
  51. [grpc.master]
  52. cert = ""
  53. key = ""
  54. allowed_commonNames = "" # comma-separated SSL certificate common names
  55. [grpc.filer]
  56. cert = ""
  57. key = ""
  58. allowed_commonNames = "" # comma-separated SSL certificate common names
  59. [grpc.msg_broker]
  60. cert = ""
  61. key = ""
  62. allowed_commonNames = "" # comma-separated SSL certificate common names
  63. # use this for any place needs a grpc client
  64. # i.e., "weed backup|benchmark|filer.copy|filer.replicate|mount|s3|upload"
  65. [grpc.client]
  66. cert = ""
  67. key = ""
  68. # volume server https options
  69. # Note: work in progress!
  70. # this does not work with other clients, e.g., "weed filer|mount" etc, yet.
  71. [https.client]
  72. enabled = true
  73. [https.volume]
  74. cert = ""
  75. key = ""