mirror of
https://github.com/tiennm99/coolify.git
synced 2026-08-21 04:24:23 +00:00
fix(security): encrypt GitLab webhook token and mask input
Webhook secret was stored and shown as plaintext. Use a password field, encrypt at rest (with legacy plaintext read support), and look up tokens via findByWebhookToken so encrypted values still authenticate webhooks.
This commit is contained in:
@@ -92,8 +92,8 @@
|
||||
</div>
|
||||
<x-forms.input readonly label="Webhook URL"
|
||||
value="{{ rtrim($this->resolvePublicBaseUrl(), '/') }}/webhooks/source/gitlab/events" />
|
||||
<x-forms.input canGate="update" :canResource="$gitlab_app" id="webhookToken" label="Webhook Secret Token"
|
||||
helper="Set this same token in your GitLab webhook's 'Secret token' field." />
|
||||
<x-forms.input canGate="update" :canResource="$gitlab_app" id="webhookToken" label="Webhook Secret Token" type="password"
|
||||
helper="Set this same token in your GitLab webhook's Secret token field. Stored encrypted." />
|
||||
</div>
|
||||
|
||||
@if ($applications->count() > 0)
|
||||
|
||||
Reference in New Issue
Block a user