Example for the SigV4A algorithm in Python for accessing S3 Multi Region Access points

1

Hi. I wanted to use S3 Multi Region Access Points. Saw the documentation here: https://docs.aws.amazon.com/AmazonS3/latest/userguide/MultiRegionAccessPointRequests.html which tells that the mrap alias can be used using the REST APIs but a SigV4A algorithm must be used for signing. I tried to find examples for this but could only find examples for the SigV4 algorithm here: https://docs.aws.amazon.com/code-samples/latest/catalog/code-catalog-python-example_code-signv4.html

I was able to see that the logic internally is doing something with the AWS4-ECDSA-P256-SHA256 algorithm and passing the X-Amz-Region-Set': '* in the headers by adding some logging in the python botocore package locally.

Is there any public document available for the SigV4A (Asymmetric) signing logic using python?

Gaurav
질문됨 2년 전1825회 조회
2개 답변
0

Hi,

I am assuming that if you're following the documentation to sign the requests you're using the AWS SDK, if so, then you don't need to worry about sigv4a as the SDK will automatically convert to this new version of the sigv4 format. You can find the information on the documentation here: https://docs.aws.amazon.com/AmazonS3/latest/userguide/MultiRegionAccessPointRequests.html, specifically with this paragraph:

  • Requests must be signed using Signature Version 4A (SigV4A). When you use the AWS SDK, the SDK automatically converts a SigV4 signature to SigV4A. For more information about SigV4A, see Signing AWS API requests in the AWS General Reference.

Hope this helps.

Best,

profile pictureAWS
답변함 2년 전
0

You can find code samples for the implementation of SigV4A in this repo https://github.com/aws-samples/sigv4a-signing-examples

AWS
전문가
답변함 일 년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