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

Consider deferring authentication to another crate #92

Open
djc opened this issue Oct 13, 2021 · 3 comments
Open

Consider deferring authentication to another crate #92

djc opened this issue Oct 13, 2021 · 3 comments

Comments

@djc
Copy link
Contributor

djc commented Oct 13, 2021

I've used (and contributed to) the gcp_auth crate, which IMO is a pretty nice and simple way to deal with authentication/authorization for GCP. Maybe it would be nice to keep this crate focused on specific Cloud Storage APIs and integrate with it (or another existing crate) for authn/authz?

@ThouCheese
Copy link
Owner

Right that sounds feasible. As a contributor, do you have an idea about how we could best integrate such a library?

@djc
Copy link
Contributor Author

djc commented Jan 23, 2022

I noticed that it's not completely straightforward because you need access to a service account's private key, so the gcp_auth API would likely need to be extended somehow. Meanwhile, we found some issues with large uploads (larger than 1 GB) in this library, and I think we will switch to using tonic to call gRPC APIs directly.

@djc
Copy link
Contributor Author

djc commented Jan 25, 2022

I think djc/gcp_auth#49 provides the necessary interfaces so that you could use it for authentication and for signing (with a much simpler interface).

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