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

Add authorisation on Fetch and Push endpoints #36

Merged
merged 1 commit into from
May 7, 2024

Conversation

tomcoldrick-ct
Copy link
Collaborator

Currently we support the authentication policies from bb-storage by way of using
the common gRPC server, but we don't allow for granular authorisation on our
endpoints! This adds the ability to configure authorizers (as in other
Buildbarn components) to the two endpoints we expose.

These are added at the top-level of configuration to simplify use, even though
one could technically expose this as a configuration option to decorate fetchers
and asset stores. In particular, a single global fetch authorizer is much
simpler than having to configure a policy for remote fetching and fetching from
assets that were explicitly Push'd.

@tomcoldrick-ct tomcoldrick-ct marked this pull request as draft March 12, 2024 12:39
@tomcoldrick-ct tomcoldrick-ct force-pushed the coldtom/authorizer branch 2 times, most recently from 8f3b71d to 61e6972 Compare March 20, 2024 08:43
@tomcoldrick-ct tomcoldrick-ct marked this pull request as ready for review March 20, 2024 09:26
@jjardon
Copy link
Collaborator

jjardon commented Mar 29, 2024

Hey @EdSchouten ; would it be possible to get a review of this?

@mortenmj
Copy link
Collaborator

@tomcoldrick-ct if you could fix this up with the latest changes in master, I'd be happy to get it merged

Currently we support the authentication policies from bb-storage by way of using
the common gRPC server, but we don't allow for granular authorisation on our
endpoints!  This adds the ability to configure authorizers (as in other
Buildbarn components) to the two endpoints we expose.

These are added at the top-level of configuration to simplify use, even though
one could technically expose this as a configuration option to decorate fetchers
and asset stores.  In particular, a single global fetch authorizer is much
simpler than having to configure a policy for remote fetching and fetching from
assets that were explicitly Push'd.
@mortenmj mortenmj merged commit 8fb4f07 into master May 7, 2024
1 check passed
@mortenmj
Copy link
Collaborator

mortenmj commented May 7, 2024

@tomcoldrick-ct Thank you very much!

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 this pull request may close these issues.

4 participants