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

What is your incentive for not stealing things from a grocery store?

comment 4y ago · link · parent

The cost of a password manager is effectively 0 dollars for a company, so if they charge "more" than others it makes no difference.

comment 4y ago · link · parent

Do you want me to write a full, detailed policy? Or can you just use some common sense?

comment 4y ago · link · parent

1. Expanding into new markets. "Secrets management" is not easy - 1Password is currently handling it for humans but they intend to handle it for services as well, likely competing with Vault.

They could launch a full identity provider like Okta.

2. Perhaps managing other authentication methods. Passwords are dying, especially with webauthn, so it makes sense to tak eon some money to explore how to be a player in that space.

They could compete with Duo, for example, and start offering a 2FA service.

Basically, I expect that the vast majority of this money will not be going towards the 1Password that you use today but instead towards breaking into new markets. Given the size, probably new markets that are somewhat established already.

comment 4y ago · link · parent

It's vastly simpler, for one thing. SELinux is basically a weird DSL/ programming language for describing system interactions whereas systemd is providing a very basic interface for common restrictions.

I would pretty much never ask a human being to write SELinux policies unless that was explicitly part of their job whereas I can pretty much point any developer to what systemd is providing and they'll be able to work with it.

comment 4y ago · link · parent

AFAIK there were warrants for what the NSA was doing, it's just that those warrants were through a very sketchy, private court.

comment 4y ago · link · parent

Someone recently was exclaiming how good water was. We had been drinking heavily and I insisted they drank water while we were drinking alcohol since they were complaining about hangovers. They woke up with no hang over.

It turns out they just don't really drink water. It's always something in a can - flavored seltzers or soft drinks.

It kinda blew my mind that there are people out there who don't drink water. It feels as natural as breathing to me.

comment 4y ago · link · parent

All it means is that I'm only aware of one case. There are many possible explanations.

comment 4y ago · link · parent

I'm only aware of one case where the US government, without warrant, actively hacked its own citizens using a 0day, which was when the FBI exploited a 0day to compromise users of TOR who, as I recall, were looking to access CSAM. Even when going after a bunch of pedophiles I think there was a good bit of controversy there.

I think there may actually have been a warrant for some part of the access, idk.

I'm not saying it doesn't happen but it would be quite a scandal to find that the government was performing warrantless exploitation of citizen's personal devices. Maybe someone can correct me here and show that this has been the case.

comment 4y ago · link · parent

The point was to pay less than median income. So you're looking at closer to 30k at the high end.

comment 4y ago · link · parent

What's different is that ChromeOS was an alpha OS 12 years ago and obviously is radically different today. One major difference is that you can run a full debian environment.

comment 4y ago · link · parent

It is so, so fundamentally different. It has been over a decade. Chromebooks today run debian. I've got a debian shell right now where I'm working with intellij.

comment 4y ago · link · parent

The CR48 was over a decade ago wasn't it? I was also a cr48 beta user and I recall being a teenager, which I have not been for a while. Comparing chromebooks today to the cr48 feels like comparing... idk, anything from 12 years ago to anything from today?

ChromeOS can now run Android apps and a full linux environment.

comment 4y ago · link · parent

I feel like you're trying to argue that piracy is ethical, which is different than something not being piracy.

comment 4y ago · link · parent

Start doing security what way, exactly? I defined a threat model and a mitigation. And it's pretty straightforward - a single keypair that ties environment variables to their deployment.

The article you linked to is about signing. It doesn't solve "I need to put an AWS key into the environment of a process".

comment 4y ago · link · parent

I don't think rent control is the policy of a "strict authoritarian government". Regardless, I don't agree with you that rent would rise considerably or that it would negate any benefit.

comment 4y ago · link · parent

Yes, thank you for the detailed explanation.

comment 4y ago · link · parent

Via a machine.

comment 4y ago · link · parent

> why tax all of us

Because it impacts all of us. Imagine the impact on crime and homelessness if there were UBI. Quality of life would improve for everyone. I'm happy to pay my taxes if it goes to that.

comment 4y ago · link · parent

With buildkit Docker now has support for secrets natively with `--secret`. This mounts a file that will only be exposed during build.

comment 4y ago · link · parent

