mirror of
https://github.com/tiennm99/coolify.git
synced 2026-08-21 08:25:45 +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:
@@ -237,7 +237,9 @@ class Change extends Component
|
||||
if (! empty($this->clientSecretInput)) {
|
||||
$this->gitlab_app->client_secret = $this->clientSecretInput;
|
||||
}
|
||||
$this->gitlab_app->webhook_token = $this->webhookToken;
|
||||
if (! empty($this->webhookToken)) {
|
||||
$this->gitlab_app->webhook_token = $this->webhookToken;
|
||||
}
|
||||
$this->gitlab_app->group_name = $this->groupName;
|
||||
$this->gitlab_app->is_system_wide = $this->isSystemWide;
|
||||
$this->gitlab_app->private_key_id = $this->privateKeyId;
|
||||
|
||||
Reference in New Issue
Block a user