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

To be clear, the issue isn't about trusting developers in prod. It's about limiting access to prod as an avenue for attackers who will be looking to get in there and exfil sensitive data.

Nothing to do with trust of devs.

comment 7y ago · link · parent

I mean cost in terms of 'time to make a decision', without considering 'cost of making the wrong decision', which is closer to risk.

> The answer to why you shouldn't just do whatever Google is doing is because trying to copycat the leader is the one thing that will guarantee your _failure_ in the market place.

The article seems to demonstrate the opposite - decisions following the leader, and paying for it later, but surviving in the interim.

> If you're doing the same thing as everybody else you're by definition just reinventing the wheel. Why bother?

I don't really agree. When it comes to something like a DB or architecture, that's probably not where you need to be inventing new solutions - products are rarely sold based on their technical implementation, and more about the results they drive.

If you were building a new Google search, and you used all of the same tech, that's probably a bad idea. But if I'm building a product for a completely isolated domain, who cares if it's solved using the same tools that Google solves search?

Regarding lambda, there's likely tons of room for competitors even within a domain to implement off of the same technology - again, it's just a tool, and not likely to be the differentiator.

comment 7y ago · link · parent

Yes, I think it's really easy to look at a project, after it has scaled, and go "wow they made such bad technical decisions! Why didn't they learn more about this?" and ignore that the system is running, they have customers, a business, and they're solving the problem when it has become important to do so.

I've seen lots of time wasted overthinking solutions only to find out that the requirements were changed a month before release, or customers would use the system completely differently than expect.

comment 7y ago · link · parent

As someone tasked with protecting infrastructure, devs not being able to SSH into production is a godsend.

comment 7y ago · link · parent

That doesn't sound like a shift of work. It sounds like work I already would have done - performance tuning doesn't go away by bringing things in house.

Now that person I pay to operate the service can focus on tuning, not backups and other work that's been automated away.

Sounds like a massive win to me.

comment 7y ago · link · parent

At one company I was at we moved to microservices to reduce ops work.

Scale independence was a huge value add for us.

comment 7y ago · link · parent

This all boils down to "make cost benefit decisions".

The problem is that maybe cost benefit decisions are really hard. To understand the cost of map reduce, for example, I probably have to use it at least once. High cost just to understand something. And I have to understand the alternatives, so I'm trying those out too.

You know what's faster? Signaling. When large companies say "this approach works for us" it's really cheap and easy to say "Well that's probably good enough then".

Do you lose out on efficiencies by not fully understanding the problem? Duh. But probably not as much as understanding an entire domain for every technical decision you make.

The steps outlined, particularly 1,2,3,4, are really expensive for every single technical solution. Reading multiple technical papers for a db is probably more costly than just acquiring customers, hitting scaling limits for your uninformed choice, and moving to a new db based on a somewhat more in depth approach or hiring a consultant.

Let's assume that if you guessed a technical solution, the cost of 'guessing' is 0, and the cost of picking the wrong solution is 'low'. Should I waste time doing anything other than guessing? If the cost of 'do what google does' is 0, or near 0, and better average chance of working, why not pick it?

Unless the stakes are high, putting that kind of investment into every technical decision just seems needless. And they arguably have to be very high to offset the cost, and I would state that determining those costs upfront itself may be difficult and error prone.

For every mis-guess listed in that article, how many new customers did they acquire due to making the right 'guess' based on signaling from other companies? The companies clearly hadn't gone under from those bad decisions, so would it really have been the right call to have invested in such deep thinking about the problem early on?

Not sure I believe what I wrote entirely, just thinking out loud.

comment 7y ago · link · parent

He's not a CEO. I'd be shocked to see a CEO behave this way and have a board that continues to support them.

comment 7y ago · link · parent

Yeah, Boston has always felt like a great place for a startup/ young company with all of those universities on the east coast or like, blocks away in Cambridge.

Makes sense though that you wanted to be near your customer base.

comment 7y ago · link · parent

Then why the attitude adjustment?

comment 7y ago · link · parent

Not pay him hundreds of thousands of dollars every year, not contribute billions in development time, etc.

This is already happening. People already choose not to contribute to Linux and Fuschia isn't just some hobby project.

comment 7y ago · link · parent

Yeah, it used to be way more often > a decade ago. Most of the famous rants people know of are from more recently, and are fairly insulting.

I don't store old mailing lists, but the thing I generally point to is his statements towards the security community and, back then, specifically PaX team. I've stumbled on tons of personal attacks from him, either escalating an already negative conversation, or starting it himself.

I also challenge the "usually right". To my knowledge, Linus is quite often wrong. And that's fine, really, everyone is wrong a lot of the time. But hero worship, or feeling the need to excuse his behavior even somewhat due to a false sense that it's helping things, is not a good idea.

