Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

INTEGRATION [PR#1989 > development/8.1] bugfix: ARSN-255 revamp evaluatePolicy logic for tag conditions #1990

Conversation

bert-e
Copy link
Contributor

@bert-e bert-e commented Aug 10, 2022

This pull request has been created automatically.
It is linked to its parent pull request #1989.

Do not edit this pull request directly.
If you need to amend/cancel the changeset on branch
w/8.1/bugfix/ARSN-255-revampEvaluatePolicyForTagConditions, please follow this
procedure:

 $ git fetch
 $ git checkout w/8.1/bugfix/ARSN-255-revampEvaluatePolicyForTagConditions
 $ # <amend or cancel the changeset by _adding_ new commits>
 $ git push origin w/8.1/bugfix/ARSN-255-revampEvaluatePolicyForTagConditions

Please always comment pull request #1989 instead of this one.

jonathan-gramain and others added 3 commits August 9, 2022 18:29
Turn 'const' function objects into actual functions.
Rethink the logic of tag condition evaluation, so that the
"evaluateAllPolicies" function appropriately returns the verdict:
Allow or Deny or NeedTagConditionEval, the latter being when tag
values (request and/or object tags) are needed to settle the verdict
to Allow or Deny, in which case, Cloudserver knows it has to resend
the request to Vault along with tag info.
…nto tmp/octopus/w/8.1/bugfix/ARSN-255-revampEvaluatePolicyForTagConditions
@codecov-commenter
Copy link

Codecov Report

Merging #1990 (b43cf22) into development/8.1 (46c44cc) will increase coverage by 0.07%.
The diff coverage is 100.00%.

@@                 Coverage Diff                 @@
##           development/8.1    #1990      +/-   ##
===================================================
+ Coverage            63.54%   63.62%   +0.07%     
===================================================
  Files                  206      206              
  Lines                15582    15597      +15     
  Branches              3166     3176      +10     
===================================================
+ Hits                  9902     9924      +22     
+ Misses                5664     5657       -7     
  Partials                16       16              
Impacted Files Coverage Δ
lib/policyEvaluator/evaluator.ts 99.36% <100.00%> (+1.69%) ⬆️
lib/policyEvaluator/principal.ts 96.34% <100.00%> (+6.75%) ⬆️
lib/policyEvaluator/utils/conditions.ts 75.98% <0.00%> (-2.95%) ⬇️
lib/policyEvaluator/RequestContext.ts 44.54% <0.00%> (+1.89%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@bert-e bert-e merged commit a4f163f into development/8.1 Aug 17, 2022
@bert-e bert-e deleted the w/8.1/bugfix/ARSN-255-revampEvaluatePolicyForTagConditions branch August 17, 2022 22:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants