Giter Site home page Giter Site logo

EC2 Presigned URLs about aws-sdk-kotlin HOT 11 CLOSED

awslabs avatar awslabs commented on September 16, 2024
EC2 Presigned URLs

from aws-sdk-kotlin.

Comments (11)

kggilmer avatar kggilmer commented on September 16, 2024

I happen to be looking at this for another estimation so thought I'd add some details.

from aws-sdk-kotlin.

kggilmer avatar kggilmer commented on September 16, 2024

Relates to https://github.com/awslabs/smithy-kotlin/issues/153

from aws-sdk-kotlin.

ianbotsf avatar ianbotsf commented on September 16, 2024

Another sample implementation from Java v2 SDK. Seems like intercept the HTTP request and use input shape fields to modify the DestinationRegion and PresignedUrl fields.

Estimate: 2 weeks (less if another presigning task has been completed and can be leveraged for reuse)

from aws-sdk-kotlin.

kggilmer avatar kggilmer commented on September 16, 2024

When you copy an encrypted source snapshot using the Amazon EC2 Query API, you must supply a pre-signed URL. This parameter is optional for unencrypted snapshots. Query requests. The PresignedUrl should use the snapshot source endpoint, the
CopySnapshot action, and include the SourceRegion, SourceSnapshotId, and DestinationRegion parameters. The PresignedUrl must be signed using AWS Signature Version 4. Because EBS snapshots are stored in Amazon S3, the signing algorithm for this parameter uses the same logic that is described in <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/sigv4-query-string-auth.html\">Authenticating Requests: Using Query Parameters (AWS Signature Version 4) in the Amazon Simple Storage Service API Reference. An invalid or improperly signed PresignedUrl will cause the copy operation to fail asynchronously, and the snapshot will move to an error state.

from aws-sdk-kotlin.

kggilmer avatar kggilmer commented on September 16, 2024

For some unknown reason I'm able to call CopyDBSnapshot with an encrypted snapshot id and without a presigned URL and it still works. As such, it's unclear to me if this presigned url is actually needed here. Looking for clarification from the EC2 team.

from aws-sdk-kotlin.

kggilmer avatar kggilmer commented on September 16, 2024

Operations involving presigned URLs:

  • CopySnapshot (populate a modeled presigned URL request param)

from aws-sdk-kotlin.

kggilmer avatar kggilmer commented on September 16, 2024

Because my experience does not track to the service documentation (able to perform an encrypted db snapshot copy without specifying a presgigned url) I cannot test that this client works as expected. Looking around for ec2 help to figure out what the presigned url is required for.

from aws-sdk-kotlin.

kggilmer avatar kggilmer commented on September 16, 2024

No luck in slack, filed an issue against EC2 EBS CTI SIM: P51373376

from aws-sdk-kotlin.

kggilmer avatar kggilmer commented on September 16, 2024

With Scott's help I got in contact w/ a doc team person on the EC2 team that has some knowedge of the operation. In parallel I brought up this issue with Matt Muller (he worked on the RDS SEP for presigners which is similiar in spirit to this customization in EC2) and at this point it's looking like the presignUrl parameter is no longer required. There is currently a modeled parameter sourceRegion which according to Matt did not exist at the time that their presigner customization was implemented. It seems that the operation has been updated such that the presigner url is no longer needed for cross-region encrypted snapshot copies. We're waiting on confirmation from the EC2 team.

from aws-sdk-kotlin.

kggilmer avatar kggilmer commented on September 16, 2024

The open question is bouncing around the EC2 org. Awaiting confirmation.

from aws-sdk-kotlin.

kggilmer avatar kggilmer commented on September 16, 2024

closing due to deprecated support in service. Will re-open if EC2 team comes back with specific scenarios in which this field is used.

from aws-sdk-kotlin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.