Better HN
topnewbestaskshowjobs
Log inSign up

ransackdev

310 karma · joined Apr 14, 2023 (3y ago) · 137 submissions

Submissions

comment 3y ago · link · parent

The choices aren’t k8s or managed cloud offerings.

The choices are k8s, managed cloud offerings, bare vms, or bare metal.

Managed cloud offerings are expensive. Plenty of shops are still provisioning virtual machines from a minimal OS image, or renting cheap metal that can get them much further for a fraction of the cost.

Plenty of people operate in a pre-container orchestration world today and that isn’t going away.

comment 3y ago · link · parent

My guess: commenter will soon claim that docker containers and yaml manifests are too complicated. That’s what I tend to see when vague comments like this are left.

Now, I saw a straw man somewhere…

Is there a learning curve to adopt k8s? Of course! What tech doesn’t have some sort of learning curve?

If you are an application developer, there’s very little of the underlying systems that you need to know about or be concerned with. Build a container image that runs your process and exposes a port. Some trivial yaml can launch that image and attach storage and network. Everything else is done for you.

Sure, things get more complicated if you have complicated deployment needs or try to run workloads in k8s in a non-standard way, but that’s true of any system.

Before container orchestration systems there was just as much complexity. You had to ship the code to remote machines, maybe with config management, but probably ssh and a git pull. You had to signal a restart, to some process monitor, init.d, systemctl, or something like eye or god. You had to check if the service was available. You had to expose ports and route traffic. You had to handle crashes. You had to reboot. You had to monitor resource usage. You had to secure the network. You had to bubble up events to be visible to operators, you had to handle phased rollouts. You had to be able to rollback failures.

The list goes on…

There’s just as much complexity deploying services at scale with or without k8s. Without k8s though (or nomad to some extent), all that complexity is scattered across various ad-hoc systems that are OS dependent whereas k8s wraps everything and exposes a common and documented api, and an orchestrator that gathers and emits easily digestible events every step of the way. It’s a framework in a sense. The same way you can jump into a rails code base and know generally where to find things, you can ship your container images to any k8s cluster and should be able to get the same results with little to no drift between each cluster.

Does everyone need k8s? Most don’t need it. But, I’ll argue that if you’re deploying services in a highly available and fault tolerant way, you’re going to be just as complex, if not more, without k8s.

comment 3y ago · link · parent

https://imgflip.com/i/7qwwn2

comment 3y ago · link · parent

Curious if you tried the devcontainer cli [1] to build your devcontainer.json?

DevPod is another implementation of the devcontainer spec, the most used one being the aforementioned devcontainer cli which vscode uses, or supplies, via its integration.

If you’re having problems with DevPod while they iron out the kinks you might want to try the devcontainer cli, which can build the images, and run them.

1. https://github.com/devcontainers/cli

comment 3y ago · link · parent

So you’re saying that you can be sued for telling a story, based on your life experience, just because someone on the internet interpreted it as advice?

So then every comment ever made that wasn’t intentional trolling and fiction then. Must be a backlogged court system with all those cases of someone being held liable for the perception of another. How does one prove they perceived something as advice? Wouldn’t it be easy to throw out short of the comment literally saying, “my advice would be”.

comment 3y ago · link · parent

How does this work when there are many processes running livebook, behind a web server reverse proxy like nginx, there is no sticky sessions in place (because hot spots on certain upstreams kinda defeats the purpose of a load balancer), and the user that kicked off that async pdf job on PID 1, inside container 1, refreshes their browser and is now connecting to container 2, which is running a different Linux process than where the pdf task is running in a thread? Now add in the fact that container might be on a different node/vm in the cluster, different AZ, or different region/data center.

Background worker systems like Oban or sidekiq are where you want to run your async work imo. You can still do a pub/sub type notifier model to bubble up the job’s completion, or poll. Polling is perfectly acceptable for most apps and traffic levels and is simpler to mentally grok compared to websockets and persistent connections. Websockets require a central broker to pass messages through when you scale past one process and with elixir the options are the redis pubsub adapter, or for container based deployments or those wanting to use the built in distributed erlang functions, libcluster. More complexity. More points of failure. More potential centralized bottlenecks. More things to mentally model when debugging. More dev and prod drift. Just poll, until you can’t scale your web servers any more. It’s just an http request. It’s already implemented if you’re serving web traffic.

