Skip to content

Commit

Permalink
s3: add missing status code in authentication middleware (#633)
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisSchinnerl authored Oct 2, 2023
1 parent 23f2918 commit 336a17c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions s3/authentication.go
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,9 @@ func (b *authenticatedBackend) AuthenticationMiddleware(handler http.Handler) ht
// still succeed due to bucket policy.
} else if err := b.reloadV4Keys(rq.Context()); err != nil {
writeResponse(w, signature.APIError{
Code: string(gofakes3.ErrInternal),
Description: fmt.Sprintf("failed to reload v4 keys: %v", err),
Code: string(gofakes3.ErrInternal),
Description: fmt.Sprintf("failed to reload v4 keys: %v", err),
HTTPStatusCode: http.StatusInternalServerError,
})
return
} else if result := signature.V4SignVerify(rq); result != signature.ErrNone {
Expand Down

0 comments on commit 336a17c

Please sign in to comment.