-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[nexus] Split authn/authz and db-fixed-data into new crates (#5849)
As a part of the ongoing effort to split Nexus into smaller pieces, this PR splits out two new crates: - `nexus-auth` takes the contents of `nexus/db-queries/src/auth{n,z}`, as well as `nexus/db-queries/src/context.rs`, and separates this logic into a new bespoke crate. Although this crate **does** have a dependency on the datastore itself, it only actually invokes a single method, and can be abstracted via a new trait, defined in `nexus/auth/storage`. - `nexus-db-fixed-data` takes the contents of `nexus/db-queries/src/db/fixed-data` and separates this logic into a new crate.
- Loading branch information
Showing
69 changed files
with
800 additions
and
605 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
[package] | ||
name = "nexus-auth" | ||
version = "0.1.0" | ||
edition = "2021" | ||
license = "MPL-2.0" | ||
|
||
[lints] | ||
workspace = true | ||
|
||
[build-dependencies] | ||
omicron-rpaths.workspace = true | ||
|
||
[dependencies] | ||
anyhow.workspace = true | ||
async-trait.workspace = true | ||
base64.workspace = true | ||
chrono.workspace = true | ||
cookie.workspace = true | ||
dropshot.workspace = true | ||
futures.workspace = true | ||
headers.workspace = true | ||
http.workspace = true | ||
hyper.workspace = true | ||
newtype_derive.workspace = true | ||
# See omicron-rpaths for more about the "pq-sys" dependency. | ||
pq-sys = "*" | ||
once_cell.workspace = true | ||
openssl.workspace = true | ||
oso.workspace = true | ||
samael.workspace = true | ||
serde.workspace = true | ||
serde_urlencoded.workspace = true | ||
slog.workspace = true | ||
strum.workspace = true | ||
thiserror.workspace = true | ||
tokio = { workspace = true, features = ["full"] } | ||
uuid.workspace = true | ||
|
||
authz-macros.workspace = true | ||
nexus-db-fixed-data.workspace = true | ||
nexus-db-model.workspace = true | ||
nexus-types.workspace = true | ||
omicron-common.workspace = true | ||
omicron-uuid-kinds.workspace = true | ||
omicron-workspace-hack.workspace = true | ||
|
||
[dev-dependencies] | ||
omicron-test-utils.workspace = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
// This Source Code Form is subject to the terms of the Mozilla Public | ||
// License, v. 2.0. If a copy of the MPL was not distributed with this | ||
// file, You can obtain one at https://mozilla.org/MPL/2.0/. | ||
|
||
// See omicron-rpaths for documentation. | ||
// NOTE: This file MUST be kept in sync with the other build.rs files in this | ||
// repository. | ||
fn main() { | ||
omicron_rpaths::configure_default_omicron_rpaths(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
Oops, something went wrong.