Better HN
topnewbestaskshowjobs
Log inSign up

staticassertion

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

@insanitybit
Submissions

comment 6y ago · link · parent

> You do realize that OpenBSD is, by far, the most secure general purpose operating system specifically due to decades of thankless work by people like Theo de Raadt, right?

Yes, I think it is fair to say that I am very familiar with all of this information. I work in information security, and was quite into Linux kernel security for a while. I disagree with your assertion about it being the most secure general purpose OS but I'm not gonna go there :)

> I don’t think healthy skepticism of Rust is strong enough evidence to conclude that they don’t care about security.

Cool, that was not my conclusion either. I'm saying that Rust's value proposition in general includes memory safety and I think that it's not compelling for most developers, especially with regards to rewrites of low-value attack surface.

comment 6y ago · link · parent

Maybe I shouldn't have said that, because it's contentious, but I do believe it to be true.

I believe Rust's success has less to do with memory safety, which I think most developers (anyone coming from a GC'd language) consider table stakes, and much more to do with great documentation and incredibly powerful primitives and ecosystem such as the type system, cargo, crates.io, etc.

comment 6y ago · link · parent

> This is pretty much a judgment of Rust:

I guess. It's really a judgment of Rust (specifically the compiler toolchain) for this one use case.

> I would think that OpenBSD developers/users would care about security,

Maybe. Again, I think "cat" and other system tools are really low on the list of priorities for anyone securing a system. Not to say that they don't represent attack surface, by any means, but there are just a lot of things to do before rewriting the utility entirely.

comment 6y ago · link · parent

This is less "On Rust" and more "On accepting a rewrite of any tool into OpenBSD, on the merits of memory safety alone".

There isn't really much of a statement or judgment on Rust. At most there's an interesting point on it's value proposition:

> However there is a rampant fiction that if you supply a new safer method everyone will use it. For gods sake, the simplest of concepts like the stack protector took nearly 10 years for adoption, let people should switch languages? DELUSION.

This is mostly true. Developers in particular don't generally care about security, so selling Rust as a "secure" language is not going to be enough. I've said this since 1.0. But it's not entirely true for products, which often drive development - Chrome's pairing of performance and security led to tons of marketing wins.

Given that tools like "cat" etc are:

a) Not generally security sensitive

b) Target developers

I don't see anyone choosing the "rust cat" over the builtin. This is why people build tools like "bat", that aren't just memory safe copies, but they're memory safe tools that add features and target slightly different cases.

Not much else to get from this post, I think.

comment 6y ago · link · parent

I'm building a product that does graph analytics on top of DGraph.

Some constraints we have: * We ingest what some may consider a lot of data - on the order of terabytes a day. This can be 10's of thousands of writes per second.

* We need transactional logic.

* We want to analyze that data as it comes in, so think 10x reads for every write.

GraphDBs out there didn't seem like they would cut it. I eliminated almost every database due to:

* Bad licensing

* Incapable of scaling writes horizontally, or generally anding tons of rights

* No ACID transactions

Most graphdbs out there had at least two of these issues.

DGraph so far has worked really well. We aren't sending it the full load of data yet, so there's still a question around that write load, but at least it's designed for that, and initial numbers have been promising.

The fact that it's liberally licensed, has a really good pricing model, has strong community support, good docs, etc, has made me glad I chose it.

The roughest part is probably the query language, because it's bespoke and therefor ends up having weird unexpected behavior sometimes. Now that it supports GraphQL that should be less of an issue.

comment 6y ago · link · parent

Can I read more about these statistics somewhere?

comment 6y ago · link · parent

Virtually all messaging I've seen has been "We lack evidence to say how immunity works" with a dose of "there's some initial evidence suggesting immunity" and "we aren't sure about how long it lasts".

It's interesting to read "it's extremely infectious" and "more lethal than influenza" followed by "that's all", not to mention the missing bit about not having a vaccine!

If we saw a massive outbreak of influenza things would be extremely different. We have treatments for influenza (tamiflu), we have vaccines, we have understanding, and a large portion of the population that is already immune.

The similarities are... they are both viruses. Not sure why anyone would compare the two except to try to explain how different they are.

comment 6y ago · link · parent

So just wait another 10 years and we'll get there for 3.5.

comment 6y ago · link · parent

Are they really divided? Maybe if people only used one language. I would suspect that almost any Rust, Go, Swift, Dart, and Nim developer today is proficient in one, probably two other languages, at the least. I doubt that even 10% of "Rust programmers" are employed to write Rust full time.

What I might agree with is that interoperability is something that should be considered more going forward. I'm unsure about some of them, but Rust focuses a lot on interoperability via FFI, Go's FFI story is bad, as far as I know, Nim's is decent, and I don't knwo about Dart or Swift.

