From 897dc478beeb620b32d713383c93b11a6895590c Mon Sep 17 00:00:00 2001 From: Pavlo Ratushnyi Date: Sat, 14 Nov 2026 13:51:19 +0100 Subject: [PATCH] LEAS-2795 mc: put-denied accepts the insufficient permissions wording of mc (run 3926) --- vezha/gates.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/vezha/gates.sh b/vezha/gates.sh index 9fd6f5dc..b1f072dd 100644 --- a/vezha/gates.sh +++ b/vezha/gates.sh @@ -273,7 +273,7 @@ cmd_login_guard() { cmd_put_denied() { [ "$1" -ne 0 ] || refuse put-denied "the read-only user's PUT succeeded" - grep -qi 'access denied' "$2" || refuse put-denied "the PUT failed but not with Access Denied" + grep -Eqi 'access denied|insufficient permissions' "$2" || refuse put-denied "the PUT failed but not with Access Denied" } cmd_prove() { @@ -381,6 +381,8 @@ cmd_self_test() { control "allowed PUT" put-denied sh "$SELF" put-denied 0 "$tmp/ok.txt" control "PUT that failed for another reason" put-denied sh "$SELF" put-denied 1 "$tmp/ok.txt" accept "denied PUT" sh "$SELF" put-denied 1 "$tmp/denied.txt" + printf 'mc: Unable to write to one or more targets. Insufficient permissions to access this path.\n' > "$tmp/insufficient.txt" + accept "PUT refused for insufficient permissions" sh "$SELF" put-denied 1 "$tmp/insufficient.txt" if [ -n "$(pin_value BASE_IMAGE vezha/PINS)" ]; then kind=mc last=BASE_IMAGE