How do I log the signature process ? #372
-
Hello, In the aws CLI, we can use the Is there a way to do that with the powershell SDK ? If not, is there a way to do that with the .NET SDK ? (Which I'm assuming is what's being used under the hood) I know that in golang, you can enable logging the signature process doing the following: cfg, _ := config.LoadDefaultConfig(
context.TODO(),
config.WithClientLogMode(aws.LogSigning),
)
client := s3.NewFromConfig(cfg) Any request made by this client will log the signature process. Is there a way to do that ? It's very useful for people trying to debug issues with third parties S3 compatible solutions. Thanks in advance ! |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 1 reply
-
It's more verbose, but you can enable debug logging by using this:
One limitation is that the .NET SDK (which as you noted PowerShell uses behind the scenes) doesn't support logging the request body, but you should be able to see the canonical request we're sending and the response received. What exactly are you looking for when you say "signature process"? |
Beta Was this translation helpful? Give feedback.
-
Thanks for your answer @dscpinheiro. Basically what I'm looking for is the Canonical Request and the String to sign that was made on the client side to sign the request. This helps when solving Signature mismatch between the client and the server. |
Beta Was this translation helpful? Give feedback.
-
Does the solution you describe enables to see the Canonical request and the string to sign ? |
Beta Was this translation helpful? Give feedback.
-
Thank you, I actually didn't see the canonical request at first (I actually had tried this method before posting this), thanks for pointing out that it was there, just in a very condensed form ! |
Beta Was this translation helpful? Give feedback.
-
Hello! Reopening this discussion to make it searchable. |
Beta Was this translation helpful? Give feedback.
It's more verbose, but you can enable debug logging by using this:
One limitation is that the .NET SDK (which as you noted PowerShell uses behind the scenes) doesn't support logging the request body, but you should be able to see the canonical request we're sending and the response received.
What exactly are you looking for when you say "signature process"?