- Notifications
You must be signed in to change notification settings - Fork1k
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
why'd you remove the inline group tags? those were part of the design, and we never talked about removing them |
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Co-authored-by: Ben Potter <ben@coder.com>
enterprise/coderd/provisionerkeys.go Outdated
// 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. | ||
ifkey.ID.String()==codersdk.ProvisionerKeyIDUserAuth { | ||
continue | ||
key.OrganizationID=organization.ID |
There was a problem hiding this comment.
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 theorganization
could be any org right? Theorganization.ID
comes from the org in the url
There was a problem hiding this comment.
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. Theuser-auth
key.OrganizationID
is hardcoded to thedefault
org in the database and we are overwriting it here. Theorganization
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 useuser-auth
would have the default org ID returned here, so we edit the fakeuser-auth
key to have the correct org here before returning it.
f0ssel commentedOct 1, 2024 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
@aslilac tags patch lgtm, |
533d655
intomainUh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Closes#14867
What this changes:
user-auth
grouped provisioners