Remove minio root credentials from CreateTenant response (#402)

Co-authored-by: Daniel Valdivia <hola@danielvaldivia.com>
This commit is contained in:
Cesar N
2020-11-18 16:16:06 -08:00
committed by GitHub
parent b21123e1cd
commit 12e53a1468
7 changed files with 1 additions and 40 deletions

View File

@@ -778,10 +778,7 @@ func getTenantCreatedResponse(session *models.Principal, params admin_api.Create
return nil, prepareError(err)
}
}
response = &models.CreateTenantResponse{
AccessKey: accessKey,
SecretKey: secretKey,
}
response = &models.CreateTenantResponse{}
// Attach Console Credentials
if enableConsole {
response.Console = &models.CreateTenantResponseConsole{

View File

@@ -3279,9 +3279,6 @@ func init() {
"createTenantResponse": {
"type": "object",
"properties": {
"access_key": {
"type": "string"
},
"console": {
"type": "object",
"properties": {
@@ -3292,9 +3289,6 @@ func init() {
"type": "string"
}
}
},
"secret_key": {
"type": "string"
}
}
},
@@ -8668,9 +8662,6 @@ func init() {
"createTenantResponse": {
"type": "object",
"properties": {
"access_key": {
"type": "string"
},
"console": {
"type": "object",
"properties": {
@@ -8681,9 +8672,6 @@ func init() {
"type": "string"
}
}
},
"secret_key": {
"type": "string"
}
}
},