feat(hook): add AllowInsecure option for TLS verification
* Introduced AllowInsecure field in Hook configuration to skip TLS certificate verification. * Updated database schema and models to support the new field. * Modified HTTP client behavior based on AllowInsecure setting.
This commit is contained in:
@@ -34,6 +34,7 @@ CREATE TABLE IF NOT EXISTS public.api_keys (
|
||||
|
||||
CREATE TABLE IF NOT EXISTS public.hooks (
|
||||
active boolean NOT NULL DEFAULT true,
|
||||
allow_insecure boolean NOT NULL DEFAULT false,
|
||||
created_at timestamp NOT NULL DEFAULT now(),
|
||||
deleted_at timestamp,
|
||||
description text,
|
||||
|
||||
@@ -47,6 +47,7 @@ Table hooks {
|
||||
headers text [note: 'JSON encoded headers']
|
||||
events text [note: 'JSON array of event types']
|
||||
active boolean [not null, default: true]
|
||||
allow_insecure boolean [not null, default: false, note: 'Skip TLS certificate verification']
|
||||
description text
|
||||
secret varchar(255) [note: 'HMAC signature secret']
|
||||
retry_count int [not null, default: 3]
|
||||
|
||||
@@ -51,6 +51,7 @@ CREATE TABLE IF NOT EXISTS hooks (
|
||||
retry_count INTEGER NOT NULL DEFAULT 3,
|
||||
timeout INTEGER NOT NULL DEFAULT 30,
|
||||
active BOOLEAN NOT NULL DEFAULT 1,
|
||||
allow_insecure BOOLEAN NOT NULL DEFAULT 0,
|
||||
created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
updated_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
deleted_at TIMESTAMP,
|
||||
|
||||
Reference in New Issue
Block a user