comment 7y ago · link · parent

"You're a fucking moron"

- Linus Torvalds

comment 7y ago · link · parent

Yeah, crazy that people want to work on a project without being berated publicly and called incompetent on a mailing list. Those darn SJWs!!

comment 7y ago · link · parent

Something I'm interested in - how did the move to Boston go? Why move back to SF?

I often wonder about the viability of starting a tech company elsewhere. Does being a VC company impact this?

comment 7y ago · link · parent

SIMD requires unsafe for some reason. Not sure exactly why.

I don't see why they used unsafe in `add_assign` - an assert!(octets.len() == other.len()) would likely have elided the bounds checks.

comment 7y ago · link · parent

Oh, yes, agreed that proptest is way more viable here and probably a good solution to pair with miri.

comment 7y ago · link · parent

Fuzzing + miri sounds like it will be incredibly slow. Probably slower than just using asan.

The good thing about UB in rust is it's easy to target - you don't need to explore the whole space, just module boundaries that encapsulate that space. So something more fine grained should be fine with miri, and fuzzing can capture more complex errors like panics.

comment 7y ago · link · parent

Yeah, the daemon is way better for sure.

comment 7y ago · link · parent

Ah, I just searched for "mypy" and saw the performance bit. Seems kind of odd, I see the vscode justification but if you're running this, having a dependency on Python seems like a low bar?

comment 7y ago · link · parent

Is mypy not open source? Why not collaborate? Mypy performance improvements are something that would be welcomed.

comment 7y ago · link · parent

https://insanitybit.github.io/2018/11/05/deploying-grapl-wit...

Here's a post on how I use AWS's "Cloud Development Kit" to do my deployments. Builds are through Docker.

Source code: https://github.com/insanitybit/grapl

comment 7y ago · link · parent

Sure, sorry, I meant services where I wrote "servers" and it's likely the person I responded to did as well.

I don't think it changes anything about what I said - process restarts aren't something I'd care about the language for anyways, I'd have a sidecar for that.

comment 7y ago · link · parent

I've been writing servers in Rust and I don't really agree. Granted, these may not be traditional HTTP servers - they're AWS lambdas, which puts them closer to the "some function" than "some server" depending on how you look at it.

They work great, I've been able to iterate extremely quickly on a system that has had its requirements changed quite a lot over time.

I haven't spent much time optimizing my code at this point but they execute extremely quickly, much faster than my Python lambdas.

Regarding the author's complaints:

I haven't needed any async. I use threads and it's fine. When async/await is a thing I'll use it, maybe - I really don't think it's going to make a difference but it might free up some memory that I can throw at caching.

Error handing in Rust is still a bit uncomfortable. The failure crate has been working for me but it doesn't always feel 'right'.

comment 7y ago · link · parent

Do proxies usually log POST data? Are these proxies terminating TLS?

Either way, yeah, you're right - it is not a perfect solution. But it means that for any system your engineers build, so long as they build them using your web framework that imposes this password type, you can grep your codebase for bugs.

You could implement client side hashing as a best-effort "in transit" mechanism but that has obvious downsides. Not sure how I'd feel about that approach in practice, but I can't see a big downside.

comment 7y ago · link · parent

The major difference is that we don't have standard patterns for protecting against one attack, vs the other.

With password storage everyone knows the patterns, or we expect them to.

With everything between the request and password storage, we don't.

This type of attack could easily be prevented. When secrets come in, immediately store them (ideally at the web framework level) in a type that overrides print/debug formatting. Then add a "get_raw" to it, and you can now grep for that being used anywhere outside of storage to a DB (and your DB libs should take the Secret type too). Or don't use a `get_raw` and instead use a `hash` method that returns a safely hashed version of it.

Further, your secret type could at the very least add a round of SHA256, maybe even with a pepper?, just to be sure.

This isn't hard, I've done it before. The problem is that it isn't something that people feel embarrassed not to do, vs storing plaintext creds.

Impact is the same - creds are plaintext in a DB. Attackers always expect sensitive data in logs, so it isn't as if you'd get lucky and they'd miss this.

comment 7y ago · link · parent

Gotcha, ok. I started using Android ~1.5 I believe, so things have changed radically since the beginning. I recall this being the case in ~2.2 perhaps.

comment 7y ago · link · parent

Are launchers fully replaceable now? I remember years back you could run another launcher but the default launcher process would still execute and remain in the background. Not really a 0 cost choice at that point - especially when phones had weak hardware.

comment 7y ago · link · parent

Hi,

First off, thanks for the reply and congrats on the release.

Separate binary makes sense - I wanted to get there myself but didn't have the patience. I'll have a look at the code to see how that works.

Sounds like you've considered some of the areas I had concerns with already.

1
138139140
164