mirror of
https://github.com/coder/coder.git
synced 2025-07-15 22:20:27 +00:00
feat: show user-auth provisioners (#14883)
Closes https://github.com/coder/coder/issues/14867 What this changes: - Displays `user-auth` grouped provisioners - Added tags to provisioners in cases where it matters <img width="1378" alt="image" src="https://github.com/user-attachments/assets/ecc8da0a-24b4-469d-99e7-aa1f183046b7"> --------- Co-authored-by: Ben Potter <ben@coder.com> Co-authored-by: McKayla Washburn <mckayla@hey.com>
This commit is contained in:
@ -147,9 +147,13 @@ func (api *API) provisionerKeyDaemons(rw http.ResponseWriter, r *http.Request) {
|
||||
|
||||
pkDaemons := []codersdk.ProvisionerKeyDaemons{}
|
||||
for _, key := range sdkKeys {
|
||||
// currently we exclude user-auth from this list
|
||||
// The key.OrganizationID for the `user-auth` key is hardcoded to
|
||||
// the default org in the database and we are overwriting it here
|
||||
// to be the correct org we used to query the list.
|
||||
// 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
|
||||
}
|
||||
daemons := []codersdk.ProvisionerDaemon{}
|
||||
for _, daemon := range recentDaemons {
|
||||
|
Reference in New Issue
Block a user