fix(recovery): classify ssh key accept timeout
Some checks failed
CD Pipeline / workflow-shape (push) Successful in 0s
CD Pipeline / cancel-stale-cd (push) Has been skipped
CD Pipeline / tests (push) Successful in 42s
CD Pipeline / build-and-deploy (push) Failing after 2m37s
CD Pipeline / post-deploy-checks (push) Has been skipped
Some checks failed
CD Pipeline / workflow-shape (push) Successful in 0s
CD Pipeline / cancel-stale-cd (push) Has been skipped
CD Pipeline / tests (push) Successful in 42s
CD Pipeline / build-and-deploy (push) Failing after 2m37s
CD Pipeline / post-deploy-checks (push) Has been skipped
This commit is contained in:
@@ -40,7 +40,9 @@ run_timeout() {
|
||||
|
||||
classify_log() {
|
||||
local path="$1"
|
||||
if grep -q 'Server accepts key' "$path"; then
|
||||
if grep -q 'Server accepts key' "$path" && grep -Eiq 'timed out|not responding|Timeout' "$path"; then
|
||||
echo "server_accepts_key_then_timeout"
|
||||
elif grep -q 'Server accepts key' "$path"; then
|
||||
echo "server_accepts_key"
|
||||
elif grep -q 'Offering public key' "$path" && grep -Eiq 'timed out|not responding|Timeout' "$path"; then
|
||||
echo "publickey_offer_timeout"
|
||||
@@ -134,4 +136,4 @@ for user in "${USERS[@]}"; do
|
||||
probe_user "$user" "password_disabled"
|
||||
done
|
||||
|
||||
echo "INTERPRETATION=publickey_offer_timeout_on_wooo_means_check_110_authorized_keys_permissions_pam_or_account_lookup_path"
|
||||
echo "INTERPRETATION=server_accepts_key_then_timeout_means_check_110_session_pam_account_or_shell_path;publickey_offer_timeout_means_check_110_authorized_keys_permissions_pam_or_account_lookup_path"
|
||||
|
||||
@@ -113,6 +113,7 @@ def test_110_ssh_publickey_auth_diagnosis_is_bounded_and_read_only() -> None:
|
||||
assert "PasswordAuthentication=no" in text
|
||||
assert "PubkeyAuthentication=no" in text
|
||||
assert "NumberOfPasswordPrompts=0" in text
|
||||
assert "server_accepts_key_then_timeout" in text
|
||||
assert "publickey_offer_timeout" in text
|
||||
assert "NODE_EXPORTER=ok" in text
|
||||
assert "NODE_LOAD1_PER_CPU" in text
|
||||
|
||||
Reference in New Issue
Block a user