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

Update role assignment for /users listing silo users without names #981

Merged
merged 2 commits into from
Jun 27, 2022

Conversation

david-crespo
Copy link
Collaborator

@david-crespo david-crespo commented Jun 27, 2022

oxidecomputer/omicron#1261 changes /users so it lists silo users instead of system users, which is what we need. The problem is those users have no names (yet). So for now instead of doing the manual association of users to names I had been doing for system users, now we just drop '' in there as a placeholder and do everything by UUID. We will have names eventually.

Testing against real Nexus

This change also allowed me to test that role assignment actually behaves the way you would think. Nexus by default starts out with a "privileged" user who has admin on everything and an "unprivileged" user who can't see anything. I tested the following and everything works as expected:

  1. User P creates org and project
  2. User UP can't list orgs in silo, can't fetch individual org or project
  3. P adds UP as viewer of org
  4. UP still can't list orgs (this is a list children perm on the silo) but can now fetch the org directly and list projects, still can't create a project in the org
  5. P changes UP to collaborator on org
  6. UP can now create a project in the org

@vercel
Copy link

vercel bot commented Jun 27, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
console-ui-storybook ✅ Ready (Inspect) Visit Preview Jun 27, 2022 at 9:27PM (UTC)

@david-crespo david-crespo merged commit 0e55bdd into main Jun 27, 2022
@david-crespo david-crespo deleted the user-without-a-name branch June 27, 2022 21:47
benjaminleonard added a commit that referenced this pull request Jun 28, 2022
* Tweaking to match updated buttons in design system #862

* Tweak to match new taxonomy

* remove @types/react-table, it was for v7

* Update role assignment for /users listing silo users without names (#981)

* remove names from role assignment, use ID for everything

* put back empty string as name

* Reverse side modal button order (#980)

* simplify SideModal.Footer

* Project switcher (#973)

* basic project switcher w/ ugly but liveable styling

* little e2e test for the switcher

* fix mysterious shrinking header space

* filter out current project

* Setting page title #949 (#976)

* Setting page title #949

* Add react-helmet types

* don't use helmet, add title checks to breadcrumbs e2e

Co-authored-by: David Crespo <[email protected]>

* Remove default color for form buttons

* Fix button type errors

Co-authored-by: David Crespo <[email protected]>
Co-authored-by: David Crespo <[email protected]>
Co-authored-by: Justin Bennett <[email protected]>
david-crespo added a commit that referenced this pull request Jun 28, 2022
* Underline on hover and use semibold for table links

* Use abbreviated timeAgo fn

@david-crespo is this okay to use?

* Remove last breadcrumb item

@david-crespo any unintended consequences from doing it like this?

* Increase text size of pagination

* Fix properties table not 50/50

* Border and spacing around more actions button

* Tweak dropdown to better match Figma

* Fix CI breaking - href is no longer optional

* Fix react-table update breaking vercel deploy

* Dropdown animation (only works on first open)

* Previous class did nuffink

* Bot commit: format with prettier

* Tweaking to match updated buttons in design system #862 (#979)

* Tweaking to match updated buttons in design system #862

* Tweak to match new taxonomy

* remove @types/react-table, it was for v7

* Update role assignment for /users listing silo users without names (#981)

* remove names from role assignment, use ID for everything

* put back empty string as name

* Reverse side modal button order (#980)

* simplify SideModal.Footer

* Project switcher (#973)

* basic project switcher w/ ugly but liveable styling

* little e2e test for the switcher

* fix mysterious shrinking header space

* filter out current project

* Setting page title #949 (#976)

* Setting page title #949

* Add react-helmet types

* don't use helmet, add title checks to breadcrumbs e2e

Co-authored-by: David Crespo <[email protected]>

* Remove default color for form buttons

* Fix button type errors

Co-authored-by: David Crespo <[email protected]>
Co-authored-by: David Crespo <[email protected]>
Co-authored-by: Justin Bennett <[email protected]>

* Fix breadcrumb tests and last crumb removal improvements

* Style toast to match Figma

* Increase tappable area, remove unnecessary `ox-btn` styles

* Closer match to Figma input

* Improve listbox styling

* Better overflow behaviour for sidenav #751

* Match new navigation project switcher and handle long project names

* Ensure query table gets menu classnames

* Fix serial console route

* Fix low contrast dropdown

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: David Crespo <[email protected]>
Co-authored-by: David Crespo <[email protected]>
Co-authored-by: Justin Bennett <[email protected]>
Co-authored-by: Justin Bennett <[email protected]>
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