mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-26 02:11:53 +00:00
* refactor networking and account * add interfaces from manifest automatically * use nistp256 to satisfy firefox * use ed25519 if available * fix ip signing * fix SQL error * update prettytable to fix segfault * fix migration * fix migration * bump welcome-ack * add redirect if connecting to https over http * misc rebase fixes * fix compression * bump rustc version
744 lines
17 KiB
JSON
744 lines
17 KiB
JSON
{
|
|
"db": "PostgreSQL",
|
|
"1ce5254f27de971fd87f5ab66d300f2b22433c86617a0dbf796bf2170186dd2e": {
|
|
"describe": {
|
|
"columns": [],
|
|
"nullable": [],
|
|
"parameters": {
|
|
"Left": [
|
|
"Text",
|
|
"Text",
|
|
"Bytea"
|
|
]
|
|
}
|
|
},
|
|
"query": "INSERT INTO network_keys (package, interface, key) VALUES ($1, $2, $3) ON CONFLICT (package, interface) DO NOTHING"
|
|
},
|
|
"21471490cdc3adb206274cc68e1ea745ffa5da4479478c1fd2158a45324b1930": {
|
|
"describe": {
|
|
"columns": [],
|
|
"nullable": [],
|
|
"parameters": {
|
|
"Left": [
|
|
"Text"
|
|
]
|
|
}
|
|
},
|
|
"query": "DELETE FROM ssh_keys WHERE fingerprint = $1"
|
|
},
|
|
"28ea34bbde836e0618c5fc9bb7c36e463c20c841a7d6a0eb15be0f24f4a928ec": {
|
|
"describe": {
|
|
"columns": [
|
|
{
|
|
"name": "hostname",
|
|
"ordinal": 0,
|
|
"type_info": "Text"
|
|
},
|
|
{
|
|
"name": "path",
|
|
"ordinal": 1,
|
|
"type_info": "Text"
|
|
},
|
|
{
|
|
"name": "username",
|
|
"ordinal": 2,
|
|
"type_info": "Text"
|
|
},
|
|
{
|
|
"name": "password",
|
|
"ordinal": 3,
|
|
"type_info": "Text"
|
|
}
|
|
],
|
|
"nullable": [
|
|
false,
|
|
false,
|
|
false,
|
|
true
|
|
],
|
|
"parameters": {
|
|
"Left": [
|
|
"Int4"
|
|
]
|
|
}
|
|
},
|
|
"query": "SELECT hostname, path, username, password FROM cifs_shares WHERE id = $1"
|
|
},
|
|
"4099028a5c0de578255bf54a67cef6cb0f1e9a4e158260700f1639dd4b438997": {
|
|
"describe": {
|
|
"columns": [
|
|
{
|
|
"name": "fingerprint",
|
|
"ordinal": 0,
|
|
"type_info": "Text"
|
|
},
|
|
{
|
|
"name": "openssh_pubkey",
|
|
"ordinal": 1,
|
|
"type_info": "Text"
|
|
},
|
|
{
|
|
"name": "created_at",
|
|
"ordinal": 2,
|
|
"type_info": "Text"
|
|
}
|
|
],
|
|
"nullable": [
|
|
false,
|
|
false,
|
|
false
|
|
],
|
|
"parameters": {
|
|
"Left": [
|
|
"Text"
|
|
]
|
|
}
|
|
},
|
|
"query": "SELECT * FROM ssh_keys WHERE fingerprint = $1"
|
|
},
|
|
"4691e3a2ce80b59009ac17124f54f925f61dc5ea371903e62cdffa5d7b67ca96": {
|
|
"describe": {
|
|
"columns": [
|
|
{
|
|
"name": "id",
|
|
"ordinal": 0,
|
|
"type_info": "Text"
|
|
},
|
|
{
|
|
"name": "logged_in",
|
|
"ordinal": 1,
|
|
"type_info": "Timestamp"
|
|
},
|
|
{
|
|
"name": "logged_out",
|
|
"ordinal": 2,
|
|
"type_info": "Timestamp"
|
|
},
|
|
{
|
|
"name": "last_active",
|
|
"ordinal": 3,
|
|
"type_info": "Timestamp"
|
|
},
|
|
{
|
|
"name": "user_agent",
|
|
"ordinal": 4,
|
|
"type_info": "Text"
|
|
},
|
|
{
|
|
"name": "metadata",
|
|
"ordinal": 5,
|
|
"type_info": "Text"
|
|
}
|
|
],
|
|
"nullable": [
|
|
false,
|
|
false,
|
|
true,
|
|
false,
|
|
true,
|
|
false
|
|
],
|
|
"parameters": {
|
|
"Left": []
|
|
}
|
|
},
|
|
"query": "SELECT * FROM session WHERE logged_out IS NULL OR logged_out > CURRENT_TIMESTAMP"
|
|
},
|
|
"4bcfbefb1eb3181343871a1cd7fc3afb81c2be5c681cfa8b4be0ce70610e9c3a": {
|
|
"describe": {
|
|
"columns": [],
|
|
"nullable": [],
|
|
"parameters": {
|
|
"Left": [
|
|
"Text"
|
|
]
|
|
}
|
|
},
|
|
"query": "UPDATE session SET logged_out = CURRENT_TIMESTAMP WHERE id = $1"
|
|
},
|
|
"629be61c3c341c131ddbbff0293a83dbc6afd07cae69d246987f62cf0cc35c2a": {
|
|
"describe": {
|
|
"columns": [
|
|
{
|
|
"name": "password",
|
|
"ordinal": 0,
|
|
"type_info": "Text"
|
|
}
|
|
],
|
|
"nullable": [
|
|
false
|
|
],
|
|
"parameters": {
|
|
"Left": []
|
|
}
|
|
},
|
|
"query": "SELECT password FROM account"
|
|
},
|
|
"687688055e63d27123cdc89a5bbbd8361776290a9411d527eaf1fdb40bef399d": {
|
|
"describe": {
|
|
"columns": [
|
|
{
|
|
"name": "key",
|
|
"ordinal": 0,
|
|
"type_info": "Bytea"
|
|
}
|
|
],
|
|
"nullable": [
|
|
false
|
|
],
|
|
"parameters": {
|
|
"Left": [
|
|
"Text",
|
|
"Text"
|
|
]
|
|
}
|
|
},
|
|
"query": "SELECT key FROM tor WHERE package = $1 AND interface = $2"
|
|
},
|
|
"6d35ccf780fb2bb62586dd1d3df9c1550a41ee580dad3f49d35cb843ebef10ca": {
|
|
"describe": {
|
|
"columns": [],
|
|
"nullable": [],
|
|
"parameters": {
|
|
"Left": [
|
|
"Text"
|
|
]
|
|
}
|
|
},
|
|
"query": "UPDATE session SET last_active = CURRENT_TIMESTAMP WHERE id = $1 AND logged_out IS NULL OR logged_out > CURRENT_TIMESTAMP"
|
|
},
|
|
"770c1017734720453dc87b58c385b987c5af5807151ff71a59000014586752e0": {
|
|
"describe": {
|
|
"columns": [
|
|
{
|
|
"name": "key",
|
|
"ordinal": 0,
|
|
"type_info": "Bytea"
|
|
}
|
|
],
|
|
"nullable": [
|
|
false
|
|
],
|
|
"parameters": {
|
|
"Left": [
|
|
"Text",
|
|
"Text",
|
|
"Bytea"
|
|
]
|
|
}
|
|
},
|
|
"query": "INSERT INTO network_keys (package, interface, key) VALUES ($1, $2, $3) ON CONFLICT (package, interface) DO UPDATE SET package = EXCLUDED.package RETURNING key"
|
|
},
|
|
"7b64f032d507e8ffe37c41f4c7ad514a66c421a11ab04c26d89a7aa8f6b67210": {
|
|
"describe": {
|
|
"columns": [
|
|
{
|
|
"name": "id",
|
|
"ordinal": 0,
|
|
"type_info": "Int4"
|
|
},
|
|
{
|
|
"name": "package_id",
|
|
"ordinal": 1,
|
|
"type_info": "Text"
|
|
},
|
|
{
|
|
"name": "created_at",
|
|
"ordinal": 2,
|
|
"type_info": "Timestamp"
|
|
},
|
|
{
|
|
"name": "code",
|
|
"ordinal": 3,
|
|
"type_info": "Int4"
|
|
},
|
|
{
|
|
"name": "level",
|
|
"ordinal": 4,
|
|
"type_info": "Text"
|
|
},
|
|
{
|
|
"name": "title",
|
|
"ordinal": 5,
|
|
"type_info": "Text"
|
|
},
|
|
{
|
|
"name": "message",
|
|
"ordinal": 6,
|
|
"type_info": "Text"
|
|
},
|
|
{
|
|
"name": "data",
|
|
"ordinal": 7,
|
|
"type_info": "Text"
|
|
}
|
|
],
|
|
"nullable": [
|
|
false,
|
|
true,
|
|
false,
|
|
false,
|
|
false,
|
|
false,
|
|
false,
|
|
true
|
|
],
|
|
"parameters": {
|
|
"Left": [
|
|
"Int4",
|
|
"Int8"
|
|
]
|
|
}
|
|
},
|
|
"query": "SELECT id, package_id, created_at, code, level, title, message, data FROM notifications WHERE id < $1 ORDER BY id DESC LIMIT $2"
|
|
},
|
|
"7c7a3549c997eb75bf964ea65fbb98a73045adf618696cd838d79203ef5383fb": {
|
|
"describe": {
|
|
"columns": [],
|
|
"nullable": [],
|
|
"parameters": {
|
|
"Left": [
|
|
"Text",
|
|
"Text",
|
|
"Text",
|
|
"Bytea",
|
|
"Text",
|
|
"Text"
|
|
]
|
|
}
|
|
},
|
|
"query": "\n INSERT INTO account (\n id,\n server_id,\n hostname,\n password,\n network_key,\n root_ca_key_pem,\n root_ca_cert_pem\n ) VALUES (\n 0, $1, $2, $3, $4, $5, $6\n ) ON CONFLICT (id) DO UPDATE SET\n server_id = EXCLUDED.server_id,\n hostname = EXCLUDED.hostname,\n password = EXCLUDED.password,\n network_key = EXCLUDED.network_key,\n root_ca_key_pem = EXCLUDED.root_ca_key_pem,\n root_ca_cert_pem = EXCLUDED.root_ca_cert_pem\n "
|
|
},
|
|
"7e0649d839927e57fa03ee51a2c9f96a8bdb0fc97ee8a3c6df1069e1e2b98576": {
|
|
"describe": {
|
|
"columns": [],
|
|
"nullable": [],
|
|
"parameters": {
|
|
"Left": [
|
|
"Text"
|
|
]
|
|
}
|
|
},
|
|
"query": "DELETE FROM tor WHERE package = $1"
|
|
},
|
|
"8951b9126fbf60dbb5997241e11e3526b70bccf3e407327917294a993bc17ed5": {
|
|
"describe": {
|
|
"columns": [],
|
|
"nullable": [],
|
|
"parameters": {
|
|
"Left": [
|
|
"Text",
|
|
"Text",
|
|
"Bytea"
|
|
]
|
|
}
|
|
},
|
|
"query": "INSERT INTO tor (package, interface, key) VALUES ($1, $2, $3) ON CONFLICT (package, interface) DO NOTHING"
|
|
},
|
|
"94d471bb374b4965c6cbedf8c17bbf6bea226d38efaf6559923c79a36d5ca08c": {
|
|
"describe": {
|
|
"columns": [
|
|
{
|
|
"name": "id",
|
|
"ordinal": 0,
|
|
"type_info": "Int4"
|
|
},
|
|
{
|
|
"name": "package_id",
|
|
"ordinal": 1,
|
|
"type_info": "Text"
|
|
},
|
|
{
|
|
"name": "created_at",
|
|
"ordinal": 2,
|
|
"type_info": "Timestamp"
|
|
},
|
|
{
|
|
"name": "code",
|
|
"ordinal": 3,
|
|
"type_info": "Int4"
|
|
},
|
|
{
|
|
"name": "level",
|
|
"ordinal": 4,
|
|
"type_info": "Text"
|
|
},
|
|
{
|
|
"name": "title",
|
|
"ordinal": 5,
|
|
"type_info": "Text"
|
|
},
|
|
{
|
|
"name": "message",
|
|
"ordinal": 6,
|
|
"type_info": "Text"
|
|
},
|
|
{
|
|
"name": "data",
|
|
"ordinal": 7,
|
|
"type_info": "Text"
|
|
}
|
|
],
|
|
"nullable": [
|
|
false,
|
|
true,
|
|
false,
|
|
false,
|
|
false,
|
|
false,
|
|
false,
|
|
true
|
|
],
|
|
"parameters": {
|
|
"Left": [
|
|
"Int8"
|
|
]
|
|
}
|
|
},
|
|
"query": "SELECT id, package_id, created_at, code, level, title, message, data FROM notifications ORDER BY id DESC LIMIT $1"
|
|
},
|
|
"95c4ab4c645f3302568c6ff13d85ab58252362694cf0f56999bf60194d20583a": {
|
|
"describe": {
|
|
"columns": [
|
|
{
|
|
"name": "id",
|
|
"ordinal": 0,
|
|
"type_info": "Int4"
|
|
},
|
|
{
|
|
"name": "hostname",
|
|
"ordinal": 1,
|
|
"type_info": "Text"
|
|
},
|
|
{
|
|
"name": "path",
|
|
"ordinal": 2,
|
|
"type_info": "Text"
|
|
},
|
|
{
|
|
"name": "username",
|
|
"ordinal": 3,
|
|
"type_info": "Text"
|
|
},
|
|
{
|
|
"name": "password",
|
|
"ordinal": 4,
|
|
"type_info": "Text"
|
|
}
|
|
],
|
|
"nullable": [
|
|
false,
|
|
false,
|
|
false,
|
|
false,
|
|
true
|
|
],
|
|
"parameters": {
|
|
"Left": []
|
|
}
|
|
},
|
|
"query": "SELECT id, hostname, path, username, password FROM cifs_shares"
|
|
},
|
|
"a60d6e66719325b08dc4ecfacaf337527233c84eee758ac9be967906e5841d27": {
|
|
"describe": {
|
|
"columns": [],
|
|
"nullable": [],
|
|
"parameters": {
|
|
"Left": [
|
|
"Int4"
|
|
]
|
|
}
|
|
},
|
|
"query": "DELETE FROM cifs_shares WHERE id = $1"
|
|
},
|
|
"a6b0c8909a3a5d6d9156aebfb359424e6b5a1d1402e028219e21726f1ebd282e": {
|
|
"describe": {
|
|
"columns": [
|
|
{
|
|
"name": "fingerprint",
|
|
"ordinal": 0,
|
|
"type_info": "Text"
|
|
},
|
|
{
|
|
"name": "openssh_pubkey",
|
|
"ordinal": 1,
|
|
"type_info": "Text"
|
|
},
|
|
{
|
|
"name": "created_at",
|
|
"ordinal": 2,
|
|
"type_info": "Text"
|
|
}
|
|
],
|
|
"nullable": [
|
|
false,
|
|
false,
|
|
false
|
|
],
|
|
"parameters": {
|
|
"Left": []
|
|
}
|
|
},
|
|
"query": "SELECT fingerprint, openssh_pubkey, created_at FROM ssh_keys"
|
|
},
|
|
"b1147beaaabbed89f2ab8c1e13ec4393a9a8fde2833cf096af766a979d94dee6": {
|
|
"describe": {
|
|
"columns": [],
|
|
"nullable": [],
|
|
"parameters": {
|
|
"Left": [
|
|
"Text",
|
|
"Text",
|
|
"Text",
|
|
"Text",
|
|
"Int4"
|
|
]
|
|
}
|
|
},
|
|
"query": "UPDATE cifs_shares SET hostname = $1, path = $2, username = $3, password = $4 WHERE id = $5"
|
|
},
|
|
"d5117054072476377f3c4f040ea429d4c9b2cf534e76f35c80a2bf60e8599cca": {
|
|
"describe": {
|
|
"columns": [
|
|
{
|
|
"name": "openssh_pubkey",
|
|
"ordinal": 0,
|
|
"type_info": "Text"
|
|
}
|
|
],
|
|
"nullable": [
|
|
false
|
|
],
|
|
"parameters": {
|
|
"Left": []
|
|
}
|
|
},
|
|
"query": "SELECT openssh_pubkey FROM ssh_keys"
|
|
},
|
|
"da71f94b29798d1738d2b10b9a721ea72db8cfb362e7181c8226d9297507c62b": {
|
|
"describe": {
|
|
"columns": [],
|
|
"nullable": [],
|
|
"parameters": {
|
|
"Left": [
|
|
"Text",
|
|
"Int4",
|
|
"Text",
|
|
"Text",
|
|
"Text",
|
|
"Text"
|
|
]
|
|
}
|
|
},
|
|
"query": "INSERT INTO notifications (package_id, code, level, title, message, data) VALUES ($1, $2, $3, $4, $5, $6)"
|
|
},
|
|
"e185203cf84e43b801dfb23b4159e34aeaef1154dcd3d6811ab504915497ccf7": {
|
|
"describe": {
|
|
"columns": [],
|
|
"nullable": [],
|
|
"parameters": {
|
|
"Left": [
|
|
"Int4"
|
|
]
|
|
}
|
|
},
|
|
"query": "DELETE FROM notifications WHERE id = $1"
|
|
},
|
|
"e545696735f202f9d13cf22a561f3ff3f9aed7f90027a9ba97634bcb47d772f0": {
|
|
"describe": {
|
|
"columns": [
|
|
{
|
|
"name": "tor_key",
|
|
"ordinal": 0,
|
|
"type_info": "Bytea"
|
|
}
|
|
],
|
|
"nullable": [
|
|
true
|
|
],
|
|
"parameters": {
|
|
"Left": []
|
|
}
|
|
},
|
|
"query": "SELECT tor_key FROM account WHERE id = 0"
|
|
},
|
|
"e5843c5b0e7819b29aa1abf2266799bd4f82e761837b526a0972c3d4439a264d": {
|
|
"describe": {
|
|
"columns": [],
|
|
"nullable": [],
|
|
"parameters": {
|
|
"Left": [
|
|
"Text",
|
|
"Text",
|
|
"Text"
|
|
]
|
|
}
|
|
},
|
|
"query": "INSERT INTO session (id, user_agent, metadata) VALUES ($1, $2, $3)"
|
|
},
|
|
"e95322a8e2ae3b93f1e974b24c0b81803f1e9ec9e8ebbf15cafddfc1c5a028ed": {
|
|
"describe": {
|
|
"columns": [
|
|
{
|
|
"name": "package",
|
|
"ordinal": 0,
|
|
"type_info": "Text"
|
|
},
|
|
{
|
|
"name": "interface",
|
|
"ordinal": 1,
|
|
"type_info": "Text"
|
|
},
|
|
{
|
|
"name": "key",
|
|
"ordinal": 2,
|
|
"type_info": "Bytea"
|
|
},
|
|
{
|
|
"name": "tor_key?",
|
|
"ordinal": 3,
|
|
"type_info": "Bytea"
|
|
}
|
|
],
|
|
"nullable": [
|
|
false,
|
|
false,
|
|
false,
|
|
false
|
|
],
|
|
"parameters": {
|
|
"Left": [
|
|
"Text"
|
|
]
|
|
}
|
|
},
|
|
"query": "\n SELECT\n network_keys.package,\n network_keys.interface,\n network_keys.key,\n tor.key AS \"tor_key?\"\n FROM\n network_keys\n LEFT JOIN\n tor\n ON\n network_keys.package = tor.package\n AND\n network_keys.interface = tor.interface\n WHERE\n network_keys.package = $1\n "
|
|
},
|
|
"eb750adaa305bdbf3c5b70aaf59139c7b7569602adb58f2d6b3a94da4f167b0a": {
|
|
"describe": {
|
|
"columns": [],
|
|
"nullable": [],
|
|
"parameters": {
|
|
"Left": [
|
|
"Int4"
|
|
]
|
|
}
|
|
},
|
|
"query": "DELETE FROM notifications WHERE id < $1"
|
|
},
|
|
"ecc765d8205c0876956f95f76944ac6a5f34dd820c4073b7728c7067aab9fded": {
|
|
"describe": {
|
|
"columns": [
|
|
{
|
|
"name": "id",
|
|
"ordinal": 0,
|
|
"type_info": "Int4"
|
|
}
|
|
],
|
|
"nullable": [
|
|
false
|
|
],
|
|
"parameters": {
|
|
"Left": [
|
|
"Text",
|
|
"Text",
|
|
"Text",
|
|
"Text"
|
|
]
|
|
}
|
|
},
|
|
"query": "INSERT INTO cifs_shares (hostname, path, username, password) VALUES ($1, $2, $3, $4) RETURNING id"
|
|
},
|
|
"f6d1c5ef0f9d9577bea8382318967b9deb46da75788c7fe6082b43821c22d556": {
|
|
"describe": {
|
|
"columns": [],
|
|
"nullable": [],
|
|
"parameters": {
|
|
"Left": [
|
|
"Text",
|
|
"Text",
|
|
"Text"
|
|
]
|
|
}
|
|
},
|
|
"query": "INSERT INTO ssh_keys (fingerprint, openssh_pubkey, created_at) VALUES ($1, $2, $3)"
|
|
},
|
|
"f7d2dae84613bcef330f7403352cc96547f3f6dbec11bf2eadfaf53ad8ab51b5": {
|
|
"describe": {
|
|
"columns": [
|
|
{
|
|
"name": "network_key",
|
|
"ordinal": 0,
|
|
"type_info": "Bytea"
|
|
}
|
|
],
|
|
"nullable": [
|
|
false
|
|
],
|
|
"parameters": {
|
|
"Left": []
|
|
}
|
|
},
|
|
"query": "SELECT network_key FROM account WHERE id = 0"
|
|
},
|
|
"fe6e4f09f3028e5b6b6259e86cbad285680ce157aae9d7837ac020c8b2945e7f": {
|
|
"describe": {
|
|
"columns": [
|
|
{
|
|
"name": "id",
|
|
"ordinal": 0,
|
|
"type_info": "Int4"
|
|
},
|
|
{
|
|
"name": "password",
|
|
"ordinal": 1,
|
|
"type_info": "Text"
|
|
},
|
|
{
|
|
"name": "tor_key",
|
|
"ordinal": 2,
|
|
"type_info": "Bytea"
|
|
},
|
|
{
|
|
"name": "server_id",
|
|
"ordinal": 3,
|
|
"type_info": "Text"
|
|
},
|
|
{
|
|
"name": "hostname",
|
|
"ordinal": 4,
|
|
"type_info": "Text"
|
|
},
|
|
{
|
|
"name": "network_key",
|
|
"ordinal": 5,
|
|
"type_info": "Bytea"
|
|
},
|
|
{
|
|
"name": "root_ca_key_pem",
|
|
"ordinal": 6,
|
|
"type_info": "Text"
|
|
},
|
|
{
|
|
"name": "root_ca_cert_pem",
|
|
"ordinal": 7,
|
|
"type_info": "Text"
|
|
}
|
|
],
|
|
"nullable": [
|
|
false,
|
|
false,
|
|
true,
|
|
true,
|
|
true,
|
|
false,
|
|
false,
|
|
false
|
|
],
|
|
"parameters": {
|
|
"Left": []
|
|
}
|
|
},
|
|
"query": "SELECT * FROM account WHERE id = 0"
|
|
}
|
|
} |