The top languages are all virtually identical. There's so little difference between, say, Java and Python, despite there being so much difference. So maybe there are 50 "serious" languages, but they all fall into a few buckets. There's less meaningful diversity than it seems, I think.

comment 6y ago · link · parent

OK, then the legacy library can't easily make that choice. I'm not saying every single javascript developer should be accepting async or sync callbacks, just that some libraries are choosing to do that for legitimate reasons.

comment 6y ago · link · parent

All of those can be pretty much be handled natively, and obviously. They're all primitive

isFalse would be != isObject would use typeOf isFucntion would use typeOf

Where a library becomes helpful is when you have:

* A real problem (none of those are real problems, and the npm packages for them are essentially unused jokes)

* A solution that is not intuitive, or has a sharp edge, or requires non-obvious knowledge, or does not have a preexisting std approach

Checking for a promise, given the constraints of having multiple types of promises out in the world, falls into both of those. Checking if something is falsey, when Javascript provides !, does not fall into either.

comment 6y ago · link · parent

1) I'm not defending the implementation of is-promise. I don't care to, I'm not a javascript developer.

2) > sure there are non standard promises, ancient stuff, that to me shouldn't be used

If you're building a library, or maintaining one that's been built over many years, you can't easily make calls like that.

comment 6y ago · link · parent

How would a top level dependency change versions if it bumped a transitive dependency? Is that a thing in js-land?

comment 6y ago · link · parent

Maybe I'm misunderstanding how those projects work. From what I recall, they generate a project, including the package.json. So I'm not sure why they couldn't just generate the package.json with pinned versions?

I don't write much JS, and have only used create-react-app just a few times, so feel free to explain why this isn't possible.

comment 6y ago · link · parent

I don't know much about those projects, but why did this break them? Are they not pinning versions?

comment 6y ago · link · parent

This will work for a standard Promise, which is great, but not for weirdo made up promises. It also was released, I think, in 2018.

It's one thing if you own the entire codebase, but if you're building a popular, multiple-years-old library/framework, you can't make the same assumptions.

comment 6y ago · link · parent

I'm totally with you on this. It's dumb that this is a problem but it is actually a problem.

comment 6y ago · link · parent

Here's my off-the-cuff take that will not be popular.

A function like this should be a package. Or, really, part of standard js, maybe.

A) The problem it solves is real. It's dumb, but JS has tons of dumb stuff, so that changes nothing. Sometimes you want to know "is this thing a promise", and that's not trivial (for reasons).

B) The problem it solves is not straightforward. If you Google around you'll get people saying "Anything with a .then is a promise' or other different ways of testing it. The code being convoluted shows that.

Should this problem be solved elsewhere? Sure, again, JavaScript is bad and no one's on the other side of that argument, but it's what we have. Is "just copy paste a wrong answer from SO and end up with 50 different functions in your codebase to check something" like other languages that make package management hard so much better ? I don't think so.

comment 6y ago · link · parent

Macros:

#[Foo] struct Bar {}

baz!()

cat!{}

blah![]

comment 6y ago · link · parent

Cool, that sounds reasonable then. Good stuff.

comment 6y ago · link · parent

Surprised no one has yet commented on eBPF, and the impact this has. ebpf already gives users the right to run code as the kernel, and this is a security win in many cases - you can audit your system better.

On a server, I think I'd rather assume the attacker has root (or even kernel!) but have good auditing, and do specific service sandboxing, than assume that I can separate root from kernel.

My understanding is that confidentiality breaks ebpf. I'm unsure about integrity - if integrity works with it, great. Then I'd wonder where you'd want confidentiality - maybe a box that's handling CC info/ payment processing?

I have mixed feelings overall.

comment 6y ago · link · parent

I started going through the docs. This language starts off with some heft sells - prevent errors, increase test coverage, etc. Then the docs mostly cover things like "you can call an array an array or a list" and stuff that isn't very interesting to me.

It doesn't even show methods or things like that. I think 90% of the docs I've read so far should have just been a single page with one liners one after the other, and less interesting stuff that's got more depth should go further back. I don't think showing nested arrays and dictionaries is interesting to me after you've just told me about some super interesting testing / correctness stuff - lead with that!

I skipped ahead to Decision Making. I think the example is so strange and contrived - three functions, each returns some number above 100, some logic after that that feels arbitrary? I would do something at least a little more universal like fib.

The end of this section states "100% testable" - I'm confused. Why is this testable?

I could not write one unit test to have 100% code coverage, not even line coverage.

If I, for example, wrote a test that used the code provided, with an assertion

assert add(3, 5) == 101

I would not hit f2 or f3, so I'm confused by: "A single unit test is enough to have 100% coverage on functions, always."