It’s not clear based on what you wrote but are the pdf’s contents being passed in the complete message? That sounds like an OOM termination that’s hard asf to track down just waiting to happen. PDF should go into blob storage somewhere and the task should bubble up a complete message, which then is used to signal the retrieval and proxying of the file to the user. If you have to background the pdf generation, it’s slow. If it’s slow to generate a document, it’s large. You don’t want that to be pushed through memory because your system stability is then coupled to not only the contents of a document that could exceed the memory of the system, but also is at the mercy of how many users/requests are all generating pdfs at the same time, and of course you’ll have that one guy spamming the “generate” button and queuing up 300 jobs because we didn’t need indicators on the UI and who adds uniqueness constraints to internal tools ;) Disks and file systems are for passing very large messages on a system

comment 3y ago · link · parent

Only people who would need to leave a disclaimer would be lawyers, and even they are saying it's out of an abundance of caution to ensure they are not viewed as giving a client legal advice.

https://news.ycombinator.com/item?id=36130359

comment 3y ago · link · parent

The point is, if the original article is bogus and full of lies it should be trivial for the security community to debunk any back door claims and set the record straight, yet that isn’t being done while still calling for the original article lacking any proof be taken down.

Someone on one of these sides needs to provide evidence to support their claims. Clearly the authors of the original article have no intention or it would have been done already.

comment 3y ago · link · parent

I was once approached by a company located in a major city in Ohio. They were pitching me to come work for them but the role required getting clearance to do the work, because they were contracting for the federal government.

Without said clearance, all they could tell me was they scraped the open internet and built profiles on citizens, and then would surface this info in an easily searchable interface. I declined getting clearance and going deeper than that.

If some random ass company in Cleveland is doing contract work equivalent to the things Snowden exposed, it’s happening everywhere else, and nobody has a damn clue. This was after Snowden exposed Prism.

We’re fucked.

comment 3y ago · link · parent

So am I to understand that from an OpSec perspective, connecting a machine to a known compromised system, is ok to do, “because you want internet”?

Maybe because I’m not opsec and don’t know my ass from a hole in the ground, but my security recommendation would be, no, do not purposely connect your machine to a known compromised system regardless of its advertised purpose, attack vectors, attack surface, probability of unwanted exploitation, or justification as to why it’s necessary to do so, because you’re exposing yourself, and possibly corporate machine and network, to compromise. Find a trusted system (aka audited and considered reasonably low risk while acknowledging no system can ever be deemed fully secure and trust, or zero trust is a large determining factor) and consider the compromised machine as not existing at all, therefore not being an option at all, because connecting to it would go against common sense and 8th graders practice better security habits

comment 3y ago · link · parent

They aren’t inserting junk, they just don’t do anything to rank quality results above the junk anymore. The junk was always there, on page 2 and beyond, and who would ever need to hit those pages. Nowadays I’ll be 15 pages deep and so far off base of the search term that I could write a better index with curl and regex.

The issue isn’t that they are watering down the cream in the milk, it’s that the cream isn’t part of the milk at all now.

comment 3y ago · link · parent

Easily solved by said security professionals auditing the security of the devices, refuting the claims in the Bloomberg article, and throwing it all up on a blog with catchy “No, china didn’t backdoor servers headed to US gov datacenter racks” title.

comment 3y ago · link · parent

Great article. Just like the ones before it.

I’m waiting for the articles where people are convicted of crimes…

I won’t hold my breath, for justice anyway, just for protection from my government experimenting on me without consent while policing themselves and accountable to nobody.

comment 3y ago · link · parent

> it's instead about giving up and accepting a harmful situation that is perceived as unavoidable

So we could clear up the confusion about what "learned helplessness" means by instead calling it, "hopelessness", or "despair"?

Interestingly enough, the definitions of hopelessness and despair are circular references to each other:

hopelessness | ˈhōpləsnəs |

noun

a feeling or state of despair; lack of hope

despair | dəˈsper |

noun

the complete loss or absence of hope

Huh, weird

comment 3y ago · link · parent

A few reasons they don't cover that sort of thing in articles like this imo:

1. Graphql brought back n+1 problems for many popular frameworks/languages

2. This article's goal is to convert readers into paying customers, never forget that. Engineers at shops with large scale systems and problems like what you've outlined are not who will be reading this article and are not people who would pay for appsignal. They likely have existing performance monitoring systems that are either too specific to their systems, too entrenched into their infra, or more advanced for their needs.

In the end this article is marketing, and effective marketing casts the widest net to get as many people into the funnel as possible. When you look at it that way, common scaling problems, like n+1 is going to buy more customers for the cost of this marketing campaign compared to the hyper-niche pool of shops worried about decoupling database:api 1:1 mappings

comment 3y ago · link · parent

Funny that people call these "bugs" as if anything related to google search happens on accident.

They don't need to waste the eng resources or infrastructure on rock solid search anymore, they own the market and got all the users into their funnel of products, most locked in for life.

Search results still show sponsored listings, they still have all the users, and all the profit, and a lot less of the profit sucking operational costs it took to be good at what made them a household name, search

