From 2a7bfc650acd5553b2842ffb27b451ad59464a70 Mon Sep 17 00:00:00 2001 From: vvvomit Date: Thu, 29 Oct 2026 17:26:00 +0330 Subject: [PATCH] Draupnir asks for its access token; Public community leaves it out The playbook fails validation when Draupnir has no access token (with zero-touch deploy and neither Pantalaimon nor native login), so ticking it broke the deploy, Public community's included. The token belongs to an account that can only be made once the server is up, so the preset no longer ticks it. Co-Authored-By: Claude Opus 5.5 --- internal/catalog/catalog.go | 12 ++++++++---- internal/ui/testdata/layout/homeserver-120x36.txt | 2 +- internal/ui/testdata/layout/homeserver-46x40.txt | 2 +- internal/ui/testdata/layout/homeserver-48x20.txt | 2 +- internal/ui/testdata/layout/presets-120x36.txt | 2 +- internal/ui/testdata/layout/presets-46x40.txt | 2 +- internal/ui/testdata/layout/presets-48x20.txt | 2 +- 7 files changed, 14 insertions(+), 10 deletions(-) diff --git a/internal/catalog/catalog.go b/internal/catalog/catalog.go index 9085734..a2d6f6c 100644 --- a/internal/catalog/catalog.go +++ b/internal/catalog/catalog.go @@ -328,8 +328,12 @@ var Components = []Component{ }}, {ID: "draupnir", Name: "Draupnir", Category: "Bots", EnableVar: "matrix_bot_draupnir_enabled", Description: "Moderation bot (Mjolnir successor).", Doc: "configuring-playbook-bot-draupnir.md", - Extra: map[string]string{"matrix_bot_draupnir_zero_touch_deploy": "true"}, - Fields: []Field{{Var: "matrix_bot_draupnir_config_initialManager", Label: "Initial manager MXID", Kind: Text, Required: true, Help: "e.g. @you:example.com"}}}, + Extra: map[string]string{"matrix_bot_draupnir_zero_touch_deploy": "true"}, + Fields: []Field{ + {Var: "matrix_bot_draupnir_config_initialManager", Label: "Initial manager MXID", Kind: Text, Required: true, Help: "e.g. @you:example.com"}, + {Var: "matrix_bot_draupnir_config_accessToken", Label: "Bot access token", Kind: Text, Required: true, + Help: "Of an account made for it, bot.draupnir: add it under Manage, then get a token with curl, not from Element (see the playbook's obtaining-access-tokens.md)."}, + }}, {ID: "d4a", Name: "Draupnir for all (D4A)", Category: "Bots", EnableVar: "matrix_appservice_draupnir_for_all_enabled", Description: "Draupnir in appservice mode, multiple instances.", Doc: "configuring-playbook-appservice-draupnir-for-all.md", Extra: map[string]string{"matrix_appservice_draupnir_for_all_zero_touch_deploy": "true"}, @@ -445,8 +449,8 @@ var Presets = []Preset{ "synapse", []string{"coturn", "element", "sable", "element-call", "mas", "ketesa"}, false}, {"bridges", "Bridge hub", "Telegram, WhatsApp, Signal and Discord in one place, encrypted, with your own name on the other side.", "synapse", []string{"coturn", "element", "sable", "mas", "ketesa", "double-puppet", "bridges-e2ee", "telegram", "whatsapp", "signal", "discord"}, false}, - {"community", "Public community", "Sign-up with a token through MAS, three web clients, moderation, antispam and monitoring.", - "synapse", []string{"coturn", "element", "cinny", "sable", "mas", "draupnir", "simple-antispam", "ketesa", "monitoring"}, true}, + {"community", "Public community", "Sign-up with a token through MAS, three web clients, antispam and monitoring.", + "synapse", []string{"coturn", "element", "cinny", "sable", "mas", "simple-antispam", "ketesa", "monitoring"}, true}, {"light", "Lightweight", "Tuwunel with Cinny and Sable for a Raspberry Pi or a 1 GB VPS.", "tuwunel", []string{"coturn", "cinny", "sable"}, false}, } diff --git a/internal/ui/testdata/layout/homeserver-120x36.txt b/internal/ui/testdata/layout/homeserver-120x36.txt index 8b0bcbe..1e0931e 100644 --- a/internal/ui/testdata/layout/homeserver-120x36.txt +++ b/internal/ui/testdata/layout/homeserver-120x36.txt @@ -7,7 +7,7 @@ │ ○ Settings ││ Minimal chat Synapse · 4 components │ │ ○ Review ││ Friends & family Synapse · 6 components │ │ ○ Deploy ││ Bridge hub Synapse · 11 components │ -│ ││ Public community Synapse · 9 components │ +│ ││ Public community Synapse · 8 components │ │ ▸ Manage example.org ││ Lightweight Tuwunel · 3 components │ │ ││ │ │ ▸ Mirrors ││ Or only the homeserver, and pick the components yourself │ diff --git a/internal/ui/testdata/layout/homeserver-46x40.txt b/internal/ui/testdata/layout/homeserver-46x40.txt index f4534b4..0477456 100644 --- a/internal/ui/testdata/layout/homeserver-46x40.txt +++ b/internal/ui/testdata/layout/homeserver-46x40.txt @@ -5,7 +5,7 @@ Minimal chat Synapse · 4 components Friends & family Synapse · 6 components Bridge hub Synapse · 11 components - Public community Synapse · 9 components + Public community Synapse · 8 components Lightweight Tuwunel · 3 components Or only the homeserver, and pick the diff --git a/internal/ui/testdata/layout/homeserver-48x20.txt b/internal/ui/testdata/layout/homeserver-48x20.txt index 7323e94..f3edf4b 100644 --- a/internal/ui/testdata/layout/homeserver-48x20.txt +++ b/internal/ui/testdata/layout/homeserver-48x20.txt @@ -1,7 +1,7 @@ ◢◤ 2/6 Homeserver Choose your homeserver ▲ more above - Public community Synapse · 9 components + Public community Synapse · 8 components Lightweight Tuwunel · 3 components Or only the homeserver, and pick the components yourself diff --git a/internal/ui/testdata/layout/presets-120x36.txt b/internal/ui/testdata/layout/presets-120x36.txt index e51ea44..52f4dc6 100644 --- a/internal/ui/testdata/layout/presets-120x36.txt +++ b/internal/ui/testdata/layout/presets-120x36.txt @@ -17,7 +17,7 @@ │ ▾ Servers ││ │ Calls • Element Call │ │ │ ● example.org ││ ╰────────────────────────────────────────────────────────────────────────────────╯ │ │ ││ Bridge hub Synapse · 11 components │ -│ ││ Public community Synapse · 9 components │ +│ ││ Public community Synapse · 8 components │ │ ││ Lightweight Tuwunel · 3 components │ │ ││ │ │ ││ Or only the homeserver, and pick the components yourself │ diff --git a/internal/ui/testdata/layout/presets-46x40.txt b/internal/ui/testdata/layout/presets-46x40.txt index 5ce3cd9..e796076 100644 --- a/internal/ui/testdata/layout/presets-46x40.txt +++ b/internal/ui/testdata/layout/presets-46x40.txt @@ -16,7 +16,7 @@ │ Calls • Element Call │ ╰────────────────────────────────────────╯ Bridge hub Synapse · 11 components - Public community Synapse · 9 components + Public community Synapse · 8 components Lightweight Tuwunel · 3 components Or only the homeserver, and pick the diff --git a/internal/ui/testdata/layout/presets-48x20.txt b/internal/ui/testdata/layout/presets-48x20.txt index 18e470c..949780d 100644 --- a/internal/ui/testdata/layout/presets-48x20.txt +++ b/internal/ui/testdata/layout/presets-48x20.txt @@ -5,7 +5,7 @@ › Friends & family Synapse · 6 components ● Chat plus voice and video calls, and an a… Bridge hub Synapse · 11 components - Public community Synapse · 9 components + Public community Synapse · 8 components Lightweight Tuwunel · 3 components Or only the homeserver, and pick the components yourself