-
Notifications
You must be signed in to change notification settings - Fork 0
remove xray version check #2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
featureUsage := fmt.Sprintf("Terraform/%s", req.TerraformVersion) | ||
go util.SendUsage(ctx, restyClient.R(), productId, featureUsage) | ||
|
||
meta := util.ProviderMetadata{ | ||
Client: restyClient, | ||
ProductId: productId, | ||
XrayVersion: version, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this really didn't seems to be used for anything except reporting metadata.
It is unclear to me what is the place of this PR in the whole problem we were discussing.
|
) | ||
return | ||
} | ||
|
||
featureUsage := fmt.Sprintf("Terraform/%s", req.TerraformVersion) | ||
go util.SendUsage(ctx, restyClient.R(), productId, featureUsage) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we could drop the telemetry too if we really need to keep this fork around. 😄
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I noticed this immediately yesterday. Its just a post request towards our Artifactory:
https://github.com/jfrog/terraform-provider-shared/blob/55f41af49bcfba33502066064ac468c09563340c/util/util.go#L64C9-L64C37
The Artifactory REST API endpoint artifactory/api/system/usage provides information about the system's usage, including resource consumption. This endpoint is useful for monitoring and understanding how Artifactory is being utilized.
@marco-m-pix4d see the issue: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the explanation.
I think the simplest is to just remove this check.
Basically, I rebuilt the provider and tested locally if it works. No errors were raised in dev workspace without active licence.
Before we had:
even when we didn't try to create any resources..
Alternative:
skip_xray_version_check
with default value false (keeping the same behaviour as today)then in our terraform provider config we would just set:
skip_xray_version_check: local.use_licence ? true : false
This was actually behaviour of artifactory provider long time ago. They had:
check_licence
or similar...