Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit116f517

Browse files
committed
coderd: report full license in telemetry
1 parent76c65b1 commit116f517

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

‎coderd/telemetry/telemetry.go‎

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

676-
// ConvertLicense anonymizes a license.
677676
funcConvertLicense(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
returnLicense{
681+
JWT:license.JWT,
682+
Exp:license.Exp,
679683
UploadedAt:license.UploadedAt,
680684
UUID:license.UUID,
681685
}
@@ -885,7 +889,9 @@ type ParameterSchema struct {
885889
}
886890

887891
typeLicensestruct {
892+
JWTstring`json:"jwt"`
888893
UploadedAt time.Time`json:"uploaded_at"`
894+
Exp time.Time`json:"exp"`
889895
UUID uuid.UUID`json:"uuid"`
890896
}
891897

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp