Skip to content

authz: silo endpoints#936

Merged
davepacheco merged 1 commit into
mainfrom
silo-authz
Apr 19, 2022
Merged

authz: silo endpoints#936
davepacheco merged 1 commit into
mainfrom
silo-authz

Conversation

@davepacheco

@davepacheco davepacheco commented Apr 15, 2022

Copy link
Copy Markdown
Collaborator

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

@plotnick plotnick left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

authz all the things!

Comment thread nexus/src/db/datastore.rs
use crate::db::{
self,
error::{public_error_from_diesel_pool, ErrorHandler, TransactionError},
model::{

Copy link
Copy Markdown
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?

@david-crespo david-crespo Apr 19, 2022

Copy link
Copy Markdown
Contributor

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
Copy Markdown
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