mirror of
https://github.com/minio/minio.git
synced 2026-11-18 23:00:19 +00:00
[GH-1240] main: Print keys after init and full server initialization.
Setting MINIO_ACCESS_KEY and MINIO_SECRET_KEY re-writes the values in config properly, but the init message is not updated. Fix it by delay printing keys until everything is properly initialized.
This commit is contained in:
1 parent
a729d02c31
commit
72d364cbf2
2 files changed
+8
-8
No files matched your search
+1
-1
@@ -40,7 +40,7 @@ func isValidAccessKey(accessKeyID string) bool {
|
||||
|
||||
// isValidSecretKey - validate secret key
|
||||
func isValidSecretKey(secretKeyID string) bool {
|
||||
regex := regexp.MustCompile("^[a-zA-Z0-9\\-\\.\\_\\~]{40}$")
|
||||
regex := regexp.MustCompile("^.{40}$")
|
||||
return regex.MatchString(secretKeyID)
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user