2016-07-19 16:21:01 +00:00
|
|
|
table_name("user_ssh_keys")
|
2017-05-25 19:43:58 +00:00
|
|
|
description("Returns the private keys in the users ~/.ssh directory and whether or not they are encrypted.")
|
2016-07-19 16:21:01 +00:00
|
|
|
schema([
|
|
|
|
Column("uid", BIGINT, "The local user that owns the key file",
|
|
|
|
additional=True),
|
2017-04-13 04:48:28 +00:00
|
|
|
Column("path", TEXT, "Path to key file", index=True),
|
2016-07-19 16:21:01 +00:00
|
|
|
Column("encrypted", INTEGER, "1 if key is encrypted, 0 otherwise"),
|
|
|
|
ForeignKey(column="uid", table="users"),
|
|
|
|
])
|
2017-10-06 15:45:49 +00:00
|
|
|
attributes(user_data=True, no_pkey=True)
|
2016-07-19 16:21:01 +00:00
|
|
|
implementation("user_ssh_keys@getUserSshKeys")
|
2017-10-06 15:45:49 +00:00
|
|
|
examples([
|
|
|
|
"select * from users join user_ssh_keys using (uid) where encrypted = 0",
|
|
|
|
])
|
2016-09-14 03:37:31 +00:00
|
|
|
fuzz_paths([
|
|
|
|
"/home",
|
|
|
|
"/Users",
|
|
|
|
])
|