mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-26 18:31:52 +00:00
* wip ssh feature * add and remove complete, list remains * list half way done * should finish the ssh module completely * minor fixes * formatting and offline queries Co-authored-by: Aiden McClelland <me@drbonez.dev>
239 lines
5.2 KiB
JSON
239 lines
5.2 KiB
JSON
{
|
|
"db": "SQLite",
|
|
"06f2423bb5f9b9520cc3cf010132a5cb6157cccdcdb6b8a5695261fa7434f176": {
|
|
"query": "INSERT INTO ssh_keys (fingerprint, openssh_pubkey, created_at) VALUES (?, ?, datetime('now'))",
|
|
"describe": {
|
|
"columns": [],
|
|
"parameters": {
|
|
"Right": 2
|
|
},
|
|
"nullable": []
|
|
}
|
|
},
|
|
"118d59de5cf930d5a3b5667b2220e9a3d593bd84276beb2b76c93b2694b0fd72": {
|
|
"query": "INSERT INTO session (id, user_agent, metadata) VALUES (?, ?, ?)",
|
|
"describe": {
|
|
"columns": [],
|
|
"parameters": {
|
|
"Right": 3
|
|
},
|
|
"nullable": []
|
|
}
|
|
},
|
|
"121a1c1c0c11c5588c17bbd9b2baeca4d27d1a6d82d6487fad142ffb58d1da0c": {
|
|
"query": "INSERT INTO tor (package, interface, key) VALUES (?, ?, ?)",
|
|
"describe": {
|
|
"columns": [],
|
|
"parameters": {
|
|
"Right": 3
|
|
},
|
|
"nullable": []
|
|
}
|
|
},
|
|
"18aa5fba13df20495611fbbf7cb331f4b6da5b906148e0d9565905d3bb10071c": {
|
|
"query": "SELECT logged_out FROM session WHERE id = ?",
|
|
"describe": {
|
|
"columns": [
|
|
{
|
|
"name": "logged_out",
|
|
"ordinal": 0,
|
|
"type_info": "Datetime"
|
|
}
|
|
],
|
|
"parameters": {
|
|
"Right": 1
|
|
},
|
|
"nullable": [
|
|
true
|
|
]
|
|
}
|
|
},
|
|
"2932aa02735b6422fca4ba889abfb3de8598178d4690076dc278898753d9df62": {
|
|
"query": "UPDATE session SET logged_out = CURRENT_TIMESTAMP WHERE id = ?",
|
|
"describe": {
|
|
"columns": [],
|
|
"parameters": {
|
|
"Right": 1
|
|
},
|
|
"nullable": []
|
|
}
|
|
},
|
|
"3efd0daa61f4f8bead1adbe78a8225bc31fb940406d0415b578d3adc03a5e414": {
|
|
"query": "SELECT hash FROM password",
|
|
"describe": {
|
|
"columns": [
|
|
{
|
|
"name": "hash",
|
|
"ordinal": 0,
|
|
"type_info": "Text"
|
|
}
|
|
],
|
|
"parameters": {
|
|
"Right": 0
|
|
},
|
|
"nullable": [
|
|
false
|
|
]
|
|
}
|
|
},
|
|
"4691e3a2ce80b59009ac17124f54f925f61dc5ea371903e62cdffa5d7b67ca96": {
|
|
"query": "SELECT * FROM session WHERE logged_out IS NULL OR logged_out > CURRENT_TIMESTAMP",
|
|
"describe": {
|
|
"columns": [
|
|
{
|
|
"name": "id",
|
|
"ordinal": 0,
|
|
"type_info": "Text"
|
|
},
|
|
{
|
|
"name": "logged_in",
|
|
"ordinal": 1,
|
|
"type_info": "Datetime"
|
|
},
|
|
{
|
|
"name": "logged_out",
|
|
"ordinal": 2,
|
|
"type_info": "Datetime"
|
|
},
|
|
{
|
|
"name": "last_active",
|
|
"ordinal": 3,
|
|
"type_info": "Datetime"
|
|
},
|
|
{
|
|
"name": "user_agent",
|
|
"ordinal": 4,
|
|
"type_info": "Text"
|
|
},
|
|
{
|
|
"name": "metadata",
|
|
"ordinal": 5,
|
|
"type_info": "Text"
|
|
}
|
|
],
|
|
"parameters": {
|
|
"Right": 0
|
|
},
|
|
"nullable": [
|
|
false,
|
|
false,
|
|
true,
|
|
false,
|
|
true,
|
|
false
|
|
]
|
|
}
|
|
},
|
|
"6440354d73a67c041ea29508b43b5f309d45837a44f1a562051ad540d894c7d6": {
|
|
"query": "DELETE FROM ssh_keys WHERE fingerprint = ?",
|
|
"describe": {
|
|
"columns": [],
|
|
"parameters": {
|
|
"Right": 1
|
|
},
|
|
"nullable": []
|
|
}
|
|
},
|
|
"8595651866e7db772260bd79e19d55b7271fd795b82a99821c935a9237c1aa16": {
|
|
"query": "SELECT interface, key FROM tor WHERE package = ?",
|
|
"describe": {
|
|
"columns": [
|
|
{
|
|
"name": "interface",
|
|
"ordinal": 0,
|
|
"type_info": "Text"
|
|
},
|
|
{
|
|
"name": "key",
|
|
"ordinal": 1,
|
|
"type_info": "Blob"
|
|
}
|
|
],
|
|
"parameters": {
|
|
"Right": 1
|
|
},
|
|
"nullable": [
|
|
false,
|
|
false
|
|
]
|
|
}
|
|
},
|
|
"a6b0c8909a3a5d6d9156aebfb359424e6b5a1d1402e028219e21726f1ebd282e": {
|
|
"query": "SELECT fingerprint, openssh_pubkey, created_at FROM ssh_keys",
|
|
"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"
|
|
}
|
|
],
|
|
"parameters": {
|
|
"Right": 0
|
|
},
|
|
"nullable": [
|
|
false,
|
|
false,
|
|
false
|
|
]
|
|
}
|
|
},
|
|
"d5117054072476377f3c4f040ea429d4c9b2cf534e76f35c80a2bf60e8599cca": {
|
|
"query": "SELECT openssh_pubkey FROM ssh_keys",
|
|
"describe": {
|
|
"columns": [
|
|
{
|
|
"name": "openssh_pubkey",
|
|
"ordinal": 0,
|
|
"type_info": "Text"
|
|
}
|
|
],
|
|
"parameters": {
|
|
"Right": 0
|
|
},
|
|
"nullable": [
|
|
false
|
|
]
|
|
}
|
|
},
|
|
"de2a5e90798d606047ab8180c044baac05469c0cdf151316bd58ee8c7196fdef": {
|
|
"query": "SELECT * FROM ssh_keys WHERE fingerprint = ?",
|
|
"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"
|
|
}
|
|
],
|
|
"parameters": {
|
|
"Right": 1
|
|
},
|
|
"nullable": [
|
|
false,
|
|
false,
|
|
false
|
|
]
|
|
}
|
|
}
|
|
} |