Skip to content

Commit eef6144

Browse files
ammariopull[bot]
authored andcommitted
chore(coderd): report full license in telemetry (#10258)
Will aid in cross-referencing deployments to sales accounts.
1 parent 2575419 commit eef6144

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

coderd/telemetry/telemetry.go

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -673,9 +673,13 @@ func ConvertTemplateVersion(version database.TemplateVersion) TemplateVersion {
673673
return snapVersion
674674
}
675675

676-
// ConvertLicense anonymizes a license.
677676
func ConvertLicense(license database.License) License {
677+
// License is intentionally not anonymized because it's
678+
// deployment-wide, and we already have an index of all issued
679+
// licenses.
678680
return License{
681+
JWT: license.JWT,
682+
Exp: license.Exp,
679683
UploadedAt: license.UploadedAt,
680684
UUID: license.UUID,
681685
}
@@ -877,15 +881,10 @@ type ProvisionerJob struct {
877881
Type database.ProvisionerJobType `json:"type"`
878882
}
879883

880-
type ParameterSchema struct {
881-
ID uuid.UUID `json:"id"`
882-
JobID uuid.UUID `json:"job_id"`
883-
Name string `json:"name"`
884-
ValidationCondition string `json:"validation_condition"`
885-
}
886-
887884
type License struct {
885+
JWT string `json:"jwt"`
888886
UploadedAt time.Time `json:"uploaded_at"`
887+
Exp time.Time `json:"exp"`
889888
UUID uuid.UUID `json:"uuid"`
890889
}
891890

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy