Mesa (main): ci/bare-metal: Don't leak JWT into logs
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Fri Jun 11 12:47:32 UTC 2021
Module: Mesa
Branch: main
Commit: 34bb4412a3a1c6c02d7e14b2a89bcae863a54c13
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=34bb4412a3a1c6c02d7e14b2a89bcae863a54c13
Author: Daniel Stone <daniels at collabora.com>
Date: Thu Jun 10 10:51:50 2021 +0100
ci/bare-metal: Don't leak JWT into logs
The JWT is sensitive - as it can be used to access e.g. private traces -
so we don't want it anywhere in our logs.
Signed-off-by: Daniel Stone <daniels at collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11309>
---
.gitlab-ci/bare-metal/rootfs-setup.sh | 1 +
.gitlab-ci/common/generate-env.sh | 1 -
2 files changed, 1 insertion(+), 1 deletion(-)
diff --git a/.gitlab-ci/bare-metal/rootfs-setup.sh b/.gitlab-ci/bare-metal/rootfs-setup.sh
index 2e4280bac21..ff076423fa1 100644
--- a/.gitlab-ci/bare-metal/rootfs-setup.sh
+++ b/.gitlab-ci/bare-metal/rootfs-setup.sh
@@ -15,6 +15,7 @@ set +x
chmod +x $rootfs_dst/set-job-env-vars.sh
echo "Variables passed through:"
cat $rootfs_dst/set-job-env-vars.sh
+echo "export CI_JOB_JWT=${CI_JOB_JWT at Q}" >> $rootfs_dst/set-job-env-vars.sh
set -x
# Add the Mesa drivers we built, and make a consistent symlink to them.
diff --git a/.gitlab-ci/common/generate-env.sh b/.gitlab-ci/common/generate-env.sh
index 41946cc13a8..980e2460c11 100755
--- a/.gitlab-ci/common/generate-env.sh
+++ b/.gitlab-ci/common/generate-env.sh
@@ -8,7 +8,6 @@ for var in \
CI_COMMIT_BRANCH \
CI_COMMIT_TITLE \
CI_JOB_ID \
- CI_JOB_JWT \
CI_JOB_URL \
CI_MERGE_REQUEST_SOURCE_BRANCH_NAME \
CI_MERGE_REQUEST_TITLE \
More information about the mesa-commit
mailing list