mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
chore: remove multi-organization and custom role experiment (#14862)
Closes https://github.com/coder/coder/issues/14704 --------- Co-authored-by: Kayla Washburn-Love <mckayla@hey.com>
This commit is contained in:
co-authored by
Kayla Washburn-Love
parent
339eebacae
commit
2c8b264d78
@@ -20,10 +20,9 @@ func ProvisionerDaemonAuthenticated(r *http.Request) bool {
|
||||
}
|
||||
|
||||
type ExtractProvisionerAuthConfig struct {
|
||||
DB database.Store
|
||||
Optional bool
|
||||
PSK string
|
||||
MultiOrgEnabled bool
|
||||
DB database.Store
|
||||
Optional bool
|
||||
PSK string
|
||||
}
|
||||
|
||||
func ExtractProvisionerDaemonAuthenticated(opts ExtractProvisionerAuthConfig) func(next http.Handler) http.Handler {
|
||||
@@ -39,18 +38,6 @@ func ExtractProvisionerDaemonAuthenticated(opts ExtractProvisionerAuthConfig) fu
|
||||
httpapi.Write(ctx, w, code, response)
|
||||
}
|
||||
|
||||
if !opts.MultiOrgEnabled {
|
||||
if opts.PSK == "" {
|
||||
handleOptional(http.StatusUnauthorized, codersdk.Response{
|
||||
Message: "External provisioner daemons not enabled",
|
||||
})
|
||||
return
|
||||
}
|
||||
|
||||
fallbackToPSK(ctx, opts.PSK, next, w, r, handleOptional)
|
||||
return
|
||||
}
|
||||
|
||||
psk := r.Header.Get(codersdk.ProvisionerDaemonPSK)
|
||||
key := r.Header.Get(codersdk.ProvisionerDaemonKey)
|
||||
if key == "" {
|
||||
|
||||
Reference in New Issue
Block a user