more stuff
This commit is contained in:
13
app/db/migrations/0011_ssh_password_credentials.sql
Normal file
13
app/db/migrations/0011_ssh_password_credentials.sql
Normal 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'))
|
||||
);
|
||||
Reference in New Issue
Block a user