Add more path authorization enforced tests #40
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR was requested during a DOMA BDT meeting, following the discussion in issue WLCG-AuthZ-WG/common-jwt-profile#21.
Here more path authorization enforced tests are added, in particular
In this case we check that a GET HTTP request returns a forbidden status on the existing resource
/wlcg-jwt-compliance/<uuid>/foobar
with a bearer token that has astorage.read:/foobar
scopeThis test is excluded from the CI (i.e. is not present in the summary email report) since I guess is still under discussion. What we're testing is that a
storage.read:/foobar/
scope allows to read into an existing/foobar
directory, whilestorage.read:/foo/
andstorage.read:/foobar
forbids to read into that directory (obviously this test will never success if test 1 above passes as well).The tests number 2 and 4 are the ones that breaks the fully compliance of XRootD and StoRM WebDAV sites, thus they have been tagged as
not-critical
(while the remaining ones arecritical
). In this way one can filter the test report by tag to check directly the result.The summary tests report of this PR is available here.