migration 017 adds machine_id to agents table middleware validates X-Machine-ID header on authed routes agent client sends machine ID with requests MIN_AGENT_VERSION config defaults 0.1.22 version utils added for comparison blocks config copying attacks via hardware fingerprint old agents get 426 upgrade required breaking: <0.1.22 agents rejected
10 lines
342 B
SQL
10 lines
342 B
SQL
-- Remove agent update packages table
|
|
DROP TABLE IF EXISTS agent_update_packages;
|
|
|
|
-- Remove new columns from agents table
|
|
ALTER TABLE agents
|
|
DROP COLUMN IF EXISTS machine_id,
|
|
DROP COLUMN IF EXISTS public_key_fingerprint,
|
|
DROP COLUMN IF EXISTS is_updating,
|
|
DROP COLUMN IF EXISTS updating_to_version,
|
|
DROP COLUMN IF EXISTS update_initiated_at; |