From 60733ece323e2a90a60764ce1b15b79aaf66b6ec Mon Sep 17 00:00:00 2001 From: Victor Martinez Date: Thu, 19 Oct 2023 10:23:46 +0200 Subject: [PATCH] buildkite: prepare ES credentials --- .buildkite/hooks/prepare-benchmark.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.buildkite/hooks/prepare-benchmark.sh b/.buildkite/hooks/prepare-benchmark.sh index d3fe0b549b..7dd44d5bca 100644 --- a/.buildkite/hooks/prepare-benchmark.sh +++ b/.buildkite/hooks/prepare-benchmark.sh @@ -1,6 +1,12 @@ #!/usr/bin/env bash set -euo pipefail +echo "--- Prepare elasticsearch secrets :vault:" +ES_URL_SECRET=$(vault read -field=es_url secret/ci/elastic-apm-agent-java/opentelemetry-benchmark) +ES_USER_SECRET=$(vault read -field=es_user secret/ci/elastic-apm-agent-java/opentelemetry-benchmark) +ES_PASS_SECRET=$(vault read -field=es_pass secret/ci/elastic-apm-agent-java/opentelemetry-benchmark) +export ES_URL_SECRET ES_USER_SECRET ES_PASS_SECRET + echo "--- Prepare github secrets :vault:" GITHUB_SECRET=$(vault kv get -field token "kv/ci-shared/observability-ci/github-apmmachine") GH_TOKEN=$GITHUB_SECRET