more stuff

This commit is contained in:
2026-08-21 08:45:36 +02:00
parent 5e506c9921
commit ad728ba96c
12 changed files with 1148 additions and 64 deletions

View File

@ -0,0 +1,13 @@
-- Migration 0011: SSH-Passwort als Alternative zum SSH-Key (Linux-Hosts).
--
-- Analog zu rdp_credentials (ein Datensatz pro Host, Benutzername gehoert zu
-- den Zugangsdaten). Nur wirksam, wenn dem Host KEIN SSH-Key zugeordnet ist
-- -- ein zugeordneter Schluessel (host_ssh_key_map) hat beim Verbindungsaufbau
-- immer Vorrang (siehe app/ssh_proxy/proxy.py::connect_to_host).
CREATE TABLE IF NOT EXISTS ssh_password_credentials (
host_id INTEGER PRIMARY KEY REFERENCES hosts(id),
username TEXT NOT NULL,
password_enc BLOB NOT NULL,
updated_at TEXT NOT NULL DEFAULT (strftime('%Y-%m-%dT%H:%M:%fZ','now'))
);