Questions tagged [pre-signed-url]

URL signing grants temporary access to the caller to perform privileged actions. For example generating signed URL to upload files on a private S3 bucket.

URL signing grants temporary access to the caller to perform privileged actions.

AWS S3

https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/private-content-signed-urls.html

575 questions
3
votes
1 answer

Backblaze B2 download with "presigned URL"

Situation: I run a Django app in the web, where logged-in users can also download .pdf files (non-public, with specific restrictions, depending on user rights). The most convenient way to do so (e.g. in S3) is to use a time-restricted, pre-signed…
3
votes
2 answers

Adding s3 signed url in embed for a pdf doesn't work

The url which looks like…
SHIKHAR SINGH
  • 419
  • 6
  • 17
3
votes
2 answers

Generating a presigned URL to upload to an S3 bucket

I'm trying to generate a presigned URL for an S3 bucket on AWS to upload files to like this: $ aws s3 presign s3://mybucket/somefolder/ Then I use that URL to upload a file: $ curl…
Mehran
  • 15,593
  • 27
  • 122
  • 221
3
votes
1 answer

JavaScript Using Pre-Signed Url to Save to S3

I am using the aws-sdk to get a pre-signed url for S3. I have the function wrapped in a lambda. const aws = require('aws-sdk'); module.exports = CreateRecord => { CreateRecord.controllers.createSignature = (event, context, callback) => { …
user2465134
  • 8,793
  • 5
  • 32
  • 46
3
votes
1 answer

Unexpected v4 signed url using com.amazonaws:aws-java-sdk 1.11.18

We're creaeing amazon S3 signed urls using (com.amazonaws:aws-java-sdk version 1.11.18) - AmazonS3 s3 = new AmazonS3Client(credentials); s3.generatePresignedUrl(bucketName, objectName, expiration, method); We expect to get a signed url that…
Dror Fichman
  • 1,559
  • 1
  • 14
  • 16
3
votes
1 answer

CreateSignedURL failure AWS SSE-C with PHP

I have been using AWS SDK V3 for PHP to put object to S3 with Server side encryption using customer provided key. The documentation is quite sketchy (or at least I havent found it). For uploading the object using the S3client, I use putobject with …
rydgaze
  • 1,050
  • 13
  • 24
3
votes
1 answer

How to upload file to google storage in multiple chunks?

I am trying to upload file to google storage in multiple chunks but signed URL. Below are the steps I am following: Create Resumable Upload URL using Node.js. Sample URL:…
Suyog Kale
  • 373
  • 6
  • 17
3
votes
1 answer

Google storage with signed url

How to upload file with content-type mutlipart/formdata ---boundaryString using signed url of google storage ? The problem i am facing is when we use browser to upload a file the browser puts the content type of mutlipart/formdata …
Bhuvan
  • 4,028
  • 6
  • 42
  • 84
3
votes
1 answer

AWS S3 add / set / update / specify user metadata with a presigned url

We are trying to use aws S3 for storing files. We created a simple REST API in JAVA to upload and retrieve a file. Clients requesting to update files use our REST API's which provide a presigned url to either PUT/GET the file. We are using AWS SDK…
bh1210
  • 51
  • 1
  • 5
3
votes
1 answer

How to separately create a presigned URL query parameter?

Currently I am generating the authenticated URL as : $this->s3Client = new S3Client($this->options); $cmd = $this->s3Client->getCommand('GetObject', [ 'Bucket' => $bucket_name, 'Key' => $object_key ]); $request =…
user5735796
3
votes
1 answer

media uploading to cloud using signed url interup due to some ssl certificate problems?

I am trying to upload a video file to cloud storage using a signed URL. HTTP put method is used for uploading. When I am try to connect using "HttpsUrl` connection", it returns some error like javax.net.ssl.SSLHandshakeException: Handshake failed.…
3
votes
1 answer

How to sign urls for longer than a week using aws-sdk for Ruby?

I've been using marcel/s3 until we recently had to upgrade to aws-sdk (version 2). One change that we noticed was that we now can't sign URLs with expirations longer than a week, as we get an exception: ArgumentError: expires_in value of #{X}…
Tomas Romero
  • 8,418
  • 11
  • 50
  • 72
3
votes
2 answers

Force download on GCS via App Engine using Signed URL

I get my file via: require_once 'google/appengine/api/cloud_storage/CloudStorageTools.php'; use google\appengine\api\cloud_storage\CloudStorageTools; $public_link = CloudStorageTools::getPublicUrl("gs://bucket/file.pdf", false); If I go to…
bryan
  • 8,879
  • 18
  • 83
  • 166
3
votes
0 answers

SignatureDoesNotMatch error with Amazon S3 and pre-signed URLs php

I'm trying to GET a pre-signed URL for an object from S3 using php. I keep getting the SignatureDoesNotMatch error. Below is my code. $client = S3Client::factory(array( 'key' => getenv('S3_KEY'), 'secret' =>…
chloealee
  • 667
  • 1
  • 5
  • 13
3
votes
2 answers

Slow performance when generating CloudFront Signed URLs

I'm following this sample to create Signed URLs on CloudFront using PHP http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/CreateURL_PHP.html And I have everything working fine and generating the Signed URLs for both RTMP…
Guillermo
  • 864
  • 4
  • 12
  • 20