mirror of
https://github.com/pgsty/minio.git
synced 2026-07-23 06:00:24 +03:00
Enforce signature v4 tests all the time, server defaults to only authenticated requests.
All requests must be authenticated to minio server from now on by using keys generated at
``${HOME}/.minio/users.json`` - from ``minio controller`` during its first time run.
Add a new hidden option ``--anonymous`` for running server in unauthenticated mode.
This commit is contained in:
@@ -32,6 +32,7 @@ type minioConfig struct {
|
||||
Address string
|
||||
ControllerAddress string
|
||||
RPCAddress string
|
||||
Anonymous bool
|
||||
TLS bool
|
||||
CertFile string
|
||||
KeyFile string
|
||||
@@ -40,7 +41,6 @@ type minioConfig struct {
|
||||
|
||||
func init() {
|
||||
// Check for the environment early on and gracefuly report.
|
||||
|
||||
_, err := user.Current()
|
||||
if err != nil {
|
||||
Fatalf("Unable to obtain user's home directory. \nError: %s\n", err)
|
||||
@@ -100,6 +100,7 @@ func registerApp() *cli.App {
|
||||
registerFlag(addressControllerFlag)
|
||||
registerFlag(addressServerRPCFlag)
|
||||
registerFlag(ratelimitFlag)
|
||||
registerFlag(anonymousFlag)
|
||||
registerFlag(certFlag)
|
||||
registerFlag(keyFlag)
|
||||
registerFlag(jsonFlag)
|
||||
|
||||
Reference in New Issue
Block a user