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 and use built-in users for OMDB #7062

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

last-genius
Copy link

[nexus] Create read-write and read-only built-in users for OMDB

As described and suggested in #6600, create two built-in users to
replace the test user for OMDB's purposes. Follows USER_INTERNAL_API and its
read-only counterpart.


[omdb] Use properly authenticated OpContext

Use OMDB-specific users for establishing DB connections and doing DB queries.
Use the read-only user by default, only use the read-write user when the
"--destructive" argument is provided.

As described and suggested in oxidecomputer#6600, create two built-in users to
replace the test user for OMDB's purposes. Follows USER_INTERNAL_API and its
read-only counterpart.

Signed-off-by: Andriy Sultanov <[email protected]>
Use OMDB-specific users for establishing DB connections and doing DB queries.
Use the read-only user by default, only use the read-write user when the
"--destructive" argument is provided.

Signed-off-by: Andriy Sultanov <[email protected]>
@last-genius
Copy link
Author

Hypothetically, these changes should mean that the code referenced in the original issue could be removed:

OMDB commands to reimplement queries that exist in nexus-db-queries, or requiring nexus-db-queries to provide both authenticated and unauthenticated versions of its queries...

But I am not familiar enough with the codebase to recognize what duplication could be dropped.

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.

1 participant