Move setup wizard credentials to database storage

Changes setup wizard to save channel secrets (Telegram bot token, HTTP
webhook secret) to PostgreSQL via SecretsStore instead of files.

This enables the WASM channel credential injector to find and inject
the secrets properly, since it reads from the database.

Requires:
- DATABASE_URL to be set
- SECRETS_MASTER_KEY (will generate and display if not set)

Co-Authored-By: Claude Opus 4.5 <[email protected]>
This commit is contained in:
Illia Polosukhin
2026-02-04 09:49:11 -08:00
co-authored by Claude Opus 4.5
parent c7f0e8014d
commit 4ab20ff939
3 changed files with 180 additions and 119 deletions
+1 -1
View File
@@ -18,6 +18,6 @@ mod channels;
mod prompts;
mod wizard;
pub use channels::{setup_http, setup_telegram, validate_telegram_token};
pub use channels::{SecretsContext, setup_http, setup_telegram, validate_telegram_token};
pub use prompts::{confirm, print_header, print_step, secret_input, select_many, select_one};
pub use wizard::{SetupConfig, SetupWizard};