Better HN
topnewbestaskshowjobs
Log inSign up

staticassertion

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

@insanitybit
Submissions

comment 4y ago · link · parent

> and can be implemented in Rust without any difficulty.

Not really. You'd have to fight the language and pull in some crates, to be sure. There's no native object serialization in rust and it's not really a concept in the language or ecosystem - except perhaps in the future with wasm runtimes.

There are numerous details of log4j that, in general, just don't apply to rust code.

edit: Since perhaps people don't believe me...

Rust has no equivalent of JNDI, pickle, etc. There is no way to send rust 'code' except, perhaps, wasm. Certainly there's no well supported way with decades of history of being ingrained into libraries, or patterns that support it.

comment 4y ago · link · parent

> including secrets, in environment variables is a bad idea.

I don't think this is the lesson to take away here. Arbitrary remote read of environment variables is not a common issue.

Also you can easily not propagate secrets to a child process. But there isn't a ton of point to that on most systems since if you can't trust your child process just not passing in the secret is not gonna cut it.

comment 4y ago · link · parent

> First, you can sync your browser with your Firefox account, so this is I guess what you want?

Maybe? Probably not though. For example, with GSuite I can manage the settings via the web UI and then have policies that enforce that those settings are verified correct.

> Third, if you use all that Google stuff in your private life, I don't really see why you would be worried about Manifest 3-related privacy and ads/tracking matters anyway. I mean, Google already has your data.

I opt into Google having my data, but I want to be able to opt out of running arbitrary content in my browser. uBlock and uMatrix give me that, Manifest v3 takes that away.

comment 4y ago · link · parent

Personally it's the integrations. I have a Chromebook, which integrates with GSuite, and integrates with Android. I can manage extensions, permissions, etc, all from there. This is important since I use this Chromebook for work, but it would be cumbersome to run Firefox and Chrome simultaneously.

With Firefox I get just-a-browser, and I need more than that. If Firefox had a way for me to manage the browser across devices it would be more viable for me.

comment 4y ago · link · parent

This should be in the first post. The reddit thread is crowded and mostly useless information.

comment 4y ago · link · parent

This is great - a huge reduction in memory usage and a huge performance win. Great to see DGraph improving so considerably with this release.

comment 4y ago · link · parent

Because it apparently is absurdly complicated for a task I can solve with 'println'.

comment 4y ago · link · parent

The linked poll has the majority of rust developers on linux

comment 4y ago · link · parent

HCL is a hell of a lot better than YAML, so I'll take it.

comment 4y ago · link · parent

I'm only saying it's a tradeoff. Obviously given Rust's origins and goals dropping desktop as a target would make no sense - it was designed explicitly for those platforms.

But if a language said "we're not going to support those" I wouldn't care at all, and a massive number of use cases - the majority, I think - would be solved with that language.

In terms of what you develop on, that's a whole other story. The majority, of course, are on Linux. But I'd be interested to know what platform they target.

comment 4y ago · link · parent

Yeah, obviously. It would be stupid to not support Windows in order for rust to be a healthy language. But I wouldn't care at all, and the vast majority of code - not just the code written, but in terms of it being deployed to N systems - will be Linux.

comment 4y ago · link · parent

I'm honestly not. Desktop platforms like Windows are incredibly niche. How much rust software actually runs on those? Some, of course. But probably an incredible minority.

Supporting them is smart because people expect it, and not supporting it would be bad optics, but if a language legitimately only targeted Linux, and was better for it, I'd be fine with that - they target the most popular OS by far.

comment 4y ago · link · parent

Agreed. I wouldn't care if Rust dropped Windows/ OSX support entirely. Totally niche platforms.

comment 4y ago · link · parent

I don't assume it's good because of Linux, I have a generally negative view of Linux. It's just stupid to attribute io_uring to rust or call it cargo culting for Rust to use io_uring. The two projects are unrelated.

