Types an installation cannot offer, such as Docker on shared cloud checkers, can be switched off in the admin panel. They are not offered in the editor or accepted by the API for new monitors or type changes; existing monitors keep running and stay editable. The setting lives in a new platform_settings table and reaches every replica at once through the versioned cache. GET /api/v1/org/check-types lists what is offered. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017GpWAskjmYtZpuQ5JwYTX3
18 lines
680 B
SQL
18 lines
680 B
SQL
-- +goose Up
|
|
-- Settings of the whole installation, changed by platform admins.
|
|
CREATE TABLE platform_settings (
|
|
key text PRIMARY KEY,
|
|
value jsonb NOT NULL,
|
|
updated_at timestamptz NOT NULL DEFAULT now()
|
|
);
|
|
|
|
ALTER TABLE platform_settings ENABLE ROW LEVEL SECURITY;
|
|
ALTER TABLE platform_settings FORCE ROW LEVEL SECURITY;
|
|
-- Every organization may read them; they say what the installation offers.
|
|
CREATE POLICY platform_settings_read ON platform_settings FOR SELECT USING (true);
|
|
CREATE POLICY platform_settings_write ON platform_settings FOR ALL
|
|
USING (app_scope_system()) WITH CHECK (app_scope_system());
|
|
|
|
-- +goose Down
|
|
DROP TABLE platform_settings;
|