We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2ee64f0 commit c9efc39Copy full SHA for c9efc39
s3secrets-helper/s3/s3.go
@@ -90,11 +90,11 @@ func (c *Client) Get(key string) ([]byte, error) {
90
return nil, sentinel.ErrNotFound
91
}
92
93
+ // Possible values can be found at https://docs.aws.amazon.com/AmazonS3/latest/API/API_Error.html
94
var apiErr smithy.APIError
95
if errors.As(err, &apiErr) {
96
code := apiErr.ErrorCode()
- // TODO confirm "Forbidden" is a member of the set of values this can return
97
- if code == "Forbidden" {
+ if code == "AccessDenied" {
98
return nil, sentinel.ErrForbidden
99
100
0 commit comments