As for performance, I wouldn't judge based on a year ago, obviously a lot has changed since then - you can find numbers if you'd like, I saw the maintainer posting benchmarks only a few weeks ago.

comment 4y ago · link · parent

Yes, io_uring, a linux subsystem, is clearly just a cargo cult feature for people who don't know what they're doing.

comment 4y ago · link · parent

We have a very detailed writeup on eBPF exploitation for anyone interested in the subject:

https://www.graplsecurity.com/post/kernel-pwning-with-ebpf-a...

comment 4y ago · link · parent

A lot of AWS is very old and it's very hard to go back and make everything nice and reliable without breaking things when you have a shitload of customers 24/7 using your services.

So yes, in theory much of AWS's services are probably very reliable and distributed across AZs and regions, but in practice there's likely a whole bunch of debt where one thing gets fucked up and it cascades.

comment 4y ago · link · parent

I don't think anecdotes like this are even worth sharing, honestly. There's so much context lost here, so much that can be lost in translation. No one should be drawing any conclusions from this post.

comment 4y ago · link · parent

> Might also be a good idea to run AWS SSO in multiple regions if you're not already doing so.

Is this possible?

> AWS Organizations only supports one AWS SSO Region at a time. If you want to make AWS SSO available in a different Region, you must first delete your current AWS SSO configuration. Switching to a different Region also changes the URL for the user portal. [0]

This seems to indicate you can only have one region.

[0] https://docs.aws.amazon.com/singlesignon/latest/userguide/re...

comment 4y ago · link · parent

I wouldn't be surprised if, given the volume of new domains to be blocked (like for a malware list), there's some automation involved. And since malicious domains can be absolutely nutty it seems particularly hard to manually review for an attack like this.

Ultimately I suspect that getting fuzzing integrated, lots of testing, etc, would be wise. It would also make sense to limit the lists you subscribe to - there's not really a ton of reason, in my opinion, to subscribe to more than a basic list.

comment 4y ago · link · parent

Thanks for posting this. I think a lot of people are hyperfocusing on some of your wording, but this post was very informative.

comment 4y ago · link · parent

I wouldn't expect everyone at Cloudflare to be intimately following every competitor's blog posts tbh

comment 4y ago · link · parent

Interesting - the attack relies on a compromised rule list, but that doesn't seem super hard. I have no idea what goes into building one of those, where they're sourced from, etc.

comment 4y ago · link · parent

That makes sense if the public tests are "compress these bytes, expect this output" but I'd expect instead to have a lot of specific components with their own individual tests.

comment 4y ago · link · parent

I'd expect Eaze to have a bigger impact than anything else. It's hard to beat a curated experience plus delivery.

comment 4y ago · link · parent

> Folks still don't understand why copyleft is so important nowadays.

True, it's incredible how badly the FSF has done in terms of actually marketing their licensing structure. At this point I doubt most developers care much.

comment 4y ago · link · parent

It would be nice to have a totally memory safe userland, but it's at least worth noting that most of cureutils is generally not going to be working with attacker controlled data in a way that really matters.

Again, would be nice, just not where I'd start. But kudos to anyone doing the work.

comment 4y ago · link · parent

That feels like an issue to be solved by the tests. If a program conforms to the public test suite the program "works" or the tests aren't covering the specification.

comment 4y ago · link · parent

I don't buy this argument. First of all, the implication is that by increasing lifespan we'll increase some other kind of cost. I actually suspect it would be entirely the opposite - that by increasing lifespan we'll increase healthspan, massively reducing healthcare costs, increasing years where an individual is an economic boon, etc.

Second, there's a huge difference between "we've made everyone immortal" and "we've increase average lifespan by 5 years". If average lifespan goes up 5 years I don't think we will have a ton to worry about in terms of "oh my god there are SO MANY more people!" etc.

So I just don't buy it being this huge thing to plan for.

1
717273
164