Skip to content

Commit d77d294

Browse files
denikIsaac
andcommitted
Note Terraform-minted lineage in telemetry PII comments
State migrated from Terraform keeps Terraform's lineage, also a random UUID. Co-authored-by: Isaac <no-reply@databricks.com>
1 parent 8aa85bb commit d77d294

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

‎bundle/configsync/telemetry.go‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,8 @@ type Stats struct {
8080
// local/remote origin, candidate count) — never a path or a target name.
8181
//
8282
// None of these can contain PII: the lineage is a hash of an opaque random UUID
83-
// minted by the state layer, and the source is one of two fixed literals.
83+
// minted by the state layer (or by Terraform, for state migrated from it), and
84+
// the source is one of two fixed literals.
8485
// recordedVersion is the version the deployment metadata service holds, zero when the bundle does
8586
// not record deployment history. A recorded state file persists no serial of its own, so the
8687
// recorded version stands in for it and the field means the same thing for both backends.

‎libs/telemetry/protos/bundle_config_remote_sync.go‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,8 @@ type BundleConfigRemoteSyncEvent struct {
7878
// StateLineage is the hash of the state's lineage identifier (see
7979
// libs/shortid), the same value reported in the user agent under "lineage".
8080
// It cannot contain PII: the lineage is an opaque random UUID minted by
81-
// dstate.GetOrInitLineage and is never derived from a user, workspace, path,
82-
// or resource name.
81+
// dstate.GetOrInitLineage (or by Terraform, for state migrated from it) and
82+
// is never derived from a user, workspace, path, or resource name.
8383
StateLineage string `json:"state_lineage,omitempty"`
8484

8585
// StateSource is "local" or "remote" — a closed, system-defined set of

0 commit comments

Comments
 (0)