mirror of
https://github.com/coder/coder.git
synced 2025-07-13 21:36:50 +00:00
chore: enforce that provisioners can only acquire jobs in their own organization (#12600)
* chore: add org ID as optional param to AcquireJob * chore: plumb through organization id to provisioner daemons * add org id to provisioner domain key * enforce org id argument * dbgen provisioner jobs defaults to default org
This commit is contained in:
@ -317,6 +317,7 @@ func (api *API) provisionerDaemonServe(rw http.ResponseWriter, r *http.Request)
|
||||
srvCtx,
|
||||
api.AccessURL,
|
||||
daemon.ID,
|
||||
organization.ID,
|
||||
logger,
|
||||
provisioners,
|
||||
tags,
|
||||
|
Reference in New Issue
Block a user