Skip to content

Conversation

@david-crespo
Copy link
Collaborator

@david-crespo david-crespo commented Jun 3, 2025

Built on top of oxidecomputer/omicron#8231, so that needs to merge and then we need to bump the API here to a main commit.


My tokens page is very straightforward — all you can do is list and delete, and those operations are extremely simple.

image

Extra messaging in confirmation explaining what happens when you kill a token:

image

Tooltip on id column explaining that it is not the token itself.

image

Moved to #2834

Access page is a little harder — any silo viewer can see this value, and that's basically everyone, but only silo admins can edit it. We don't have a good way to detect who is a silo admin. For fleet viewer, we hit an endpoint and see if it 403s. I was thinking maybe we should add fleet_role and silo_role fields to the /v1/me response — that would make this easy. Not sure if there's good stopgap for v15, or maybe we should just take this page out and leave it to the CLI for now.

image

@vercel
Copy link

vercel bot commented Jun 3, 2025

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

Name Status Preview Updated (UTC)
console ✅ Ready (Inspect) Visit Preview Jun 4, 2025 4:33pm

@benjaminleonard
Copy link
Contributor

benjaminleonard commented Jun 3, 2025

We're best leaving out the access setting part. In part because of the permissions issue, but also that design will change, whereas the table is likely to stay as it is.

@david-crespo david-crespo changed the title Manage my access tokens + view silo max token TTL List and delete my access tokens Jun 3, 2025
</NavLinkItem>
<NavLinkItem to={pb.siloAccess()}>
<Access16Icon /> Access
<Access16Icon /> Silo Access
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I kept these renames from the silo access page changes because they're easy wins.

@david-crespo
Copy link
Collaborator Author

Not my favorite docs popover copy, but I felt it was important to be clear that you can't create tokens from this page, as I think the user would expect that you can. I don't see why we can't add that in the future.

image

@david-crespo david-crespo marked this pull request as ready for review June 3, 2025 15:53
@david-crespo david-crespo requested a review from charliepark June 3, 2025 15:54
@david-crespo
Copy link
Collaborator Author

@david-crespo david-crespo disabled auto-merge June 4, 2025 17:33
@david-crespo david-crespo merged commit e891f96 into main Jun 4, 2025
15 of 17 checks passed
@david-crespo david-crespo deleted the access-token-pages branch June 4, 2025 17:33
david-crespo added a commit to oxidecomputer/omicron that referenced this pull request Jun 4, 2025
oxidecomputer/console@46e244f...e891f96

* [e891f968](oxidecomputer/console@e891f968) oxidecomputer/console#2833
* [f2584554](oxidecomputer/console@f2584554) oxidecomputer/console#2832
* [a186ae6f](oxidecomputer/console@a186ae6f) oxidecomputer/console#2825
* [a480ca7f](oxidecomputer/console@a480ca7f) tools: api-diff: switch from difftastic to delta
* [ad05de96](oxidecomputer/console@ad05de96) tools: api-diff comment fix
* [77d5849d](oxidecomputer/console@77d5849d) tools: fix api-diff to get more precise PR base commit
* [f8c05f20](oxidecomputer/console@f8c05f20) oxidecomputer/console#2808
* [50a84bc1](oxidecomputer/console@50a84bc1) bump omicron to latest main for webhook secret timestamp
david-crespo added a commit to oxidecomputer/omicron that referenced this pull request Jun 4, 2025
oxidecomputer/console@46e244f...e891f96

* [e891f968](oxidecomputer/console@e891f968)
oxidecomputer/console#2833
* [f2584554](oxidecomputer/console@f2584554)
oxidecomputer/console#2832
* [a186ae6f](oxidecomputer/console@a186ae6f)
oxidecomputer/console#2825
* [a480ca7f](oxidecomputer/console@a480ca7f)
tools: api-diff: switch from difftastic to delta
* [ad05de96](oxidecomputer/console@ad05de96)
tools: api-diff comment fix
* [77d5849d](oxidecomputer/console@77d5849d)
tools: fix api-diff to get more precise PR base commit
* [f8c05f20](oxidecomputer/console@f8c05f20)
oxidecomputer/console#2808
* [50a84bc1](oxidecomputer/console@50a84bc1)
bump omicron to latest main for webhook secret timestamp
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.

4 participants