Thanks to visit codestin.com
Credit goes to github.com

Skip to content

feat: show user-auth provisioners #14883

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

Merged
merged 9 commits into from
Oct 1, 2024
Merged

Conversation

f0ssel
Copy link
Contributor

@f0ssel f0ssel commented Sep 30, 2024

Closes #14867

What this changes:

  • Displays user-auth grouped provisioners
  • Added tags to provisioners in cases where it matters
image

@f0ssel f0ssel marked this pull request as ready for review September 30, 2024 19:22
@f0ssel f0ssel requested review from aslilac and Emyrk September 30, 2024 19:22
@aslilac
Copy link
Member

aslilac commented Sep 30, 2024

why'd you remove the inline group tags? those were part of the design, and we never talked about removing them

Comment on lines 150 to 154
// Currently the user-auth key orgID is hardcoded to the default org.
// This will be changed when we update the `user-auth` keys to be
// directly tied to a user ID.
if key.ID.String() == codersdk.ProvisionerKeyIDUserAuth {
continue
key.OrganizationID = organization.ID
Copy link
Member

Choose a reason for hiding this comment

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

This says the default org, but the organization could be any org right? The organization.ID comes from the org in the url

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Comment is confusing and will update it. The user-auth key.OrganizationID is hardcoded to the default org in the database and we are overwriting it here. The organization is valid here because it's the ID we use to query the list to begin with. It's just that for provisioners in the non-default org that use user-auth would have the default org ID returned here, so we edit the fake user-auth key to have the correct org here before returning it.

@f0ssel
Copy link
Contributor Author

f0ssel commented Oct 1, 2024

@aslilac tags patch lgtm, would you mind updating the screenshot of the page nvm I got it. Feel free to approve whenever you are ready, thanks

@f0ssel f0ssel merged commit 533d655 into main Oct 1, 2024
35 checks passed
@f0ssel f0ssel deleted the f0ssel/user-auth-provisioners branch October 1, 2024 17:12
@github-actions github-actions bot locked and limited conversation to collaborators Oct 1, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Provisioners started by user account do not show up in provisioners UI
4 participants