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

storage.modify scope not honoured by scitokens-cpp #27

Closed
andreaceccanti opened this issue Apr 9, 2020 · 14 comments · Fixed by #31
Closed

storage.modify scope not honoured by scitokens-cpp #27

andreaceccanti opened this issue Apr 9, 2020 · 14 comments · Fixed by #31

Comments

@andreaceccanti
Copy link

Hi,

while testing scope-based authz support in XRootD with @dciangot and @riccardodimaria we noticed that the scitokens library is not compliant with the WLCG profile. The storage.modify scope, in particular, is not honoured. Probably the cause of this is the following code:

if (me->m_validate_profile == SciToken::Profile::COMPAT &&

There's no "storage.write" scope in the WLCG profile.

And probably this shows up only in compatibility mode, which is however used by default IIUC.

@andreaceccanti andreaceccanti changed the title storage.modify scope not honoured by scitokens-cpp storage.modify scope not honoured by scitokens-cpp Apr 9, 2020
@andreaceccanti
Copy link
Author

Hi @bbockelm, can you comment on this?

@andreaceccanti
Copy link
Author

@bbockelm kind reminder.

@djw8605
Copy link
Contributor

djw8605 commented May 18, 2020

Hi, We are looking into this with the change in #30 . We are reviewing the change now.

@andreaceccanti
Copy link
Author

Hi,
this is a blocker for the ESCAPE testbed.
Is there any progress?

@djw8605
Copy link
Contributor

djw8605 commented Jun 18, 2020

You are right, storage.modify is not honored. How would storage.modify be mapped to read/write? Should it be considered a "write" authorization?

@andreaceccanti
Copy link
Author

You can see the precise definition on what's expected from storage.modify here:

https://github.com/WLCG-AuthZ-WG/CommonJWTProfile/blob/master/profile.md#capability-based-authorization-scope

@djw8605
Copy link
Contributor

djw8605 commented Jun 19, 2020

Right, I read the definition the other day as well. But I'm curious what the scitokens-cpp library should do? The library primarily translates from the WLCG token profile to the SciTokens profile. In this case, it would simply translate the storage.modify to write access. Does that sound correct to you? If that's the case, it should be a simple change to add storage.modify = (SciTokens) write.

@bbockelm
Copy link
Contributor

@djw8605 - Xavi bumped me on this.

Indeed, I think we should just map WLCG's storage.modify -> write internally. Can you do the change and crank a release?

@djw8605
Copy link
Contributor

djw8605 commented Jun 23, 2020

Ok, can do. @andreaceccanti where do you get scitokens-cpp from? EPEL or OSG? EPEL has a bit of a delay due to testing and karma.

@riccardodimaria
Copy link

I personally get it from EPEL. Are you recommending to use OSG?

@djw8605
Copy link
Contributor

djw8605 commented Jun 24, 2020

Nope, EPEL is fine. I'll push the update this morning and reply here when it is done.

@andreaceccanti
Copy link
Author

@djw8605 Typically EPEL, but a fast track OSG repo will work fine for our testbed, thanks!

djw8605 added a commit to djw8605/scitokens-cpp that referenced this issue Jun 24, 2020
@djw8605
Copy link
Contributor

djw8605 commented Jun 24, 2020

The builds are now in testing for EPEL:
EL8: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2020-34e9284c7a
EL7: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2020-805503deaa

Please leave positive karma if it works for you.

@dciangot
Copy link

dciangot commented Jul 2, 2020

Hi, I can confirm that now everything works as expected. Thanks!

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 a pull request may close this issue.

5 participants