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

revad: Register revad-storageproviders as UNIX trusted gateways on EOS #36

Closed
ebocchi opened this issue May 2, 2022 · 5 comments
Closed

Comments

@ebocchi
Copy link
Contributor

ebocchi commented May 2, 2022

This is a manual step at the moment:

# allow the host 
eos access allow 172-17-0-9.sciencebox-storageprovider-home.default.svc.cluster.local (<FQDN of the pod running reva>)

# add gateway
eos vid add gateway 172-17-0-9.sciencebox-storageprovider-home.default.svc.cluster.local
eos vid set map -tident "*@172-17-0-9.sciencebox-storageprovider-home.default.svc.cluster.local" vuid 0 vgid 0

It should be implemented as initContainer in the revad charts. The initContainer will need:

  • The EOS sss keytab;
  • The EOS binary to issue eos access and vid commands against the MGM;
  • Some env var to know the MGM hostname.

The logic to register as trusted gateway can be inspired from https://gitlab.cern.ch/cernbox/boxed/-/blob/master/eos-storage.citrine.d/utils/configure_gateway.sh

Send a PR to the upstream repo (https://github.com/cs3org/charts/tree/master/revad) to have an option for initContainer.

@ebocchi ebocchi changed the title Register revad-storageproviders as UNIX trusted gateways on EOS revad: Register revad-storageproviders as UNIX trusted gateways on EOS May 2, 2022
@ebocchi
Copy link
Contributor Author

ebocchi commented May 3, 2022

See also: cs3org/charts#19

@ebocchi
Copy link
Contributor Author

ebocchi commented May 3, 2022

Maybe use EOS tokens?
https://eos-docs.web.cern.ch/using/tokens.html

@ebocchi
Copy link
Contributor Author

ebocchi commented May 3, 2022

Or a specific user (e.g., reva) with sudo powers on the EOS side?

@jimil749
Copy link
Contributor

@ebocchi should I close this? Currently we use sss for auth and reva is able to talk to eos just fine.

@jimil749
Copy link
Contributor

Closed w 24f872d

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

No branches or pull requests

2 participants