That unit test was definitely not enough for 100% coverage.

I skimmed the rest.

For a language that states it's great for testing and preventing errors, I am at a loss as to how one would write a test for it, or handle an error.

This looks like a pretty neat language, but you really gave me such a good hook and then no follow through.

comment 6y ago · link · parent

Ah, I skimmed your comment history. I'm opting out of this conversation. I think we disagree too much to find common ground here.

comment 6y ago · link · parent

Not much, I was a child.

I think it would be sort of a waste of time to compare 9/11 to Covid with regards to government overreach. Off the bat, the threat is of a completely different nature, we understand the threat in a completely different way, the threat is taking place within our borders and, of course, globally.

The measures are not broad, relatively. They are explicitly intended to be short term. They are being discussed out in the open.

I don't know, I could probably spend the whole night listing differences but it's so obvious I really don't think I will. Unless you're simple enough to boil both responses to "well it's a thing that a government did", idk, the similarities end super quickly.

comment 6y ago · link · parent

Very little about this feels like the Patriot Act. I also don't really see why the government would want to tank its economy. I mean, I can think of some really out there reasons, but I don't really feel it's worth entertaining given the far more reasonable reason for lock-in during a pandemic.

edit: When I say 'this' I mean enforced lock in, specifically.

comment 6y ago · link · parent

> If instead of saying "I want a haircut.", they would say like Benjamin Franklin: "Those who would give up essential Liberty, to purchase a little temporary Safety, deserve neither Liberty nor Safety." would they be taken more seriously?

Most people sound more like the latter than the former. If people were saying "We have a need for haircuts etc, this is serious", they'd get a lot more consideration than some appeal to "but our freedoms". Most people sensibly realize that a lock-down in the face of a pandemic is not a regression in our fundamental rights as US citizens, but just a temporary measure to save lives.

If instead you argue that you're legitimately going to see more harm done due to closures, and you back that up sensibly, people will care a lot more. You'll probably be wrong, but people might listen and take that seriously. In fact, they very obviously already are listening to this feedback, and it's a huge part of the communications from govt officials right now - how we are balancing saving lives via lockin vs dealing with the fallout of that exact policy. They're hardly ignoring the issue!

> Could facebook sensor this movie since it pictures the lockdown as a evil action?

Sure they could take it down, it's their platform. Would they? No, probably not, that would be really silly?

> Now, the government should inform people with data, and let them take a decision.

The role of our government is not to provide data but then otherwise let people do whatever.

You say "People should be able to take a calculated risk." - how would they calculate it? Most are not capable of making an informed decision like that, and likening this situation to driving is just ridiculous (and ironic, given that car safety was heavily regulated due to huge numbers of people dying while car manufacturers were left unaccountable. The government stepped in with license requirements, manufacturing requirements, etc.).

comment 6y ago · link · parent

There are two separate things here.

There's going to a company and saying "Are you SOC2? If not, we need you to be, and that requires a pentest - please go do that before we engage." There may also be, in this same vein, "We're strategic partners, we'll help you get that pentest". This is very common, I suspect the vast majority of pentests are compliance (and essentially sales) driven and would fall under this category.

That's different from "We have already engaged, you are already compliant with SOC2, you may do your own pentests, we will now separately pay for and manage a pentest of your company". This is not something I've seen too much of - perhaps that's just me not paying attention? But I'd be surprised if this were common at all.

Though I want to again restate that the article is focusing on VRP.

comment 6y ago · link · parent

> I find that very surprising that you uncommonly pen test 3rd party vendors.

Just so we're clear "you" is not Dropbox, and I'm not talking about what Dropbox does or doesn't do. I'm saying that, in general, most companies don't pentest other companies, they ask those companies instead to prove that they do their own pentests, which usually amounts to asking for their SOC2.

> we work with requires us to go through a pen test, or requires that we provide a recent and independent pen test report.

I am stating exactly this. Most companies require proof via SOC2, and that is it. Very few will actually hire a pentest firm directly for a 3rd party vendor.

> If you rely on SOC2 compliance then you are indirectly requiring a pen test.

To quote myself: "This is something you rely on a SOC2 for."

comment 6y ago · link · parent

Disclaimer: I worked on Dropbox security. Not in appsec. I won't comment on the article, or the accuracy of the article, or anything that wasn't public before the article. I'm mostly just going to talk about what is broadly true for all or most companies.

I think it is worth noting that:

a) Pentesting 3rd party vendors is uncommon. This is something that the majority of companies rely on a SOC2 for.

b) Pentesting is not what the article is talking about, it's talking about bug bounties/ Vulnerability Reporting Programs. It is equally, if not more, uncommon for a company to bring a vendor into its VRP.

And yes, companies care greatly about traffic being routed through China.

1
122123124
164