feat(alerting): Plan 01 — outbound HTTP infra + admin-managed outbound connections #139

Merged
hsiegeln merged 22 commits from feat/alerting-01-outbound-infra into main 2026-04-20 08:57:41 +02:00
3 changed files with 7 additions and 7 deletions
Showing only changes of commit 380ccb102b - Show all commits

View File

@@ -21,9 +21,9 @@ CREATE TABLE outbound_connections (
auth_config jsonb NOT NULL DEFAULT '{}',
allowed_environment_ids uuid[] NOT NULL DEFAULT '{}',
created_at timestamptz NOT NULL DEFAULT now(),
created_by uuid NOT NULL REFERENCES users(id),
created_by text NOT NULL REFERENCES users(user_id),
updated_at timestamptz NOT NULL DEFAULT now(),
updated_by uuid NOT NULL REFERENCES users(id),
updated_by text NOT NULL REFERENCES users(user_id),
CONSTRAINT outbound_connections_name_unique_per_tenant UNIQUE (tenant_id, name)
);

View File

@@ -22,9 +22,9 @@ public record OutboundConnection(
OutboundAuth auth,
List<UUID> allowedEnvironmentIds,
Instant createdAt,
UUID createdBy,
String createdBy,
Instant updatedAt,
UUID updatedBy
String updatedBy
) {
public OutboundConnection {
defaultHeaders = defaultHeaders == null ? Map.of() : Map.copyOf(defaultHeaders);

View File

@@ -4,9 +4,9 @@ import java.util.List;
import java.util.UUID;
public interface OutboundConnectionService {
OutboundConnection create(OutboundConnection draft, UUID actingUserId);
OutboundConnection update(UUID id, OutboundConnection draft, UUID actingUserId);
void delete(UUID id, UUID actingUserId);
OutboundConnection create(OutboundConnection draft, String actingUserId);
OutboundConnection update(UUID id, OutboundConnection draft, String actingUserId);
void delete(UUID id, String actingUserId);
OutboundConnection get(UUID id);
List<OutboundConnection> list();
List<UUID> rulesReferencing(UUID id);