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 3 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
func newS3Client(ctx context.Context, region, accessKey, secretKey string, httpClient *http.Client) (*s3.Client, error) {
endpoint := "https://s3." + region + ".scw.cloud"
httpClient.Transport = &userAgentRoundTripper{
defaultRoundTripper: httpClient.Transport,
userAgent: "Scaleway Terraform Provider",
Copy link
Member

Choose a reason for hiding this comment

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

Could you add way more information m/E aws-sdk-go-v2/1.32.3 os/macos lang/go#1.23.2 md/GOOS#darwin md/GOARCH#arm64 api/s3#1.66.2 The version of terraform ?

Copy link
Member

Choose a reason for hiding this comment

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

Here is an example of the User agent we got:

            User-Agent:
                - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.2; darwin; amd64) terraform-provider/develop terraform/terraform-tests

@Laure-di Laure-di force-pushed the custom-roundtripper-s3 branch from e6c83be to 8ea7005 Compare February 11, 2025 13:24
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