We've been happy with buildkite and hashicorp vault. One nice feature we've leveraged in our CI is that vault lets us revoke tokens after use, so we have very short lived tokens and they're made that much shorter by having the jobs clean up after themselves.

comment 4y ago · link · parent

> 1. Environment variables are traditionally readable by any other process in the system. There are settings you can do on modern kernels to turn this off, but how do you know that you will always run on such a system?

I think that this would require being the same user as the process you're trying to read. Access to proc/pid/environ should require that iirc. You can very easily go further by restricting procfs using hidepid.

And ptrace restrictions are pretty commonplace now I think? So the attacker has to be a parent process or root.

> 2. Environment variables are inherited to all subprocesses by default, unless you either unset them after you fork() (but before you exec()), or if you take special care to use execve() (or similar) function to provide your own custom-made environment for the new process.

Yeah, this goes to my "easy to leak" point.

Either way though you're talking about "attacker has remote code execution", which is definitely worth considering, but I don't think it matters with regards to env vs anything else.

Files suffer from (1), except generally worse. File handles suffer from (2) afaik.

Embedding the private key into the binary doesn't help too much if the attacker is executing with the ability to ptrace you, but it does make leaking much harder ie: you can't trick a process into dumping cleartext credentials from the env just by crashing it.

comment 4y ago · link · parent

Good thing there would be UBI then?

comment 4y ago · link · parent

One thing that's been made clear in the last two years is that even a very very measly increase to unemployment can have huge impact. And unemployment runs out after a while, and the increases have been tiny. And unemployment makes you jump through hoops, is very stressful, and wastes a lot of your time.

I expect that UBI could start off very small and still have huge impact. A quick search shows that median income can range from ~40k-80k state to state. I'd bet you could radically change this country for way less than that.

comment 4y ago · link · parent

> If my job requires menial labor or involves getting berated by customers (many retail jobs), personally I would absolutely not work.

Maybe that's a good thing. It's insane how people in service industries are treated - like they're less than human. Shifting some power to them and giving the job a little more of an air of dignity or status would probably help a lot.

And the pay would obviously go up. People would be willing to do the job if it means life or death, but not for minimum wage - and that's a good thing.

comment 4y ago · link · parent

Thank you for writing this up.

Some thoughts:

1. Hardcoded credentials are a plague. You should consider tagging all of your secrets so that they're easier to scan for. Github automatically scans for secrets, which is great.

2. Jenkins is particularly bad for security. I've seen it owned a million and one times.

3. Containers are overused as a security boundary and footguns like `--privileged` completely eliminate any boundary.

4. Environment variables are a dangerous place to store secrets - they're global to the process and therefor easy to leak. I've thought about this a lot lately, especially after log4j. I think one pattern that may help is clearing the variables after you've loaded them into memory.

Another I've considered is encrypting the variables. A lot of the time what you have is something like this:

Secret Store -> Control Plane Agent -> Container -> Process

Where secrets flow from left to right. The control plane agent and container have full access to the credentials and they're "plaintext" in the Process's environment.

In theory you should be able to pin the secrets to that process with a key. During your CD phase you would embed a private key into the process's binary (or a file on the container) and then tell your Secret Manager to use the associated public key to transmit the secrets. The process could decrypt those secrets with its private key but they're E2E encrypted across any hops between the Secret Store and Process and they can't be leaked without explicitly decrypting them first.

comment 4y ago · link · parent

Can you explain wtf is happening here?

comment 4y ago · link · parent

It's blue for me. Sort of a pastel or sky blue.

comment 4y ago · link · parent

When I'm identifying a cheese I feel like it's 50% sight, 40% smell, 10% feel. It's hard to imagine identifying arbitrary cheeses with just sight. There are so many and a lot of them look extremely similar.

Even distinguishing between Jarlsberg and Swiss seems like it could be a challenge, and that would be easy relative to a lot of others. On top of that if you have something like brie there's a million of them - I don't think I could distinguish brie de nangis from another brie unless I could touch it.

comment 4y ago · link · parent

Of course it can be regulated. Countries are working towards that already. It's already a taxable asset. Nothing about the blockchain makes bitcoin harder to regulate.
1
646566
164