Repository navigation
Conversation
Contributor
|
Commit: Regression test reportSelected 1 changed tests (limit=20, 0 not selected) 1 tests: regression=1 unreleased=0 coverage=0 failing=0
TestAccept/bundle/telemetry/deploy-git-origin-url-credentials/DMS=: branch ✅ | main (5bda5d4) ❌ | latest (v1.23.0) ❌main (5bda5d4): latest (v1.23.0): |
pietern
commented
Nov 4, 2026
Collaborator
Integration test reportCommit: 35adebc
Top 3 slowest tests (at least 2 minutes):
|
bundleGitInfo assumed load_git_details had already stripped userinfo from bundle.git.origin_url, but that only happens on the local .git route. A URL set in databricks.yml, or returned by the workspace API for a Git folder, was sent to telemetry as written, including any embedded token. Strip userinfo when building the telemetry git info so every route is covered. Extract the stripping from Repository.OriginUrl into git.StripURLCredentials and use it for telemetry too. Co-authored-by: Isaac <no-reply@databricks.com>
pietern
force-pushed
the
pietern/f01-6842-telemetry-origin-url
branch
from
November 4, 2026 12:26
e28ea52 to
35adebc
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changes
Strip credentials from the git origin URL before it goes into deploy telemetry.
bundleGitInfoassumed the URL was already stripped, but only the local.gitroute does that; a URL frombundle.git.origin_urlor the workspace API went through as written. The stripping inRepository.OriginUrl()moves intogit.StripURLCredentials, which telemetry now uses too.DMS and deploy metadata still receive the value as written; left for a follow-up.
Why
#6842 added the origin URL to deploy telemetry, assuming its credentials were already stripped.
Tests
TestStripURLCredentialsinlibs/gitand a wiring test inbundle/phases.bundle/telemetry/deploy-git-origin-url-credentialsshows the token stripped.This pull request and its description were written by Isaac.