News for hackers. Stuff that matters.
Re:Tell HN: I DDoSed myself using CloudFront and Lambda Edge... by jpalomaki on Tuesday June 28, 2022 @12:55PM (#31910149)
Servers can also be liability. You need to document, implement and maintaing hardening, have a process for regularly patching os and apps, monitor logs, have backup and disaster recovery procedures, regularly test the procedures, figure how to implement data encryption at rest, implement high-availability and so on.

Good platform-as-service can solve many things for you and let you focus on the core thing you are providing.

Obviously not everybody needs to worry so much about the stuff mentioned above. If you are providing SaaS solution, there’s a good chance some customer will start asking these questions as part of their procurement process.

Re:Tell HN: I DDoSed myself using CloudFront and Lambda Edge... by rollcat on Tuesday June 28, 2022 @03:13PM (#31911813)
I agree with you in general, that it's best not to solve problems you don't have, but it's worth considering what exactly do the alternatives offer, as you might end up trading one kind of complexity or maintenance burden for another.

Fixed workload, shared dev boxes, all kinds of small-scale operations fit very well onto a bare metal / VPS box in someone else's rack. The maintenance work often boils down to setting up cron with unattended upgrades and borgbackup, Docker with Traefik+ACME as the web frontend, etc.

PaaS solutions will often pull you in the direction of getting "addons" or using extra paid services for every component you might need: a relational database, a cache, a queue, a load balancer... Which are usually a very good call if you need to scale up, but which could've all been entries in your docker-compose.yml if that's all you needed.

Most importantly, and regardless of your hosting strategy, you can't just dismiss security, disaster recovery, or capacity planning. Clouds have outages and bottlenecks too, and no product can save you from human error.

Re:Tell HN: I DDoSed myself using CloudFront and Lambda Edge... by drdaeman on Tuesday June 28, 2022 @03:49PM (#31912184)
> You need to document, implement and maintaing hardening, have a process for regularly patching os and apps, monitor logs, have backup and disaster recovery procedures, regularly test the procedures, figure how to implement data encryption at rest, implement high-availability and so on.

Hey, that's not exactly a correct comparison. You don't simply get half of those in the cloud either. Log monitoring and disaster recovery is something you have to figure out yourself, the best clouds have are some foundations to build upon, and possibly - some cookiecutter template that might fit your use case (if you're really lucky it'll even be decent). And you can get same stuff on traditional servers, just with different pre-baked solutions (which also may or may not fit a particular use case and may vary from perfectly good to quite crappy).

People love to brag about all the features (most not needed for your casual website), but somehow no one tells the fact that those features just won't be there when you'll start to use the cloud - because you have to be actively aware that you need them, explicitly enable some, and explicitly spend time learning, setting up and testing others. Unless we're talking about PaaS (and not a "classic" cloud like AWS, GCP or Azure), you still need someone with some sysadmin experience - except that this person must wear a different kind of sweater (with $Cloud logo rather than Tux or Beastie).

All you get is some hardening an OS + managed software (like LB servers and databases) patching. Which is something that's not that hard to do on a self-managed server (well, the software updates part; hardening is a rabbit hole). But not application patching, mind you - that's your responsibility to maintain your app, the very best it can do is to run a security audit (which you can get as a service separately). And even though managed databases are tuned (still a lot of manual tuning to do if you want the engine to truly purr) and maintained they aren't all that fun and peaches the marketing materials say - sometimes you just have to e.g. spin up your own self-hosted PostgreSQL to perform the tricky migration, then replicate it back to a managed solution.

Re:Tell HN: I DDoSed myself using CloudFront and Lambda Edge... by masukomi on Tuesday June 28, 2022 @03:35PM (#31912034)
> You need to document, implement and maintaing hardening, have a process for regularly patching os and apps, monitor logs, have backup and disaster recovery procedures, regularly test the procedures...

There are many hosts out there who will take care of _all_ of that for you. You just need to install your stuff on the box, and they take care of the rest. Logs and monitoring... you'll prolly want something custom anyway rather than whatever anyone else offers.

> figure how to implement data encryption at rest,

you have to do that anyway

> implement high-availability and so on

again, many hosts who provide easy ways to manage that for you.

Re:Tell HN: I DDoSed myself using CloudFront and Lambda Edge... by icedchai on Tuesday June 28, 2022 @04:37PM (#31912712)
You'd be surprised. I've worked at many startups and mid-sized companies. You don't actually "need" to do most of those things. I've did a consulting job for a company with 100's of millions in revenue that didn't patch its servers for years. One had a 1400 day uptime!
Re:Tell HN: I DDoSed myself using CloudFront and Lambda Edge... by drdaeman on Tuesday June 28, 2022 @04:53PM (#31912874)
> didn't patch its servers for years. One had a 1400 day uptime

Well, this isn't exactly the best practice to follow - but, yes, this is very common, and it works (until someone finds that there's a vulnerability to exploit). So, from a purely practical perspective - software updates are certainly not a hard requirement, one can do quite well without them (just be aware about the risks).

Anyway, there are many fairly age-tested solutions for updating software on the fly, live kernel patching and live network sockets included.

And a lot of cloud software updates (e.g. managed databases) incur noticeable downtime so you need a failover (and appropriate software design that can survive it). But then you can do the very same thing with two servers, no cloud magic necessary.

Re:Tell HN: I DDoSed myself using CloudFront and Lambda Edge... by manishsharan on Tuesday June 28, 2022 @07:02PM (#31914231)
Hardening servers isn't as hard as it used to be. Ansible does a pretty good job and there are several examples of using it to harden your server. If you are using a VPS .. you could use packer and start with a fleet of servers based on your custom image.
Re:Tell HN: I DDoSed myself using CloudFront and Lambda Edge... by drdaeman on Wednesday June 29, 2022 @03:16AM (#31917354)
Oh, I don't disagree, I just meant it can be as complex as you want it to be. Hardening is just a rabbit hole that can go on almost forever - it's never really final until you declare that enough is enough, typically there's always something more one can do, if they have time and capacity.

Also, out-of-box distributions those days can be said to be already "hardened" compared to what we had 15 years ago.

Re:Tell HN: I DDoSed myself using CloudFront and Lambda Edge... by davidfstr on Tuesday June 28, 2022 @03:05PM (#31911734)
> Servers can also be liability. You need to document, implement and maintaing hardening, have a process for regularly patching os and apps, […], have backup and disaster recovery procedures, regularly test the procedures, […] and so on.

Much of this complexity I eliminate by using the Immutable Server pattern:

Specifically I deploy my app as a Docker container hosted on a virtual machine cluster managed by AWS ElasticBeanstalk. OS upgrades and patches (outside the container) are done by AWS.

If anything goes wrong with a VM I just terminate it and a different fresh VM spins up to take its place.

Re:Tell HN: I DDoSed myself using CloudFront and Lambda Edge... by huksley on Tuesday June 28, 2022 @03:52PM (#31912205)
This is that I was thinking doing also - switch to using Elastic Beanstalk.

What do you do if you need to launch another instance of the app? For staging or testing.

Re:Tell HN: I DDoSed myself using CloudFront and Lambda Edge... by jsiepkes on Tuesday June 28, 2022 @01:04PM (#31910269)
I'd rather worry about (and fix) those technical problems then having to deal with possible billing-pocalyse.
Re:Tell HN: I DDoSed myself using CloudFront and Lambda Edge... by folkhack on Tuesday June 28, 2022 @01:43PM (#31910701)
Also the cost of those services vs. a few well-configured basic VPS hosts is nuts. I was shocked to learn that to get MySQL/Postgres in GCP it's often >$40/month - even for the insanely tiny instance sizes. We're talking for like 20G storage...

In contrast I've ran some pretty hot-and-heavy MySQL/Postgres databases on basic DO/Linode VPS's for half of that cost with much success. I get these cloud tools give a ton of "out of box" features - but you are paying for it at the end of the day.

Anecdotally I've noticed a huge shift away from general devs/engineers having general CLI/Linux/sysadmin knowledge.

Re:Tell HN: I DDoSed myself using CloudFront and Lambda Edge... by turtlebits on Tuesday June 28, 2022 @02:23PM (#31911170)
If you had no knowledge on standing up a DB server (installing, configuring, monitoring, logging, access control, and backups, restricting network access), how much time would that take you to learn? That and your VPS requires setup for access control, patches, updates, monitoring, logging.
Re:Tell HN: I DDoSed myself using CloudFront and Lambda Edge... by folkhack on Tuesday June 28, 2022 @02:40PM (#31911375)
Point taken, upvote given, but for a lot of people standing up a standard redundant DB config for MySQL and Postgres isn't that big of a deal.

I say this as an engineer who has a ton of relational DB experience. Before cloud providers w/DB options were so plentiful devs/engineers/sysadmins would have to set this up by hand.

---

> If you had no knowledge on standing up a DB server

My point is, "but yea what if you do?" There's actual value in that I've found, especially when I'm looking to save pennies at the early-stage of a startup while in the customer aq phase. Many folks have expertise in those areas without needing a cloud provider.

I do get the "but all of these things!" argument (access control, patches, updates, monitoring, logging) but often those are easily solved/solvable problems even without leveraging cloud offerings. I can get very far along with an ELK/TIG stack + uptime robot and basic VPS networking features... all for a very affordable monthly bill on the infra.

Re:Tell HN: I DDoSed myself using CloudFront and Lambda Edge... by fartcannon on Tuesday June 28, 2022 @04:11PM (#31912419)
Starting a db on a web-server and running apt update/upgrade are fundamental parts of working on the web.

If you or any of your developers don't know how to do that, you/they should seriously seriously spend the 40 minutes it takes to learn.

Re:Tell HN: I DDoSed myself using CloudFront and Lambda Edge... by moreira on Tuesday June 28, 2022 @05:55PM (#31913562)
I feel like that’s where you separate the pre-cloud and post-cloud devs.

It’s not hard to imagine a dev being brought up 5 years ago into a React world, with JS in the backend and something like Vercel or Netlify to deploy their app.

Someone like that might be entirely uncomfortable when dumped into a plain old Linux server, and would definitely take longer than 40 minutes to even get their head wrapped around what’s going on.

That’s not a knock on them - they get their job done, and to the business that’s all that matters. But yeah, just trying to, I don’t even know, empathise? Try to understand? Who knows. It’s just a different world now.

Re:Tell HN: I DDoSed myself using CloudFront and Lambda Edge... by fartcannon on Tuesday June 28, 2022 @07:06PM (#31914265)
Symapthy, is more like it. Theyve been convinced by the cloud rental services that it's different now and too hard, when it's really not because all that SaaS is still running on a webserver. There's just a new gate keeper with a huge marketing budget that charges by the minute now.
Re:Tell HN: I DDoSed myself using CloudFront and Lambda Edge... by justsomehnguy on Wednesday June 29, 2022 @04:49AM (#31917813)
> and would definitely take longer than 40 minutes to even get their head wrapped around what’s going on.

If a grown up person (who is presumably making a good money in their React/JS thing) can't figure on how to install a web server in 40 minutes (with all SO, Google and a bazillion of articles on how to do so) then...

Like come on, twenty years ago you still needed to get your ass off the chair and go to the bookstore, find and buy a proper book and actually read it. Now you just need to type "Ubuntu 20 install webserver" in to the search and voila.

Re:Tell HN: I DDoSed myself using CloudFront and Lambda Edge... by justsomehnguy on Wednesday June 29, 2022 @04:44AM (#31917794)
The same amount of time if I would need to "stand up" a rented DB, including figuring out a bazillion of providers and options, configuring proper instance sizes, turning needed knobs for backups to work... Or you suppose what a rented service doesn't need anything at all?
Re:Tell HN: I DDoSed myself using CloudFront and Lambda Edge... by throwaway894345 on Tuesday June 28, 2022 @03:22PM (#31911896)
Serverless is almost always a trivial cost compared to VPS. With lambda, you get like 1M free invocations per month and the price per ms is `$0.0000000017` for 128MB on ARM.

If your endpoint takes 10ms to run and you're running it constantly for a month, it will cost you less than $0.05 (it will actually be about half of that because you get the first 1M invocations free each month, but ignoring that...).

As you point out, running RDS is more expensive, but RDS isn't serverless. You would probably want to look at DynamoDB for a serverless database, which is considerably more affordable than RDS.

Moreover, the serverless stuff is considerably easier to configure and operate than a VM.

Re:Tell HN: I DDoSed myself using CloudFront and Lambda Edge... by icedchai on Tuesday June 28, 2022 @04:43PM (#31912761)
A 10ms invocation sounds like a myth. I've certainly never seen one that low for a lambda that actually does anything. All the serverless stuff I've worked with (mostly in Python) operates slower than a CGI script. 100's of milliseconds minimum. When your serverless endpoint needs to integrate with other AWS services, the configuration can get complicated fast. VPC endpoints, IAM roles, security groups... it goes on and on.
Re:Tell HN: I DDoSed myself using CloudFront and Lambda Edge... by throwaway894345 on Tuesday June 28, 2022 @04:55PM (#31912894)
If your lambda runs very infrequently, you'll see more cold starts which will take hundreds of ms, but warm starts are pretty easily in the single-digit milliseconds (at least for a Go lambda). If you're doing a bunch of compute or sync I/O in a loop then your functions will take longer.

But less frequent invocations are actually an even better case for Lambda versus a VPS because it suggests less wasted time (yeah, you have to pay for cold starts, but with a VPS you're paying for all of that time your service is up irrespective of whether or not it's being used).

> 100's of milliseconds minimum. When your serverless endpoint needs to integrate with other AWS services, the configuration can get complicated fast. VPC endpoints, IAM roles, security groups... it goes on and on.

This is all true for a VPS as well. Assuming you care about reliability, you need to run multiple instances of your VPS behind a load balancer which implies a fair bit of networking. Moreover, you need to manage the hosts themselves, so configuring log aggregation, metrics collection, process management, SSH, deployment, hardening, etc, etc, etc.

Further still, your compute will need to communicate with the comparable services as in your lambda hypothetical, so you still need to deal with IAM and some more networking stuff. Maybe you'd say "gotcha! I would just run my databases on my VPS instances!" which is cool, but now you need to configure monitoring, backups, replication, failover, and so on for your databases versus using DynamoDB (and I would bet a lambda/dynamodb workload than the same workload on a reliable VPS/whatever-database stack).

Of course, if you're running a hobby blog or something that doesn't need reliability of scalability, then a $5 VPS is probably fine (maybe even an S3 bucket behind a CloudFront distribution, which would likely be free).

Re:Tell HN: I DDoSed myself using CloudFront and Lambda Edge... by icedchai on Tuesday June 28, 2022 @08:56PM (#31915172)
Yes, cold starts are definitely a problem. One of the advantages of VPSes is its all hot, ready to go, obviously. You pay for that performance, for that lower latency, and I'm fine with that.

My big problem with lambda / serverless is the developer experience is pretty awful. The time between making a change, deploying, and seeing the result of that change is slow. You can work around this (with tools like localstack), but it's often not close enough to the real environment. You'll still waste tons of time debugging permissions issues when you do a real deploy.

Re:Tell HN: I DDoSed myself using CloudFront and Lambda Edge... by throwaway894345 on Tuesday June 28, 2022 @11:35PM (#31916181)
Yeah, it depends on the application. If you're very latency sensitive, then you'll probably want to keep your lambda warm or just pay more for VPS. But the original context was cost, not latency.

> My big problem with lambda / serverless is the developer experience is pretty awful. The time between making a change, deploying, and seeing the result of that change is slow. You can work around this (with tools like localstack), but it's often not close enough to the real environment. You'll still waste tons of time debugging permissions issues when you do a real deploy.

I haven't had much of a problem. Once I figure out the shape of the inbound payload, it's pretty easy to test locally. I can't think of any reason the runtime environment would be an issue. Debugging IAM is tedious, but I just created one Terraform module that I use for all of my functions so I don't have to slog through the IAM stuff every time I make a function.

Re:Tell HN: I DDoSed myself using CloudFront and Lambda Edge... by icedchai on Wednesday June 29, 2022 @09:03AM (#31919540)
I personally have not had a lot of problems with local lambda development. However, when assisting coworkers, I often see problems where dependencies aren't packaged properly (lambda layers), permissions are missing, code is not properly modularized (everything in one big handler file), people editing code live on AWS to debug problems they can't replicate locally, etc.
Re:Tell HN: I DDoSed myself using CloudFront and Lambda Edge... by folkhack on Tuesday June 28, 2022 @04:11PM (#31912425)
> Moreover, the serverless stuff is considerably easier to configure and operate than a VM.

Yep - and to be 100% candid on my current project I'm running 100% with GCP Functions, AppEngine Task Queues, and Firestore for persistence. I'm also AWS certified and have worked as a DevOps engineer in a PCI-regulated environment leveraging things like DyanmoDB, Lambda, etc.

Cool part about running that way is my current billing is near zilch. Woo! Totally on-board with what you're saying... literally living it now =)

I'm just saying that there's a ton of ways to skin a cat. And, personally I wouldn't paint with as large of a brush to say "serverless stuff is considerably easier to configure and operate than a VM." A lot of times this rings true, but I anecdotally wouldn't say it is always the case.

I'm being pedantic, but I'm also trying to make a case that not always do cloud design patterns/"best-practices" make sense.

Re:Tell HN: I DDoSed myself using CloudFront and Lambda Edge... by jjav on Tuesday June 28, 2022 @04:21PM (#31912523)
> Serverless is almost always a trivial cost compared to VPS.

Not my experience. Our AWS lambda cost is close to $1K/month and the usage isn't that much so we could easily host this on a few (for redundancy) of the smallish VPS instances for far less money.

Re:Tell HN: I DDoSed myself using CloudFront and Lambda Edge... by throwaway894345 on Tuesday June 28, 2022 @05:17PM (#31913130)
For batch workloads (not latency sensitive, can run at or near full capacity, etc), but most of the time Lambda is more affordable. You'll need to say more about your workload though.
Re:Tell HN: I DDoSed myself using CloudFront and Lambda Edge... by jpalomaki on Tuesday June 28, 2022 @01:37PM (#31910650)
Take for example OS and app upgrades. Quite often you have few requirements, for example 1)all updates should be first tested in test env 2)updates need to be installed in timely manner 3)critical updates need to be installed quickly (30 days is too slow)

When you start thinking these, they are not so easy. (1) means you can’t just run “apt upgrade” on every server - you need to manage the updates to make sure they get tested first. (2) is kind of ok, but requires some work on regular basis (at least checking things) (3) means you need to monitor the updates for your stack and classify them. You can get feeds for example for Ubuntu, but does that cover whole stack. And checking these weekly (or daily) actually gets boring.

All this stuff can be done, but IMHO it is time consuming and takes time from more important things. The weekly/monthly JIRA tickets for checking x, y and z get quite annoying when you also have n other things to finish. Then you start slacking on them and feel the pain when trying to collect evidence for the next procurement process check.

If you have tens or hundreds of servers and can have a separate infra team with professional sysadmins then this is all fine. My rant is mainly for small teams, where same guys are supposed to develop and run things.

Re:Tell HN: I DDoSed myself using CloudFront and Lambda Edge... by wooque on Tuesday June 28, 2022 @02:17PM (#31911106)
Small teams should just configure apt unattended upgrades and call it a day. I do this with my personal server and haven't had any issues for years.
Re:Tell HN: I DDoSed myself using CloudFront and Lambda Edge... by remram on Tuesday June 28, 2022 @07:43PM (#31914561)
You should probably reboot it then.
Re:Tell HN: I DDoSed myself using CloudFront and Lambda Edge... by ImPostingOnHN on Tuesday June 28, 2022 @03:40PM (#31912088)
I'd rather have to to plan and budget than have to deal with patching (after testing the patch) every piece of software on a system the moment a patch comes out to avoid an undetectable rootkit being installed during that gap
Re:Tell HN: I DDoSed myself using CloudFront and Lambda Edge... by throwaway894345 on Tuesday June 28, 2022 @02:45PM (#31911449)
An occasional $4K charge is negligible for a business (almost everyone is better off dealing with this sort of overrun than troubleshooting servers, all else equal), and anyway this is a particularity of AWS CloudFront's billing protections rather than a fundamental flaw with serverless.
Re:Tell HN: I DDoSed myself using CloudFront and Lambda Edge... by ggktk on Tuesday June 28, 2022 @05:03PM (#31912988)
In most countries in the world, $4K charge is absolutely not negligible.
Re:Tell HN: I DDoSed myself using CloudFront and Lambda Edge... by throwaway894345 on Tuesday June 28, 2022 @05:22PM (#31913182)
I doubt this is true. If you're operating a tech company anywhere in the world, I'm guessing $4K is pretty close to negligible. In whatever case, indexing by country is misleading, "tech companies" in general is more interesting, if there are a handful of tech companies in the third world for which this doesn't hold, it doesn't invalidate the generalization.
Re:Tell HN: I DDoSed myself using CloudFront and Lambda Edge... by jsiepkes on Wednesday June 29, 2022 @08:44AM (#31919365)
In SMB companies around the world "an occasional $4K charge" is definitely not negliable.
Re:Tell HN: I DDoSed myself using CloudFront and Lambda Edge... by throwaway894345 on Wednesday June 29, 2022 @09:45AM (#31920014)
Again, we’re not talking about SMBs, we’re talking about tech companies generally. (What share of SMBs are there doing serverless or with any cloud footprint at all?)
Re:Tell HN: I DDoSed myself using CloudFront and Lambda Edge... by cft on Tuesday June 28, 2022 @01:27PM (#31910512)
I ran a website with 37 million users and 3.6Gbps peak bandwidth (JavaScript+thumbnails, no video) from my own two racks of Linux servers thay i have not systematically updated for years. The OSes were beyond the lts support winows. I manually compiled my own updates, but very rarely and only those that i deemed critical. Granted, the site stack was completely custom so the standard automated hacks didn't work. In 15 years there were no accidents.
Re:Tell HN: I DDoSed myself using CloudFront and Lambda Edge... by booi on Tuesday June 28, 2022 @01:51PM (#31910782)
I dont think this should be standard. It sounds like you’re saying you ran a service with 37 million people’s information on a software stack that was so old that not even the vendor is supporting it anymore and could be riddled with security issues that you wouldn’t even know much less be able to detect? It may work but certainly not going to get any security certifications this way..
Re:Tell HN: I DDoSed myself using CloudFront and Lambda Edge... by cft on Tuesday June 28, 2022 @01:57PM (#31910861)
I hardly stored any PII. Also, this was a high profile site that you know: if it was hacked, they would probably try to deny access and extort: it would make a lot of monetary sense. We would also have lost our merchant accounts very quickly (although CC numbers were not stored, only MD5s, but i suppose they could have been captured from the application's memory after TLS decryption but before MD5 hashing, although this would have been a difficult task even on a rooted server). I am 99.999% confident by observing and recording loads, traffic, logs and other parameters of all servers that there were no intrusions. I understand that there's market size and appeal for bureaucracy and certifications, but i have my own data.
Re:Tell HN: I DDoSed myself using CloudFront and Lambda Edge... by krallja on Tuesday June 28, 2022 @09:28PM (#31915399)
MD5(CC#) is trivially reversed, so I hope that’s not what you were doing.
Re:Tell HN: I DDoSed myself using CloudFront and Lambda Edge... by booi on Sunday July 03, 2022 @11:53PM (#31973337)
Omg. cft should not be allowed anywhere near credit card numbers.
Re:Tell HN: I DDoSed myself using CloudFront and Lambda Edge... by Fnoord on Tuesday June 28, 2022 @02:11PM (#31911036)
Do you save logs? If yes, there's your PII.
Re:Tell HN: I DDoSed myself using CloudFront and Lambda Edge... by cft on Tuesday June 28, 2022 @02:19PM (#31911128)
Thankfully, the servers were not in Europe! I said "hardly". It's genuinely amusing how people downvote facts, simply because they don't fit the zeitgeist.
Re:Tell HN: I DDoSed myself using CloudFront and Lambda Edge... by Fnoord on Tuesday June 28, 2022 @06:13PM (#31913766)
Nobody mentioned Europe, except you. If you are referring to GDPR this still applies if you host outside of Europe.

We disagree webserver logs contain 'hardly any PII'. You may find it insignificant PII, but it does not constitute 'hardly'. IMO its a circumstantial goldmine.

Re:Tell HN: I DDoSed myself using CloudFront and Lambda Edge... by cft on Wednesday June 29, 2022 @06:32PM (#31926508)
In the US at least one court found that IPs were not PII

https://www.huntonprivacyblog.com/2009/07/10/washington-cour...

I am curious who "we" are- a royal plural?

Re:Tell HN: I DDoSed myself using CloudFront and Lambda Edge... by Fnoord on Thursday June 30, 2022 @04:24AM (#31929975)
And in EU, it is.

We referred to you and me.

Re:Tell HN: I DDoSed myself using CloudFront and Lambda Edge... by TurningCanadian on Tuesday June 28, 2022 @02:27PM (#31911218)
Not to mention that a successful compromise could be used to serve malware to the users.
Re:Tell HN: I DDoSed myself using CloudFront and Lambda Edge... by Fnoord on Tuesday June 28, 2022 @02:10PM (#31911022)
With unattended-upgrades you might get away with such behavior. Also, spme webservers have a great track record. Then its the question if your other services are secure, and your JS/CSS.
Re:Tell HN: I DDoSed myself using CloudFront and Lambda Edge... by cft on Tuesday June 28, 2022 @02:21PM (#31911155)
Nginx and apache (upgraded from 2.2 to 2.4 once)
Re:Tell HN: I DDoSed myself using CloudFront and Lambda Edge... by tete on Tuesday June 28, 2022 @06:03PM (#31913659)
> Servers can also be liability. You need to document, implement and maintaing hardening, have a process for regularly patching os and apps, monitor logs, have backup and disaster recovery procedures, regularly test the procedures, figure how to implement data encryption at rest, implement high-availability and so on.

That is true.

> Good platform-as-service can solve many things for you and let you focus on the core thing you are providing.

I don't see how with platform-as-a-service solutions you can skip documentation, maintenance, log monitoring, disaster recovery, backups, test procedures, or encryption at rest.

Re:Tell HN: I DDoSed myself using CloudFront and Lambda Edge... by asddubs on Tuesday June 28, 2022 @02:49PM (#31911504)
you can get servers with managed hosting, still at a fixed rate each month