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
-1
votes
0 answers

Best practices to use IAM user credentials in an ECS task

I have an app (written in Python) that runs a Fargate instance on the AWS Elastic Container Service (ECS). Credentials are injected on the container through an .env file located in S3 and the code that runs on the container sends an email to…
-1
votes
0 answers

Storing media URLs in cache?

I have a Django backend and a SvelteKit frontend. Media files are being stored within an Object Storage. My Django Rest serializers use the invididual objects' key to generate a presigned url and grabs it from the object storage and sends the link…
fullstacknoob
  • 161
  • 1
  • 7
-1
votes
0 answers

How to auto-regenerate pre-signed URL in s3 after expire

I read the docs and noticed I can only set the max expire time to 7 days and the default time if not set is 15 minutes and the pre-signed URL I generated expires and is not more accessible. So I'm looking for a way that once the pre-signed URL is…
Rawley
  • 17
  • 6
-1
votes
1 answer

How to resolve this error : "Error while generating presigned URL: date.getUTCFullyear is not a function"?

I'm recently migrating from node v14 to v18 which requires AWS SDK v2 upgrade to v3. node v14 to v18 This is how the implementation went const s3 = new S3Client({ signatureVersion: 'v4' }); try { let command = new PutObjectCommand(params); …
-1
votes
1 answer

how to allow s3 images/object to be downloaded only from by website request using presigned url?

I am in serious trouble. I have been uploading to the s3 bucket using aws-sdk javascript, downloading it through object link. Using s3 to store images/assets to be used for the nextjs website. I have set the bucket to the read only for everyone. I…
-1
votes
1 answer

Could Amazon S3 Presigned URL be generated so a user can read a file but not download it?

We have a requirement to provide a user with temporary access to video files stored in Amazon S3. Users with a presigned URL should be able to play a video but not download it. Is there any option to generate a presigned URL so users can play a…
-1
votes
1 answer

AWS S3 presigned POST returns different responses

I have an EC2 instance and an AMI for this instance deployed (I will call it Original and Clone to differentiate them somehow). Theoretically, it should work the same way but I found a difference between presigned responses. So the response on…
-1
votes
1 answer

Ambiguous CORS error when uploading object to S3 with presigned url

I'm generating an S3 presigned URL on my Express server like this: const presignedUrl = s3.getSignedUrl('putObject', { Bucket: `bucket`, Key: `key`, ContentType: "image/*" }); I then send this URL to the client (React) so that the user…
Gautam Jethwani
  • 121
  • 1
  • 2
  • 10
-1
votes
2 answers

how do I restrict posting a file using Amazon S3 presignedUrl to a current user

I can able to generate preSignedUrl and add Expration (For uploading an Image) successfully but how can I secure the url from a malicious person. like for example in my nodejs server i have users who can post images, and some hacker logs in to my…
-1
votes
1 answer

How to restrict the content type for signed upload url for Google Storage?

I would like to create a pre-signed upload url that enables the client to upload files directly to the bucket. The url should exceed after five minutes, prevent uploads of files that are greater than 1mb and only allow .jpg and .png files to be…
jz22
  • 2,328
  • 5
  • 31
  • 50
-1
votes
1 answer

I want to protect my videos with temporary urls. How can i do that?

I'm publishing videos from my own server on my own website and to protect the videos i want to secure the urls. I saw some urls has token, id etc. Those urls expires after a certain time. I want to secure my video urls, so anyone has the url could…
uhdalth
  • 1
  • 2
-1
votes
4 answers

How access image in s3 bucket using pre-signed url

I want access an image stored in s3 bucket using pre-signed url.This image needs to access who has the pre-signed url. I have no idea what signature is it getting. If it's getting my signature, then how it's works for other users. When I doing this.…
DevAra
  • 531
  • 3
  • 10
  • 35
-1
votes
1 answer

S3 secure file access

We have one application that upload images, videos, documents, etc. to different folders in an S3 bucket. From another application (UWP app used by many users in different devices), need to access these files in S3 at different times. We need to…
njatlink
  • 26
  • 5
-1
votes
1 answer

Signed url not working for Microsoft online ducument viewer

Go to this page: https://products.office.com/en-us/office-online/view-office-documents-online If you paste a url of an office document(e.g. http://ieee802.org:80/secmail/docIZSEwEqHFr.doc) to the input box and click "create url", it will generate a…
Xiao Li
  • 1
  • 1
-2
votes
1 answer

AWS Grant users programmatic access to S3 object based on external token

I have an application that uses AWS S3 to allow users to share files between them. The desired behaviour should be the following: A certain administrator (already defined with a custom IAM role) user can upload a file to S3 and generate a sharable…
1 2 3
38
39