mirror of
https://github.com/shankar0123/certctl.git
synced 2026-06-07 22:41:31 +00:00
07275bf92f
Agents now report OS, architecture, IP address, hostname, and version via heartbeat using runtime.GOOS, runtime.GOARCH, and net.Dial. New migration adds columns to agents table. Heartbeat handler, service, and repository updated to accept and persist metadata. GUI shows OS/Arch in agent list and full system info in agent detail page. Apache httpd connector: separate cert/chain/key files, apachectl configtest validation, graceful reload. HAProxy connector: combined PEM file (cert+chain+key), optional config validation, reload. Both wired into agent binary's target connector switch. 14 tests for new connectors. All existing tests updated for new Heartbeat/UpdateHeartbeat signatures. Docs updated across README, architecture, concepts, and connectors guides. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
10 lines
330 B
SQL
10 lines
330 B
SQL
-- Rollback: remove agent metadata columns
|
|
|
|
DROP INDEX IF EXISTS idx_agents_os;
|
|
DROP INDEX IF EXISTS idx_agents_architecture;
|
|
|
|
ALTER TABLE agents DROP COLUMN IF EXISTS os;
|
|
ALTER TABLE agents DROP COLUMN IF EXISTS architecture;
|
|
ALTER TABLE agents DROP COLUMN IF EXISTS ip_address;
|
|
ALTER TABLE agents DROP COLUMN IF EXISTS version;
|