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

Cannot get API PresignClient's logged request signing #958

Closed
3 tasks done
jasdel opened this issue Dec 10, 2020 · 1 comment · Fixed by #955
Closed
3 tasks done

Cannot get API PresignClient's logged request signing #958

jasdel opened this issue Dec 10, 2020 · 1 comment · Fixed by #955
Labels
bug This issue is a bug.

Comments

@jasdel
Copy link
Contributor

jasdel commented Dec 10, 2020

Confirm by changing [ ] to [x] below to ensure that it's a bug:

Describe the bug
Unable to log request signature generation process with PresignClient. Note that still unable to get a signature logged with #960 change applied locally.

Version of AWS SDK for Go?
v0.30.0

Version of Go (go version)?
v1.15.5

To Reproduce (observed behavior)

	client := s3.NewFromConfig(cfg, func(o *s3.Options) {
		o.ClientLogMode |= aws.LogSigning
	})

	p := s3.NewPresignClient(client)

	req, err := p.PresignPutObject(context.TODO(),
		&s3.PutObjectInput{
			Bucket: aws.String("bucket-name"),
			Key:    aws.String("1/o-2bWeAMR/some-filename_(1).pdf"),
		},
		s3.WithPresignExpires(20*time.Minute),
	)

	log.Println(req.URL)
	log.Println(req.Method)
	log.Println(req.SignedHeader)

Expected behavior
Should log request signature components

@github-actions
Copy link

⚠️COMMENT VISIBILITY WARNING⚠️

Comments on closed issues are hard for our team to see.
If you need more assistance, please either tag a team member or open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue is a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant