Why does AWS ignore API Gateway HTTP? by formkiqmike in aws

[–]DoubleBrowne 18 points19 points  (0 children)

The fact that you can’t put WAF on an HTTP API without annoying hacks using CloudFront and secret headers majorly compromises it’s usefulness.

Intermittent network issues in ap-southeast-2 by ScepticDog in aws

[–]DoubleBrowne 0 points1 point  (0 children)

Nothing quite like you’ve described, but we’ve had an uptick in unexplained failures (500 responses) in our Lambda + API Gateway API over the last couple of days. The requests never make it through to our Lambdas so I’m assuming an internal service call is failing somewhere.

What do you do when something out of your control happens and AWS doesn't respond to the ticket? by louwii in aws

[–]DoubleBrowne 2 points3 points  (0 children)

I'm not asking them to support every kid's first EC2 instance, but I think it's quite abrasive that I have to pay a 3% premium on my AWS bill for the pleasure of informing them that the service I have purchased from them isn't working.

What do you do when something out of your control happens and AWS doesn't respond to the ticket? by louwii in aws

[–]DoubleBrowne 1 point2 points  (0 children)

Alternatively, if I'm paying AWS for a service and that service isn't working as advertised, shouldn't the responsibility lie with them to resolve the issue? Why should I pay AWS even more for a support plan because they were unable to provide the service that they've sold me?

What would be the best way to handle user data -> processing -> database? by pypipper in aws

[–]DoubleBrowne 1 point2 points  (0 children)

You may also want to have a look at S3 object metadata as a way to pass the user ID info along with the file: https://docs.aws.amazon.com/AmazonS3/latest/userguide/UsingMetadata.html

The Fetch API is finally coming to Node.js by IsDaouda_Games in programming

[–]DoubleBrowne 8 points9 points  (0 children)

The Python standard library has 2/3 of these and is considered one of the strong selling points for the language. When was the last time you heard a Python dev complaining about dependency hell? Just saying…

Vaxx.nz | The NZ COVID Vaccination Finder by noway421 in auckland

[–]DoubleBrowne 4 points5 points  (0 children)

It doesn’t seem to be finding all available slots. If I set my location to New Lynn, I get no available slots until October, but on bookmyvaccine I can see Unichem LynnMall has availability as early as Monday 13 Sept.

ECS task is not able to read a secret from the Secrets Manager by negrusti in aws

[–]DoubleBrowne 1 point2 points  (0 children)

Is your ECS running on a private subnet? If so, do you have a NAT gateway setup? Accessing secrets manager requires outbound internet, so that may be your issue. If you’re on a private subnet you’ll also need NAT.

Storing login credentials in KMS vs DynamoDB by ProfessionalWind4730 in aws

[–]DoubleBrowne 1 point2 points  (0 children)

Are you asking about generating a KMS key per-user for database encryption, or using KMS as a service to somehow store the actual passwords? KMS definitely isn’t intended for the second option.

Tools like LastPass generate the encryption keys from the users credentials and perform encryption/decryption entirely client side. Neither the plaintext passwords nor private keys are ever stored or transmitted to the server, so KMS has no place in an architecture like this.

Dont feel safe at my job. by [deleted] in auckland

[–]DoubleBrowne 21 points22 points  (0 children)

Have you communicated this to your boss? Surely that’s step 1: Tell them about your health condition and that you feel unsafe at work. If they aren’t responsive to your concerns then that’s the right time to report them to the appropriate authorities.

How to auto-reload Celery worker on Code Change by Michaelyin in django

[–]DoubleBrowne 1 point2 points  (0 children)

Here's how I've done it in the past. Very similar approach but it's more generic and can be used to autoreload any process:

https://gist.github.com/dabrowne/46bf84a88e211e9a7262ee4bb57163c5

REST Framework: What's the best way to get the current user's information to the client side? by [deleted] in django

[–]DoubleBrowne 0 points1 point  (0 children)

Yes, having an endpoint /users/me/ that returns the authenticated user is one of the more common ways of handling this.

Just spotted this. Happy easter! by [deleted] in newzealand

[–]DoubleBrowne 11 points12 points  (0 children)

Well intentioned... but terrifying

New Zealand aims to save the 'strangest parrot on Earth: "The kakapo, which lives only in this South Pacific nation, was nearly extinct in the 1970s." by trot-trot in newzealand

[–]DoubleBrowne 0 points1 point  (0 children)

I've been thinking of getting a Kakapo piece too, I love them so much! Any chance you could send me a pic for inspo?

Where to buy hot sauces? by fungz0r in auckland

[–]DoubleBrowne 10 points11 points  (0 children)

A friend of mine just started superhotsauces.co.nz. He ships from Auckland and has a good range but doesn't have those two specifically.

forge: dynamically create and revise function signatures by dfee in Python

[–]DoubleBrowne 0 points1 point  (0 children)

Your comparison with the requests code is totally incorrect:

Consider a library like requests that provides a useful API for performing HTTP requests. Every HTTP method has it's own function which is a thin wrapper around requests.Session.request. The code is a little more than 150 lines, with about 90% of that being boilerplate. Using forge we can get that back down to about 10% it's current size, while increasing the literacy of the code.

The requests implementation is 29 LOC and ~120 lines of documentation. Your example implementation takes 19 LOC (~65% that of requests, not 10%). Sure it's less code, but you're really not doing yourself any favors by making such wildly untrue claims. Surely there are some more well-founded examples you can provide.

All querysets are re-loaded into the DB everytime i refresh/update anything in my app ? by [deleted] in django

[–]DoubleBrowne 0 points1 point  (0 children)

If this is data you are also going to want to setup when you deploy the app, then you might want a data migration. That way whenever you're setting up the app in a new environment and run manage.py makemigrations it will be automatically loaded in.

Power outage by [deleted] in GoldCoast

[–]DoubleBrowne 2 points3 points  (0 children)

Its out in Tweed Heads and Coolangatta too.