Refactor YAML schema to support multiple authorized keys and known hosts (#463)

* add coverage for go proxy

* Refactor CLI flag name for allowed proxy addresses

* Refactor YAML schema to support multiple authorized keys and known hosts

* add testcases

* Refactor YAML schema to support multiple authorized keys and known hosts

* go fmt

* go fmt
This commit is contained in:
Boshi Lian 2024-10-20 00:20:40 -07:00 • committed by GitHub
parent 4ad8e77e3f
commit 39f5eef98b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 205 additions and 29 deletions

View file

@ -51,10 +51,30 @@
"type": "boolean"
},
"authorized_keys": {
"type": "string"
"oneOf": [
{
"type": "array",
"items": {
"type": "string"
}
},
{
"type": "string"
}
]
},
"authorized_keys_data": {
"type": "string"
"oneOf": [
{
"type": "array",
"items": {
"type": "string"
}
},
{
"type": "string"
}
]
}
},
"required": [
@ -76,7 +96,7 @@
},
"password": {
"type": "string"
},
},
"private_key": {
"type": "string"
},
@ -84,10 +104,30 @@
"type": "string"
},
"known_hosts": {
"type": "string"
"oneOf": [
{
"type": "array",
"items": {
"type": "string"
}
},
{
"type": "string"
}
]
},
"known_hosts_data": {
"type": "string"
"oneOf": [
{
"type": "array",
"items": {
"type": "string"
}
},
{
"type": "string"
}
]
}
},
"required": [
@ -95,4 +135,4 @@
]
}
}
}
}