File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -673,9 +673,13 @@ func ConvertTemplateVersion(version database.TemplateVersion) TemplateVersion {
673
673
return snapVersion
674
674
}
675
675
676
- // ConvertLicense anonymizes a license.
677
676
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.
678
680
return License {
681
+ JWT : license .JWT ,
682
+ Exp : license .Exp ,
679
683
UploadedAt : license .UploadedAt ,
680
684
UUID : license .UUID ,
681
685
}
@@ -885,7 +889,9 @@ type ParameterSchema struct {
885
889
}
886
890
887
891
type License struct {
892
+ JWT string `json:"jwt"`
888
893
UploadedAt time.Time `json:"uploaded_at"`
894
+ Exp time.Time `json:"exp"`
889
895
UUID uuid.UUID `json:"uuid"`
890
896
}
891
897
You can’t perform that action at this time.
0 commit comments