Skip to content

spoof authn should look up the user's silo#1090

Merged
davepacheco merged 9 commits into
mainfrom
spoof-silo
May 19, 2022
Merged

spoof authn should look up the user's silo#1090
davepacheco merged 9 commits into
mainfrom
spoof-silo

Conversation

@davepacheco

Copy link
Copy Markdown
Collaborator

While working on #1087 I noticed that the spoof authn mechanism always assumes that the specified Silo User exists and is in the default Silo. It should instead look up the given Silo User and use their real Silo id. This will become important when we have tests that create multiple Silos with users in each Silo. Without this change, such tests would fail in confusing ways because even though a user was created in Silo B, we'd be treating them as though they were in Silo A.

This is still "draft" because it depends on #1087. (It's also not tested yet.)

@davepacheco davepacheco requested a review from david-crespo May 19, 2022 04:31
@davepacheco davepacheco mentioned this pull request May 19, 2022
69 tasks
Comment thread nexus/src/app/session.rs
| Error::Forbidden
| Error::InternalError { .. }
| Error::ServiceUnavailable { .. }
| Error::MethodNotAllowed { .. } => {

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.

I assume you're not using a catch-all here to make sure any new cases are handled explicitly?

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.

Yup!

Base automatically changed from remove-unprivileged to main May 19, 2022 20:05
@davepacheco davepacheco marked this pull request as ready for review May 19, 2022 20:54
@davepacheco davepacheco enabled auto-merge (squash) May 19, 2022 20:58
@davepacheco davepacheco merged commit 2924bba into main May 19, 2022
@davepacheco davepacheco deleted the spoof-silo branch May 19, 2022 21:39
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.

2 participants