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

authz: silo endpoints #936

Merged
merged 1 commit into from
Apr 19, 2022
Merged

authz: silo endpoints #936

merged 1 commit into from
Apr 19, 2022

Conversation

davepacheco
Copy link
Collaborator

@davepacheco davepacheco commented Apr 15, 2022

This adds authz protection to the silo public API endpoints.

@davepacheco davepacheco marked this pull request as ready for review April 15, 2022 20:23
@davepacheco davepacheco requested a review from jmpesp April 15, 2022 20:23
@davepacheco davepacheco mentioned this pull request Apr 15, 2022
71 tasks
Copy link
Contributor

@plotnick plotnick left a comment

Choose a reason for hiding this comment

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

authz all the things!

use crate::db::{
self,
error::{public_error_from_diesel_pool, ErrorHandler, TransactionError},
model::{
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we just use model::* here?

Copy link
Contributor

@david-crespo david-crespo Apr 19, 2022

Choose a reason for hiding this comment

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

In other files I like importing model and then using the models qualified with model::. However in this file there isn't much opportunity for confusion, so I also like model::*.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I don't have much opinion. I'd be happy to use model:: here as well. But I'm not going to do it in this change -- it'd be a lot of extra delta.

@davepacheco davepacheco merged commit 1019643 into main Apr 19, 2022
@davepacheco davepacheco deleted the silo-authz branch April 19, 2022 16:54
davepacheco added a commit that referenced this pull request Apr 19, 2022
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