fix: Disable presigned without appropriate policy (#9621)

Fixes #9590
This commit is contained in:
Harshavardhana
2020-05-17 23:38:52 -07:00
committed by GitHub
parent a62572fb86
commit de9b391db3
2 changed files with 15 additions and 0 deletions

View File

@@ -47,6 +47,7 @@ var (
errAuthentication = errors.New("Authentication failed, check your access credentials")
errNoAuthToken = errors.New("JWT token missing")
errIncorrectCreds = errors.New("Current access key or secret key is incorrect")
errPresignedNotAllowed = errors.New("Unable to generate shareable URL due to lack of read permissions")
)
func authenticateJWTUsers(accessKey, secretKey string, expiry time.Duration) (string, error) {