14 lines
638 B
SQL
14 lines
638 B
SQL
-- 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'))
|
|
);
|