This is an automated email from the ASF dual-hosted git repository.
yuanzhou pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/gluten.git
The following commit(s) were added to refs/heads/main by this push:
new daebdcf362 fix: redact credentials from repo URL in
gluten-build-info.properties (#11751)
daebdcf362 is described below
commit daebdcf3621579d6fa3be23f30e3337c12750788
Author: James Xu <[email protected]>
AuthorDate: Fri Mar 13 18:33:43 2026 +0800
fix: redact credentials from repo URL in gluten-build-info.properties
(#11751)
Strip embedded user:pass@ from the git remote URL when writing the
build info properties file to avoid leaking credentials in logs.
---
dev/gluten-build-info.sh | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/dev/gluten-build-info.sh b/dev/gluten-build-info.sh
index 22db643728..ffe0f9c7d2 100755
--- a/dev/gluten-build-info.sh
+++ b/dev/gluten-build-info.sh
@@ -31,7 +31,8 @@ function echo_revision_info() {
echo revision=$(git rev-parse HEAD)
echo revision_time=$(git show -s --format=%ci HEAD)
echo date=$(date -u +%Y-%m-%dT%H:%M:%SZ)
- echo url=$(git config --get remote.origin.url)
+ # Strip embedded credentials (user:pass@) from the URL to avoid exposing
them in the build info.
+ echo url=$(git config --get remote.origin.url | sed
's|://[^:@]*:[^@]*@|://|')
}
function echo_velox_revision_info() {
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]