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 authorization via central OPA instance #1

Merged
merged 20 commits into from
Dec 16, 2024
Merged

Add authorization via central OPA instance #1

merged 20 commits into from
Dec 16, 2024

Conversation

tpoliaw
Copy link
Collaborator

@tpoliaw tpoliaw commented Nov 4, 2024

No description provided.

callumforrester
callumforrester previously approved these changes Dec 9, 2024
Copy link
Contributor

@callumforrester callumforrester left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This makes sense to me, it would be good if we could add tests and/or prescribe a way to test it offline

src/graphql.rs Outdated Show resolved Hide resolved
@callumforrester
Copy link
Contributor

@tpoliaw I suggest we get this merged before #13 and then I'll adjust that

@tpoliaw
Copy link
Collaborator Author

tpoliaw commented Dec 10, 2024

@tpoliaw I suggest we get this merged before #13 and then I'll adjust that

Sure, I'm still scattering tests over it but it should be good to go in soon

src/graphql/auth.rs Outdated Show resolved Hide resolved
Copy link
Contributor

@callumforrester callumforrester left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm happy I understand these changes although my understanding of OPA et al. is still limited

tpoliaw and others added 14 commits December 16, 2024 10:41
Allows the host to be configurable via CLI/env
As the central admin rules do not provide a convenient single endpoint,
we're now using the 'ad-hoc query' endpoint and taking the required
queries as user provided configuration.
Requires new rules on central OPA instance but allows all logic to be
reduced to a single yes/no response.
Now there are no return types to handle there is no need to separate
the admin and access versions.
@tpoliaw tpoliaw merged commit cd9df8c into main Dec 16, 2024
4 checks passed
@tpoliaw tpoliaw deleted the auth branch December 16, 2024 10:58
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.

3 participants