Merge pull request #7545 from dokku/let-sshcommand-validate

feat: delegate authorized_keys file validation to sshcommand
This commit is contained in:
Jose Diaz-Gonzalez authored and GitHub committed 2025-02-26 09:34:08 -06:00
commit 156861c34a
2 files changed
+4 -5

No files matched your search

+4 -4
View File
@@ -42,10 +42,10 @@
}, },
{ {
"name": "sshcommand", "name": "sshcommand",
"version": "0.18.0", "version": "0.19.0",
"urls": { "urls": {
"amd64": "https://github.com/dokku/sshcommand/releases/download/v0.18.0/sshcommand", "amd64": "https://github.com/dokku/sshcommand/releases/download/v0.19.0/sshcommand",
"arm64": "https://github.com/dokku/sshcommand/releases/download/v0.18.0/sshcommand" "arm64": "https://github.com/dokku/sshcommand/releases/download/v0.19.0/sshcommand"
} }
} }
], ],
@@ -93,4 +93,4 @@
} }
} }
] ]
} }
-1
View File
@@ -23,7 +23,6 @@ cmd-ssh-keys-list() {
FORMAT="" FORMAT=""
fi fi
verify_ssh_key_file
if [[ "$FORMAT" == "json" ]]; then if [[ "$FORMAT" == "json" ]]; then
if [[ -n "$NAME" ]]; then if [[ -n "$NAME" ]]; then
sshcommand list dokku "" "$FORMAT" | jq -cM "[.[] | select(.name == \"$NAME\")]" sshcommand list dokku "" "$FORMAT" | jq -cM "[.[] | select(.name == \"$NAME\")]"