diff --git a/.github/workflows/kustomize.yaml b/.github/workflows/kustomize.yaml index c9434bc..8b6aed2 100644 --- a/.github/workflows/kustomize.yaml +++ b/.github/workflows/kustomize.yaml @@ -10,6 +10,7 @@ jobs: deploy: runs-on: ${{ matrix.os }} strategy: + fail-fast: false matrix: os: [ubuntu-22.04, ubuntu-24.04] #kind: [v0.21.0, v0.22.0, v0.23.0, v0.24.0, v0.25.0] diff --git a/scripts/check-garage.sh b/scripts/check-garage.sh index b919d78..16b55da 100644 --- a/scripts/check-garage.sh +++ b/scripts/check-garage.sh @@ -37,7 +37,9 @@ forward object="ci-smoke/$(openssl rand -hex 16)" openssl rand -hex 128 > "$temporary/upload" endpoint="http://127.0.0.1:13900/mybucket/$object" +payload_hash="$(sha256sum "$temporary/upload" | cut -d ' ' -f 1)" curl --fail-with-body --silent --show-error --aws-sigv4 "aws:amz:garage:s3" \ + -H "x-amz-content-sha256: $payload_hash" \ --user "$access_key:$secret_key" --upload-file "$temporary/upload" "$endpoint" if [[ $# -eq 1 ]]; then kill "$pid" @@ -48,6 +50,7 @@ if [[ $# -eq 1 ]]; then forward fi curl --fail-with-body --silent --show-error --aws-sigv4 "aws:amz:garage:s3" \ + -H "x-amz-content-sha256: $(sha256sum /dev/null | cut -d ' ' -f 1)" \ --user "$access_key:$secret_key" "$endpoint" --output "$temporary/download" cmp "$temporary/upload" "$temporary/download" echo "Garage S3 authenticated PUT/GET passed through the Kubernetes Service (object mybucket/$object retained)." diff --git a/scripts/install-garage.sh b/scripts/install-garage.sh index 01ff5e3..b9057d1 100644 --- a/scripts/install-garage.sh +++ b/scripts/install-garage.sh @@ -35,5 +35,5 @@ if [[ $# -eq 1 ]]; then fi kubectl apply -k "$ROOT/base/garage" kubectl -n garage rollout status statefulset/garage --timeout=300s -kubectl -n garage exec garage-0 -- /garage bucket info mybucket +kubectl -n garage exec garage-0 -- /garage bucket info mybucket > /dev/null echo "Garage is available at garage.garage:3900 (region garage, bucket mybucket). Credentials are in Secret garage/garage-credentials."