mirror of
https://github.com/semaphoreui/semaphore.git
synced 2025-01-20 15:29:28 +01:00
fix(runners): pass vault key
This commit is contained in:
parent
6fa3e50198
commit
0304e7cac3
@ -71,6 +71,10 @@ func GetRunner(w http.ResponseWriter, r *http.Request) {
|
|||||||
data.AccessKeys[*tsk.Inventory.BecomeKeyID] = tsk.Inventory.BecomeKey
|
data.AccessKeys[*tsk.Inventory.BecomeKeyID] = tsk.Inventory.BecomeKey
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if tsk.Template.VaultKeyID != nil {
|
||||||
|
data.AccessKeys[*tsk.Template.VaultKeyID] = tsk.Template.VaultKey
|
||||||
|
}
|
||||||
|
|
||||||
data.AccessKeys[tsk.Repository.SSHKeyID] = tsk.Repository.SSHKey
|
data.AccessKeys[tsk.Repository.SSHKeyID] = tsk.Repository.SSHKey
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
@ -419,6 +419,10 @@ func (p *JobPool) checkNewJobs() {
|
|||||||
taskRunner.job.Inventory.BecomeKey = response.AccessKeys[*taskRunner.job.Inventory.BecomeKeyID]
|
taskRunner.job.Inventory.BecomeKey = response.AccessKeys[*taskRunner.job.Inventory.BecomeKeyID]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if taskRunner.job.Template.VaultKeyID != nil {
|
||||||
|
taskRunner.job.Template.VaultKey = response.AccessKeys[*taskRunner.job.Template.VaultKeyID]
|
||||||
|
}
|
||||||
|
|
||||||
p.queue = append(p.queue, &taskRunner)
|
p.queue = append(p.queue, &taskRunner)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user