Skip to content

Commit

Permalink
missed some plaintext flags
Browse files Browse the repository at this point in the history
  • Loading branch information
strantalis committed Nov 14, 2024
1 parent 7dd50de commit 97c2f1d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/checks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,8 @@ jobs:
integration:
name: integration tests
runs-on: ubuntu-22.04
env:
TLS_ENABLED: "true"
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
- uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7
Expand Down
6 changes: 3 additions & 3 deletions test/tdf-roundtrips.bats
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@

@test "examples: legacy key support Z-TDF" {
echo "[INFO] validating default key is r1"
[ $(grpcurl -plaintext "localhost:8080" "kas.AccessService/PublicKey" | jq -e -r .kid) = r1 ]
[ $(grpcurl "localhost:8080" "kas.AccessService/PublicKey" | jq -e -r .kid) = r1 ]

echo "[INFO] encrypting samples"
go run ./examples encrypt --autoconfigure=false -o sensitive-with-no-kid.txt.tdf --no-kid-in-kao "Hello Legacy"
Expand All @@ -86,7 +86,7 @@
wait_for_green

echo "[INFO] validating default key is r2"
[ $(grpcurl -plaintext "localhost:8080" "kas.AccessService/PublicKey" | jq -e -r .kid) = r2 ]
[ $(grpcurl "localhost:8080" "kas.AccessService/PublicKey" | jq -e -r .kid) = r2 ]

echo "[INFO] decrypting after key rotation"
go run ./examples decrypt sensitive-with-no-kid.txt.tdf | grep "Hello Legacy"
Expand All @@ -95,7 +95,7 @@

@test "examples: legacy kas and service config format support" {
echo "[INFO] validating default key is r1"
[ $(grpcurl -plaintext "localhost:8080" "kas.AccessService/PublicKey" | jq -e -r .kid) = r1 ]
[ $(grpcurl "localhost:8080" "kas.AccessService/PublicKey" | jq -e -r .kid) = r1 ]

echo "[INFO] encrypting samples"
go run ./examples encrypt --autoconfigure=false -o sensitive-with-no-kid.txt.tdf --no-kid-in-kao "Hello Legacy"
Expand Down

0 comments on commit 97c2f1d

Please sign in to comment.