Skip to content

Commit

Permalink
ensure deny by default for special APIs
Browse files Browse the repository at this point in the history
  • Loading branch information
williamlardier committed Jun 22, 2023
1 parent 4f07033 commit 6b66ba8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/api/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,11 @@ const api = {
}
}
}
// Specific APIs are not checking any ACLs or Bucket Policies.
//
if (method === 'bucketPut' || apimethod === 'serviceGet' && isImplicitDeny) {
return errors.AccessDenied;
}
return { returnTagCount, isImplicitDeny };
}

Expand Down

0 comments on commit 6b66ba8

Please sign in to comment.