Skip to content
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

fix(object): change user-agent #2919

Open
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

Laure-di
Copy link
Contributor

No description provided.

@Laure-di Laure-di requested a review from Mia-Cross as a code owner February 10, 2025 14:03
@github-actions github-actions bot added the object Object storage issues, bugs and feature requests label Feb 10, 2025
@Laure-di Laure-di force-pushed the custom-roundtripper-s3 branch from ef300d6 to a121680 Compare February 10, 2025 14:07
@Laure-di Laure-di force-pushed the custom-roundtripper-s3 branch 2 times, most recently from 8ea7005 to 3932d36 Compare February 13, 2025 14:43
@Laure-di Laure-di force-pushed the custom-roundtripper-s3 branch from a98c8ee to d03de87 Compare February 13, 2025 14:57
@Laure-di Laure-di self-assigned this Feb 13, 2025
@@ -37,6 +37,8 @@ const (
maxObjectVersionDeletionWorkers = 8

ErrCodeForbidden = "Forbidden"

defaultVersion = "v2.49.0"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

how will this string get maintained through time?

userAgent string
}

var userAgent = fmt.Sprintf("scaleway-terraform-provider/%s (%s; %s; %s)", defaultVersion, runtime.Version(), runtime.GOOS, runtime.GOARCH)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
var userAgent = fmt.Sprintf("scaleway-terraform-provider/%s (%s; %s; %s)", defaultVersion, runtime.Version(), runtime.GOOS, runtime.GOARCH)
var userAgent = fmt.Sprintf("terraform-provider/%s (%s; %s; %s)", defaultVersion, runtime.Version(), runtime.GOOS, runtime.GOARCH)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You could also add the version of terraform as well.
here is an example of what we currently have:

scaleway-sdk-go/v1.0.0-beta.30.0.20241129094524-023aa8142bc1 (go1.23.1; linux; amd64) terraform-provider/2.49.0 terraform/1.10.4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
object Object storage issues, bugs and feature requests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants