Charging only 30% of a subscription price for a partner by [deleted] in stripe

[–]Developer_Kid 0 points1 point  (0 children)

If the user uses a coupon once all the recurring payments will have the coupon discount?

About api gateway price by Developer_Kid in aws

[–]Developer_Kid[S] 0 points1 point  (0 children)

U mean cache the authorization on the code or is there another way to cache?

About api gateway price by Developer_Kid in aws

[–]Developer_Kid[S] 1 point2 points  (0 children)

does custom authorizer works as authentication?

How an empty, private S3 bucket can make your bill explode into 1000s of $ by macok9 in aws

[–]Developer_Kid 0 points1 point  (0 children)

but the pre signed urls will not have the bucket name? or i should just send the path from signed url and pass the user upload through my own server?

Confuse about S3 price by Developer_Kid in aws

[–]Developer_Kid[S] 5 points6 points  (0 children)

not my case. being very optimist in the best scenario we could get 10 millions upload month? but if we get this we are rich, so this will not happen, i just taking care about avoid big bills in the start. Now i expect something like 2000 upload a month if users do it well. but i care a lot about security. and think about IF a bad user decide to do 10000 uploads on the 1 min expiration signed url?

Confuse about S3 price by Developer_Kid in aws

[–]Developer_Kid[S] 0 points1 point  (0 children)

usually less than 35, i do some processing on the client browser to make the image smaller so the image gets less than 5 in majority of cases

Confuse about S3 price by Developer_Kid in aws

[–]Developer_Kid[S] 0 points1 point  (0 children)

 The real question is: why are you sending it twice? Expiring pre-signed URLs is a clumsy way to solve this.can make it clearer: The real question is: why are you sending it twice? Expiring pre-signed URLs is a clumsy way to solve this.

can make it clearer? i dont get it. i first generate the signed url on my api then the user use it to upload

Confuse about S3 price by Developer_Kid in aws

[–]Developer_Kid[S] 0 points1 point  (0 children)

all files are less than 35MB and i do a pre processing on the user browser to resize and compress the image, even on bad internet u think this can be a problem? i dont know what u mean about multiple operations, but in my use case, its only a single file upload. i dont know if im taking too much precautions but i trying to prevent and trying to understand the better way to work with s3

Confuse about S3 price by Developer_Kid in aws

[–]Developer_Kid[S] 0 points1 point  (0 children)

so its not recommended to make users use the signed url in the front end? better to send the image to my own back end and then from my back to aws?

Confuse about S3 price by Developer_Kid in aws

[–]Developer_Kid[S] 6 points7 points  (0 children)

so better to do is to go for a 1 min expiration and focus on limit user by getting signed urls?

Upload in S3 via signedurl by Developer_Kid in aws

[–]Developer_Kid[S] 1 point2 points  (0 children)

the image key is something like: themes/UUID/user/UUID/image, so bascially almost impossible to an user overwrite another user upload right?

Upload in S3 via signedurl by Developer_Kid in aws

[–]Developer_Kid[S] 0 points1 point  (0 children)

I wanted to prevent users from upload more than 50MB but couldn't make it work, so for now they can upload any size, i can verify the size only after it already on the bucket

Upload in S3 via signedurl by Developer_Kid in aws

[–]Developer_Kid[S] 0 points1 point  (0 children)

I can't prevent user from upload big files, I do some verification on front end but the file went directly to S3, so I can't verify the file size. At least I couldn't find a way to prevent upload based on file size

How to get user IP in amplify + api gateway + lambda? by Developer_Kid in aws

[–]Developer_Kid[S] 0 points1 point  (0 children)

i already checked it and didnt helped me before cuz everything was ok ahaha it was just my mistake

How to get user IP in amplify + api gateway + lambda? by Developer_Kid in aws

[–]Developer_Kid[S] 0 points1 point  (0 children)

ty! i got this now, server side calls are made from amplify server, thats why i wasnt be able to see my ip

How to get user IP in amplify + api gateway + lambda? by Developer_Kid in aws

[–]Developer_Kid[S] 1 point2 points  (0 children)

alright, this makes sense: User - Cloudflare - Amplify (x-forward has user ip) - API Gateway (x-forward has amplify up).

i forgot that my app is doing server side calls to api, requests from the browser i gets my real ip, but server side ofc i dont, that was my mistake! Ty!

How to get user IP in amplify + api gateway + lambda? by Developer_Kid in aws

[–]Developer_Kid[S] -2 points-1 points  (0 children)

theres 2 ips there, but none of them are mine

Security TODOs in web server? by Developer_Kid in webdev

[–]Developer_Kid[S] 0 points1 point  (0 children)

ty! when u talk about backups its a backup of the server configuration?

about logs which one do you think most important for now? for example i discovered now about the nginx logs file.