fix: show github app secrets

This commit is contained in:
Andras Bacsai
2023-07-04 13:08:27 +02:00
parent 48586d953b
commit cf0dbef3b5
4 changed files with 8 additions and 6 deletions

View File

@@ -1,3 +1,3 @@
<?php <?php
return '4.0.0-beta.16'; return '4.0.0-beta.17';

View File

@@ -32,6 +32,11 @@
</div> </div>
<div class="pt-2 pb-10 ">Your Private GitHub App for private repositories.</div> <div class="pt-2 pb-10 ">Your Private GitHub App for private repositories.</div>
@if ($github_app->app_id) @if ($github_app->app_id)
<div class="w-48">
<x-forms.checkbox noDirty label="System Wide?"
helper="If checked, this GitHub App will be available for everyone in this Coolify instance."
instantSave id="is_system_wide" />
</div>
<div class="flex gap-2"> <div class="flex gap-2">
<x-forms.input id="github_app.name" label="App Name" disabled /> <x-forms.input id="github_app.name" label="App Name" disabled />
<x-forms.input id="github_app.organization" label="Organization" disabled <x-forms.input id="github_app.organization" label="Organization" disabled
@@ -59,9 +64,6 @@
<x-forms.input id="github_app.client_secret" label="Client Secret" type="password" /> <x-forms.input id="github_app.client_secret" label="Client Secret" type="password" />
<x-forms.input id="github_app.webhook_secret" label="Webhook Secret" type="password" /> <x-forms.input id="github_app.webhook_secret" label="Webhook Secret" type="password" />
</div> </div>
<x-forms.checkbox noDirty label="System Wide?"
helper="If checked, this GitHub App will be available for everyone in this Coolify instance."
instantSave id="is_system_wide" />
@else @else
<form class="flex gap-4"> <form class="flex gap-4">
<div class="flex items-end gap-2"> <div class="flex items-end gap-2">

View File

@@ -116,7 +116,7 @@ Route::middleware(['auth'])->group(function () {
]); ]);
})->name('source.all'); })->name('source.all');
Route::get('/source/github/{github_app_uuid}', function (Request $request) { Route::get('/source/github/{github_app_uuid}', function (Request $request) {
$github_app = GithubApp::where('uuid', request()->github_app_uuid)->first(); $github_app = GithubApp::where('uuid', request()->github_app_uuid)->first()->makeVisible('client_secret')->makeVisible('webhook_secret');
$settings = InstanceSettings::get(); $settings = InstanceSettings::get();
$name = Str::of(Str::kebab($github_app->name)); $name = Str::of(Str::kebab($github_app->name));
if ($settings->public_ipv4) { if ($settings->public_ipv4) {

View File

@@ -4,7 +4,7 @@
"version": "3.12.32" "version": "3.12.32"
}, },
"v4": { "v4": {
"version": "4.0.0-beta.16" "version": "4.0.0-beta.17"
} }
} }
} }