Skip to content

Commit

Permalink
CLDSRV-424: api call updated with implicit deny logic
Browse files Browse the repository at this point in the history
  • Loading branch information
Will Toozs authored and benzekrimaha committed Nov 7, 2023
1 parent ae770d0 commit 849c926
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 @@ -162,6 +162,11 @@ const api = {
// Any explicit deny rejects the current API call
log.trace('authorization denial from Vault');
return errors.AccessDenied;
} else if (authResults[i].isAllowed) {
// If the action is allowed, the result is not implicit
// Deny.
isImplicitDeny[authResults[i].action] = false;
isOnlyImplicitDeny = false;
}
if (authResults[i].isAllowed) {
// If the action is allowed, the result is not implicit
Expand Down

0 comments on commit 849c926

Please sign in to comment.