comment 3y ago · link · parent

I'd like to know where companies like https://www.hawkanalytics.com/cellhawk/ and https://en.wikipedia.org/wiki/Fog_Reveal get location data on US citizens legally without the permission of those citizens, and how them buying such info isn't illegal surveillance, and how reselling the data to law enforcement is not selling stolen property for them, and receiving stolen property for the fuzz (assuming, maybe wrongly so, that I own my location data as PII)

comment 3y ago · link · parent

If the hotspot were compromised, why would you connect to it at all?

comment 3y ago · link · parent

> NOTE: I am not a lawyer, and this is not legal advice. This is for informational and entertainment purposes only

Asking because I don't know - I see this a lot, but is it necessary? Surely we don't live in a time where a commenter on a news site is liable for their opinion, right?

comment 3y ago · link · parent

Irony; NSA, CISA, and DOJ release cybersecurity bulletin as a pdf attachment

comment 3y ago · link · parent

> This just sounds like a gateway to the widespread open robbery and stealing

If it looks like a duck, and quacks like a duck...

comment 3y ago · link · parent

Do you type faster than what javascript is able to handle?

comment 3y ago · link · parent

Couple things to consider

1. Check your competitors who return json and see if they have a Location header 301'ing or 302'ing all their traffic to your service (if the client follows redirects).

2. Reverse dns lookup your origin ips and see if anyone has a domain's dns pointed at your service. Check the Host header on your end and make sure it's your domain as well as ensure your web server and/or proxy are not blindly accepting traffic for `*`/any host, and make sure it's serving only your host

3. Ip address headers can be spoofed. It might not be coming from where you think it's coming from

comment 3y ago · link · parent

You mentioned low income countries. This could be infected devices running ancient unpatched OSes, but what if the traffic is legit, coming from impoverished countries who found your service and use it to teach their children and learn things they'd otherwise not have access to?

Personally I would deep dive the traffic and try to determine the intent behind it, you could be destroying a future generation's potential, and not blocking malware I'm assuming you can correlate the requests from those ips with that they are translating. Odds are someone is hitting your service to translate for their paid service, but if it's an important part of a poor country, I'd find a way to allow it to keep happening

> AFAIK we couldn't see translation requests from them, just loading our website.

Browser homepage? Or maybe the unlucky victim of a "connectivity check/am I online" recurring task

comment 3y ago · link · parent

There's a huge difference between blocking traffic to keep your servers online (you are the good guy) and returning payloads that are intended to break consuming services (you are the bad guy, performing a premeditated malicious act on unsuspecting devices, across state lines)

comment 3y ago · link · parent

You didn't get kicked out, you got played. They bank on the fact that most people will eat less than the price of admission, kinda almost like the ones who under eat the admission cost subsidize the ones who overeat the admission cost. Kinda like the paying customers for a service usually subsidize the running costs of the free tier. The buffet advertised all you can eat, you paid them, that's a contract. Unless there's fine print that you agreed to, you had no obligation to leave before you had your fill if they were open still. America 101, contracts and liability for breaches of contracts.

For example here's the Backblaze team verifying that their unlimited personal backup is indeed unlimited, with one single user storing 430TB for $6/month. The users spending $6/month who use a couple GB more than offset the cost of the 430TB guy. If your business model doesn't support the ability to get in the black, you have a failing business. This isn't the user's responsibility to fix, it's the failing service with a bad business model.

> As you can see, we lose money on a few customers at the high end (we cannot store 430TB of data for only $6/month), but since more customers just want to be reasonable and backup their laptops we are profitable and fully sustainable on the "average"

> Somebody who is costing Backblaze $2,150/month and is only paying $6/month :-)

https://www.reddit.com/r/IAmA/comments/b6lbew/comment/ejlbsq...

comment 3y ago · link · parent

pihole and other dns blocklists would reduce traffic to their service, not increase it

comment 3y ago · link · parent

> there's a reasonable common sense expectation

Your logic error is in assuming all people have common sense and setting expectations based on that assumption.

This actually has nothing to do with common sense, a jr and sometimes even senior mobile devs would not have the mindset of avoiding a ddos to a third party api when writing a feature that needs to get the device ip. It wouldn't be on purpose, it would just be that they don't know that they don't know yet. These issues of slamming a backend server are pretty common and mobile devs don't know to avoid it until they cause it imo. This could also be malware too which wouldn't care about decency.

Point is, scale your service, adjust your terms, start rate limiting, or shut it down. Calling your users names is the wrong solution no matter the user's intent, and solves exactly zero of the issues at hand.

The service owner should feel proud to have such a popular service, many folks will never have to deal with scaling issues. As the saying goes "scaling issues are good issues to have".

12345