test: pin security fixtures to the validation rail (EGB-283)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
28f44f043c
commit
b09f94c92f
1 changed files with 3 additions and 0 deletions
|
|
@ -320,6 +320,8 @@ make_second_identity() {
|
||||||
run "$SECRETS_BIN" push
|
run "$SECRETS_BIN" push
|
||||||
[ "$status" -ne 0 ]
|
[ "$status" -ne 0 ]
|
||||||
[[ "$output" == *"Invalid recipient"* ]] || false
|
[[ "$output" == *"Invalid recipient"* ]] || false
|
||||||
|
# The push must have aborted before encrypting — no blob should exist.
|
||||||
|
[ ! -e "$SECRETS_DIR/myproj/.env.age" ]
|
||||||
}
|
}
|
||||||
|
|
||||||
@test "SECURITY: control/ANSI characters in recipients.txt are rejected" {
|
@test "SECURITY: control/ANSI characters in recipients.txt are rejected" {
|
||||||
|
|
@ -329,6 +331,7 @@ make_second_identity() {
|
||||||
create_project_dir myproj
|
create_project_dir myproj
|
||||||
run "$SECRETS_BIN" push
|
run "$SECRETS_BIN" push
|
||||||
[ "$status" -ne 0 ]
|
[ "$status" -ne 0 ]
|
||||||
|
[[ "$output" == *"Invalid recipient"* ]] || false
|
||||||
}
|
}
|
||||||
|
|
||||||
@test "SECURITY: recipients add rejects a key with embedded whitespace" {
|
@test "SECURITY: recipients add rejects a key with embedded whitespace" {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue