Better HN
topnewbestaskshowjobs
Log inSign up

staticassertion

13,486 karma · joined Jun 1, 2016 (10y ago) · 4,896 submissions

@insanitybit
Submissions

comment 7y ago · link · parent

> Before the incident began, a background job performed an aggregation for a large number of accounts, causing excessive reads into cache and cache evictions for the cluster’s storage engine cache.

I thought this was interesting. I think that caches can be so dangerous in an incident - suddenly operations that are almost always constant time are executing in a much different complexity, and worst is that this tends to happen when you get backups (since old, uncached data is suddenly pushing recent data out).

I think chaos engineering may be a good solution here, in lieu of better architectures - see what happens when you clear your cache every once in a while, how much your load changes, how your systems scale to deal with it.

comment 7y ago · link · parent

At what point do I get to call myself a computer scientist? I dropped out of college halfway through.

comment 7y ago · link · parent

Are you sure about that? Certainly at least some of the synced information is encrypted before sync by default (passwords).

comment 7y ago · link · parent

The hash isn't even necessarily transmitted, and it's often partial hashes at that.

comment 7y ago · link · parent

> Secondly the rust language only excludes memory bugs, it doesn’t exclude errors in the implementation of the tls protocol or incorrect usage of cryptographic primitives which can be just as catastrophic for security.

I linked to a talk about the project elsewhere and it's worth noting that the author of rustls leverages a lot of rust techniques that ensure certain correctness attributes at a semantic level, not just memory safety.

In particular, TLS libraries have long suffered from dealing with the complex composite state machines required by the protocol[0]. Rust makes the expression of safe state machines pretty easy (the talk demonstrates how).

[0]https://www.mitls.org/pages/attacks/SMACK

comment 7y ago · link · parent

There are probably a lot of reasons why it's faster, and at least some of those are about rust, and some definitely aren't.

https://www.youtube.com/watch?v=aHMRFZkXq4Y

Here's a good talk about the project. Some of the patterns the author uses are sort of hard to do in other languages (such as pattern matching on composite states).

comment 7y ago · link · parent

I think that history has taught us that the best way to get existing languages to improve is to demonstrate the value of a paradigm or feature out-of-band in some other language, possibly a new one.

comment 7y ago · link · parent

I don't see why switching to a new regex implementation would be so scary. 2 weeks to test that your regexes don't break seems fine? Seems like a long time tbh.

On top of that they're switching to more constrained regex engines. Rust's regex engine makes guarantees about its running time, something that would have directly mitigated a portion of the issue. And it isn't as if RE2/Rust regex aren't in use anywhere, rust's regex engine is integrated into vscode, for example.

comment 7y ago · link · parent

None. It is all politics.

comment 7y ago · link · parent

Yeah, this seems like it must violate some Apple TOS, right? The uninstaller leaves behind a local webserver, that can't possibly be allowed.

comment 7y ago · link · parent

This is a really great talk, I learned a lot from the clear, historic description of the actor model.

comment 7y ago · link · parent

More context: https://forums.grsecurity.net/viewtopic.php?t=4463

They had a mitigation for this out in no time, as I recall.

comment 7y ago · link · parent

Politics.

comment 7y ago · link · parent

Sure, but "I don't know" makes it seem like you're just saying "pass", which, when you finish the test, is obviously not what it represents.

comment 7y ago · link · parent

That hardly makes ads "unblockable".

comment 7y ago · link · parent

> Thing is many of Rust features could probably be enforced with a static analysis tool, which a large majority unfortunately ignores.

But it definitely can't be? There are plenty of open source projects (Chromium, Firefox) that develop and leverage state of the art static analysis tools and best practices. It's very clearly not enough, and the costs (built/ test time) are really significant.

comment 7y ago · link · parent

Your post is kind of vague. Rust was hard to grasp, and then I learned it, and now it isn't.

I don't find anything about the language to be particularly more complex than, say, Python or C++.

comment 7y ago · link · parent

This ignores the actual issue with ads, which is tracking. Advertising has this huge system around it where your information is the commodity.

This means that advertising inherently is not something you "opt into" when you visit a page. You are being tracked everywhere you go.

That's the problem brave solves, but it accepts that removing ads without another system to reward content creators is important - hence BAT.

comment 7y ago · link · parent

If you don't care about literally decades of progress you're just a bad software developer.

comment 7y ago · link · parent

Go is new, not modern.

comment 7y ago · link · parent

I don't write REST services, but I use rust on AWS Lambda, and it works great. I can interact with AWS resources easily through Rusoto, I use Dynamo and S3, etc.

comment 7y ago · link · parent

"limited available fund" ah yes, the software industry really does barely manage to scrape by, good point.

comment 7y ago · link · parent

This sounds to me like that same attitude that keeps people from saying how much they make; that your coworker will get mad at you, and not your boss.

comment 7y ago · link · parent

The only thing developers seem to hate more than closed source software is a funded open source project.

comment 7y ago · link · parent

Secure behaviors should generally trump API guarantees.

comment 7y ago · link · parent

Interesting to see a sandbox escape that doesn't involve a kernel exploit (unlike the attack against Chrome users that leveraged a Windows kernel vuln). I wonder if seccomp has pushed things to the point where the boundary between broker and child is the softer spot. More evidence to that being that the attack on Chrome didn't work on Win10, which has a sort of similar mitigation.

Perhaps in particular for Firefox, which has had the sandbox for less time?

Would love to hear some expert opinions. I can't derive much from this since I don't personally see any trends.

comment 7y ago · link · parent

Yeah, you're right.
1
134135136
164