From ab7aa0d4843799d9f914d01e30d3063c5c00a95b Mon Sep 17 00:00:00 2001 From: Naomi Kirby Date: Sat, 6 Jul 2024 10:53:10 -0700 Subject: [PATCH] Clean up some formatting --- bin/run_integration_tests.sh | 3 ++- handlers.go | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/bin/run_integration_tests.sh b/bin/run_integration_tests.sh index 5cc596f3f..e1aa45b9e 100755 --- a/bin/run_integration_tests.sh +++ b/bin/run_integration_tests.sh @@ -25,7 +25,8 @@ while test "true" != "$(docker inspect -f {{.State.Running}} autograph-app-hsm)" done # fetch the updated root hash from the app-hsm service -APP_HSM_NORMANDY_ROOT_HASH=$(docker compose exec app-hsm yq -r '.signers[] | select(.id == "normandy").cacert' /app/autograph.softhsm.yaml | openssl x509 -outform DER | sha256sum | awk '{print $1}') +APP_HSM_NORMANDY_ROOT_HASH=$(docker compose exec app-hsm yq -r '.signers[] | select(.id == "normandy").cacert' /app/autograph.softhsm.yaml | \ + openssl x509 -outform DER | sha256sum | awk '{print $1}') # start the monitor lambda emulators docker compose up -d monitor-lambda-emulator diff --git a/handlers.go b/handlers.go index cf1417c16..ad7c2baa0 100644 --- a/handlers.go +++ b/handlers.go @@ -80,7 +80,7 @@ func mirrorLocalX5U(r *http.Request, response formats.SignatureResponse) string parsedX5U, err := url.Parse(response.X5U) if err == nil && parsedX5U.Scheme == "file" { mirroredX5U := url.URL{ - Scheme: "http", + Scheme: "http", Host: r.Host, Path: path.Join("x5u", response.SignerID, path.Base(parsedX5U.Path)), }