-
Notifications
You must be signed in to change notification settings - Fork 241
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
Standard authorization for backbeat routes #5714
base: development/8.8
Are you sure you want to change the base?
Conversation
Today, authorization results are not used. It is because before having implicit denies, we would have an AccessDenied directly. To be consistent, we must pass the authorization results. We thus allow the bucket policies and ACLs to be processed. Unit tests are added to cover all existing routes. Routes themselves are not direectly tested, only the router logic. We must first add tests for backbeat routes before merging more logic with the normal router. Issue: CLDSRV-591
Hello williamlardier,My role is to assist you with the merge of this Available options
Available commands
Status report is not available. |
Incorrect fix versionThe
Considering where you are trying to merge, I ignored possible hotfix versions and I expected to find:
Please check the |
f2523ac
to
8200a2e
Compare
8200a2e
to
86b0544
Compare
Waiting for approvalThe following approvals are needed before I can proceed with the merge:
|
c3b007f
to
fa4422a
Compare
- Also split backbeat routers - Better use the callback functions - Do not return twice to the client in case of error and quota evaluation (finalizer hooks) - Remove account quota from backbeat proxy route: as not used in this case. Issue: CLDSRV-591
fa4422a
to
decfc8f
Compare
Incorrect fix versionThe
Considering where you are trying to merge, I ignored possible hotfix versions and I expected to find:
Please check the |
- Update old ones - Fix some tests not compatible with existing code, after confirming the changes were expected - Do not run the tests with azure/aws real backend in some cases, because the backends are either not healthy, or the tests doesn't work. To be done separately. Issue: CLDSRV-591
- To be re-enabled if we want to keep these tests - We also have a LocationNotFound error from AWS client, although properly configured in the location config file... Issue: CLDSRV-591
ccd6116
to
a21ea94
Compare
- The bucket cleaning might not work during js tests, and can be expected - In such case, the java test should not enforce strict number of bucket, but use the existing number when starting... Issue: CLDSRV-591
967ffc1
to
20412bc
Compare
- Same as java test, the scenario should never assume what the environment is, when the resources are shared. Issue: CLDSRV-591
Better review commit per commit
The goal here is to handle the authorization from the IAM module in the backbeat routes, and not rely on implicit deny === access denied, as this is not true anymore.
By doing so, we centralize the logic with all S3 APIs, and introduce some unit test to complete the functional tests from
tests/multipleBackend/routes/routeBackbeat.js
Current state: functional tests for the ceph test suite and the ones using a real azure/aws/gcp are still not running because they were disabled long time ago, and the resources are not existing anymore, some are still there, but it will be done in a separate ticket.