[#489] Avoid sensitive data logging

Signed-off-by: Alex Vanin <alexey@nspcc.ru>
This commit is contained in:
Alex Vanin 2022-06-02 17:31:28 +03:00 committed by Kira
parent 12d9eb62cb
commit ee0f3fb196

View file

@ -516,8 +516,8 @@ func formGrantee(granteeType, value string) (*Grantee, error) {
Type: acpAmazonCustomerByEmail,
}, nil
}
return nil, fmt.Errorf("unknown type: %s", granteeType)
// do not return grantee type to avoid sensitive data logging (#489)
return nil, fmt.Errorf("unknown grantee type")
}
func addPredefinedACP(acp *AccessControlPolicy, cannedACL string) (*AccessControlPolicy, error) {