mirror of
https://github.com/pgsty/minio.git
synced 2026-07-16 00:41:25 +03:00
use environment variables to set and override access and secret keys at server startup
This commit is contained in:
committed by
Harshavardhana
parent
bd6850e79f
commit
678585c513
@@ -38,6 +38,12 @@ func isValidAccessKey(accessKeyID string) bool {
|
||||
return regex.MatchString(accessKeyID)
|
||||
}
|
||||
|
||||
// isValidSecretKey - validate secret key
|
||||
func isValidSecretKey(secretKeyID string) bool {
|
||||
regex := regexp.MustCompile("^[a-zA-Z0-9\\-\\.\\_\\~]{40}$")
|
||||
return regex.MatchString(secretKeyID)
|
||||
}
|
||||
|
||||
// generateAccessKeyID - generate random alpha numeric value using only uppercase characters
|
||||
// takes input as size in integer
|
||||
func generateAccessKeyID() ([]byte, *probe.Error) {
|
||||
|
||||
Reference in New Issue
Block a user