mirror of
https://github.com/coollabsio/coolify.git
synced 2026-11-04 10:42:23 +00:00
fix(storage): require deploy permission for external host writes
Require deploy or root token access when creating managed mounts outside resource directories or changing their file contents through the API. Synchronize KeyDB and Dragonfly passwords with local and shared REDIS_PASSWORD values while preserving secret manager resolution.
This commit is contained in:
1 parent
2aead9c914
commit
4227ec6ebf
25 files changed
+863
-128
No files matched your search
@@ -316,10 +316,15 @@ class Github extends Controller
|
||||
? GithubRunnerExecution::query()->where('github_app_id', $githubApp->id)->where('runner_name', $runnerName)->first()
|
||||
: null;
|
||||
|
||||
if ($action === 'in_progress' && $execution && in_array($execution->status, [GithubRunnerStatus::Provisioning, GithubRunnerStatus::Idle], true)) {
|
||||
$execution->update([...$jobDetails, 'status' => GithubRunnerStatus::Running, 'started_at' => now()]);
|
||||
|
||||
return response('Runner marked running.');
|
||||
// The completed hook can arrive before the in_progress hook.
|
||||
if (in_array($action, ['in_progress', 'completed'], true) && $execution && in_array($execution->status, [GithubRunnerStatus::Provisioning, GithubRunnerStatus::Idle], true)) {
|
||||
$replacement = $execution->assignJob($jobId, $jobDetails);
|
||||
if ($replacement) {
|
||||
ProvisionGithubRunnerJob::dispatch($replacement->id);
|
||||
}
|
||||
if ($action === 'in_progress') {
|
||||
return response('Runner marked running.');
|
||||
}
|
||||
}
|
||||
|
||||
if ($action === 'completed') {
|
||||
|
||||
Reference in new issue
Block a user