Better HN
topnewbestaskshowjobs
Log inSign up

JackWritesCode

344 karma · joined Jul 22, 2019 (7y ago) · 238 submissions

Submissions

comment 5y ago · link · parent

Sure :)

62.

Building the Fastest Website Analytics(usefathom.com ↗)

5 points · by JackWritesCode · 5y ago · 3 comments

63.

Designing a Million Dollar Brand(usefathom.com ↗)

1 points · by JackWritesCode · 5y ago · discuss

comment 6y ago · link · parent

Haha I didn't know who he was. But the fact Alex Debrie follows him is certification enough for me. And I was wrong. Looking at his Twitter, it looks like he knows 2000x more than me about servers.

comment 6y ago · link · parent

Never expected to see someone defending me on Hacker News. I appreciate it. To clear things up:

* I found AWS Shield Advanced organically

* It was a DDoS attack

* I am incredibly happy with the personalized service. It’s like hiring someone to handle it, except you have people on call 24x7

comment 6y ago · link · parent

That sounds incredible. We’re used in a lot of universities right now and it would be great to see more

comment 6y ago · link · parent

Dealing with AWS hasn’t been hassle but is expensive. However, the value proposition is well worth it for us.

comment 6y ago · link · parent

Can’t talk about this publicly, sorry :(

comment 6y ago · link · parent

The data was full of spam & was targeted at high profile customers. It was also run every hour for one period then ramped up to 500,000 concurrents. It was a DDoS :(

comment 6y ago · link · parent

Yup with a minimum 1 year commitment.

comment 6y ago · link · parent

> Layer 7 just means they are making ton of HTTP requests from lot of IPS however this is the nature of a web analytics.

Exactly! Which is why it was so hard. There's no path pattern. Everything hits "/". So the only way to fight back is to match IP / header patterns (but even then, we have to redact sensitive headers).

> How can the attackers know which websites have your analytics on? Crawling the web is super hard.

The attacker went after some of our more high profile customers. They're known via testimonials or from Twitter.

> The access log should store this `sid` allowing you to just block the account. (or ask them for ton of money if it's a legitimate use :) )

We could certainly temporarily block traffic to a site. The problem is, without some kind of firewall (e.g. WAF), our application has to absorb so much traffic, and that's the issue. We need to block it at the edge.

comment 6y ago · link · parent

You and me both, fargle. When the attacks started, I thought someone was attacking us just so I would write a technical blog post.

comment 6y ago · link · parent

I saw Kinesis stream today with DynamoDB and I will have to review it :)

comment 6y ago · link · parent

They're still going to need to process IP addresses or some kind of PII though, that's the thing :(

comment 6y ago · link · parent

It was 100% a layer 7 DDoS, the attack was targeted and malicious. I can't say too much but the AWS team confirmed it. But I appreciate how something like you describe could happen.

I like the idea of an MD5 hash. Although I'm not too certain why an IP would be a bad thing to log for 24 hours. From a privacy law perspective, the MD5 hash is considered PII. And if we see an IP address in an access log, we know that an IP visited one of the tens of thousands of websites Fathom runs on, but we don't know which one.

Edit: Something else, with MD5 there's no way of finding patterns with the IPs, so you'd have to play whack a mole. Whereas raw IPs allow no real privacy invasion whilst allowing pattern detection

comment 6y ago · link · parent

Public access point. The server accepts pageviews, so they DDoS'd that.

comment 6y ago · link · parent

Awesome, I'd love some advice if you're willing. So here's our situation.

* We're getting hit with a huge DDoS attack, repeatedly over 3 weeks, with no sign of stopping

* With zero access logs, there was no way to find patterns in the attack, and we had no way to block it

* Our service was going offline during these attacks

* We introduced access logs that are auto-deleted after 24 hours. We redacted all information about the site/page/activity etc. but keep IP & User Agent for pattern matching

* We were then able to identify a pattern and block the attack on Saturday

* Without access logs (even redacted ones), this wasn't possible

I was hoping a more senior engineer on Hacker News would comment and I can't wait to hear how you'd do it. I have no experience in DDoS protection at all, and this seems like the only possible way. Even rate limiting requires storing IP addresses. But if you know a more privacy-focused way to block these attacks, I'm sure I'll buy you a few beers when we hang out.

comment 6y ago · link · parent

And to add on this, the plan moving forward is to default to writing data to the appropriate places (aim is < 100-200ms) but fall back to SQS when services are unavailable.

comment 6y ago · link · parent

Vercel is good too. And I've heard great things about BunnyCDN. Cloudflare does a lot though.

comment 6y ago · link · parent

Same with AWS Shield Advanced :)

comment 6y ago · link · parent

I bet you could set up something way cheaper. And I'm certain you know 10x more than me regarding servers, hardening, configuration, etc. And I'm certain you enjoy servers!

For us, the cost works and we have appropriate margin for it. The cost savings aren't worth the extra "we have to monitor these servers" thoughts. Our approach is 100% emotional.

comment 6y ago · link · parent

We are indeed. Neither of us enjoy DevOps so we pay a premium to not have to manage servers. It brings a huge mental health benefit (we are a two person company), we're profitable and our monthly Lambda cost isn't that significant. Honestly, the biggest inefficiency (in terms of cost) is our use of SQS/RDS, which we are ditching soon.

comment 6y ago · link · parent

Lambda concurrency wasn't actually increased to 800,000 concurrents. It's a stupid idea that someone would think up after fighting attacks all day.

84.

Everyone Has Something to Hide(usefathom.com ↗)

4 points · by JackWritesCode · 6y ago · discuss

85.

Everyone Has Something to Hide(usefathom.com ↗)

2 points · by JackWritesCode · 6y ago · discuss

86.

Does targeted digital advertising work?(usefathom.com ↗)

1 points · by JackWritesCode · 6y ago · discuss

87.

How to build a privacy-first software business(usefathom.com ↗)

3 points · by JackWritesCode · 6y ago · discuss

88.

Hosted vs. self-hosted website analytics(usefathom.com ↗)

4 points · by JackWritesCode · 6y ago · discuss

comment 6y ago · link · parent

It's interesting to see a multi-billion dollar company step into the privacy-first analytics scene. Moving from one centralized, tech giant to another. I was so fired up that I wrote this: https://usefathom.com/blog/big-tech-vs-fathom
12345
8