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

fix(rpc/flipt): implement Requester for evaluation data snapshot #3439

Merged
merged 3 commits into from
Sep 7, 2024

Conversation

GeorgeMac
Copy link
Contributor

This is proposal for the open PR #3438

It changes the solution so that we actually request specific permissions when attempting to fetch evaluation snapshot data.
In order to enforce some level of authz and not leak entire namespace contents this way.

Signed-off-by: George MacRorie <me@georgemac.com>
Signed-off-by: George MacRorie <me@georgemac.com>
Signed-off-by: George MacRorie <me@georgemac.com>
Copy link

codecov bot commented Sep 7, 2024

Codecov Report

Attention: Patch coverage is 88.46154% with 6 lines in your changes missing coverage. Please review.

Project coverage is 64.69%. Comparing base (138218a) to head (8b69df4).
Report is 1 commits behind head on authz-eval-fixes.

Files with missing lines Patch % Lines
internal/server/middleware/grpc/middleware.go 85.36% 5 Missing and 1 partial ⚠️
Additional details and impacted files
@@                 Coverage Diff                  @@
##           authz-eval-fixes    #3439      +/-   ##
====================================================
+ Coverage             64.66%   64.69%   +0.02%     
====================================================
  Files                   174      174              
  Lines                 13920    13919       -1     
====================================================
+ Hits                   9002     9005       +3     
+ Misses                 4227     4225       -2     
+ Partials                691      689       -2     
Flag Coverage Δ
unittests 64.69% <88.46%> (+0.02%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@markphelps markphelps merged commit d3cfc18 into authz-eval-fixes Sep 7, 2024
58 of 61 checks passed
@markphelps markphelps deleted the gm/authz-eval-fixes branch September 7, 2024 16:35
kodiakhq bot added a commit that referenced this pull request Sep 9, 2024
* fix: disable authz for all evaluation endpoints

Signed-off-by: Mark Phelps <209477+markphelps@users.noreply.github.com>

* chore: refactor authz test a bit

Signed-off-by: Mark Phelps <209477+markphelps@users.noreply.github.com>

* chore: add missing test

Signed-off-by: Mark Phelps <209477+markphelps@users.noreply.github.com>

* fix(rpc/flipt): implement Requester for evaluation data snapshot (#3439)

* chore: fix lint error

Signed-off-by: Mark Phelps <209477+markphelps@users.noreply.github.com>

* chore: try to fix snapshot IT

Signed-off-by: Mark Phelps <209477+markphelps@users.noreply.github.com>

---------

Signed-off-by: Mark Phelps <209477+markphelps@users.noreply.github.com>
Co-authored-by: George <me@georgemac.com>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
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.

2 participants