Better HN
topnewbestaskshowjobs
Log inSign up

schlarpc

653 karma · joined Jul 29, 2014 (12y ago) · 50 submissions

Senior security engineer at Amazon.
Submissions

comment 2w ago · link · parent

I built exactly this at work over the past few months, sadly not open source though. It uses Cedar policies for process lifecycle, network activity (at basically every layer), filesystem access, credential usage through brokers, and so on, with context injected into every evaluation, and cgroup freezer on Linux for stop-and-escalate-to-user. Maybe I should use this as evidence of demand for us to open source it...

comment 1mo ago · link · parent

Totally agree with this sentiment. On your plugin point, I recently did a PoC of QuickJS in wasmtime with a restrictive sandbox (10 syscalls total) for running untrusted plugin code and it was great. Took maybe 3-4 days to pull together and performed more than adequately for the kind of thing this class of software needs, with a security posture that beats pretty much anything widely deployed. When this level of engineering excellence is so cheap to achieve, we really need to bully companies that refuse to do it.

comment 2mo ago · link · parent

That ribbon got slammed full of advertisements at some point, last I knew.

comment 3mo ago · link · parent

I suspect the bar will raise for some devices, but most will continue to be made cheaply and with poorly-defined requirements and threat models, and "it works" will continue be the only bar they're measured against before release.

comment 3mo ago · link · parent

Personal plan, but yes, my day job is being a security engineer for big tech.

comment 3mo ago · link · parent

I didn’t put this in the post, but yeah, I think about Daemon almost every day at this point. Unbelievably prescient novel.

comment 3mo ago · link · parent

I have CVP access, which removes the external refusals for Opus 5. I submitted my LinkedIn and Github and got approved in less than 10 minutes.

comment 3mo ago · link · parent

We should catch up some time, it’s been ages!

comment 3mo ago · link · parent

I understand what it does, I think the alert is annoying. It takes at least five minutes and automatically runs when the monitor is off. I’ve had it for a few years and have no burn in issues despite not doing this every eight hours on command.

10.

Everything I own, owned(schlarp.com ↗)

1453 points · by schlarpc · 3mo ago · 351 comments

comment 1y ago · link · parent

Doesn’t work for livestreams as far as I know. There’s an open PR: https://github.com/yt-dlp/yt-dlp/pull/6498

comment 1y ago · link · parent

Interesting that it can’t reestablish the connection, as the application level protocol should support it just fine. The client should notice the GRE (game rules engine) TCP socket is broken, and reset everything. When you reconnect, the front door service should notify you to a GRE session still in progress, and the client should be able to rejoin that. At least, that’s how it works on desktop.

comment 1y ago · link · parent

And thankfully you won’t be looking at it much longer

comment 1y ago · link · parent

Just wanted to say thanks for nix2container. I’ve been using it to do some deploys to AWS (ECR) and my iteration time between builds is down to single digit seconds.

comment 1y ago · link · parent

Thanks for the link, I've got a bunch of hacky code for running Immich's compose under Nix that this might be able to replace.

comment 3y ago · link · parent

I have a similar display, and also use blue noise dithering. Mine is driven in the backend by a web browser, which means I was able to abuse CSS and mix-blend-mode to do the dithering for me:

  ha-card::after {
    content: "";
    background-image: url(/local/visionect-dither.png);
    background-repeat: repeat;
    position: absolute;
    height: 100%;
    width: 100%;
    display: block;
    mix-blend-mode: multiply;
  }
The dithering texture used is 128_128/LDR_LLL1_10.png from https://github.com/Calinou/free-blue-noise-textures

comment 3y ago · link · parent

Whoa, .alt is finally a proposed standard with a real RFC number. Really happy about this, it's sorely needed in some spaces.

comment 3y ago · link · parent

Another option for NixOS is bootspec-secureboot, I'm using it with no real complaints: https://github.com/DeterminateSystems/bootspec-secureboot

comment 3y ago · link · parent

There kind of is, but it's not really made for that use case so there's a bunch of caveats (it's read/write, has a limited max number of attachments, io1/2 required, can't be the boot volume): https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-volu...

comment 3y ago · link · parent

https://docs.aws.amazon.com/whitepapers/latest/security-desi....

comment 3y ago · link · parent

This was considered a feature back in the day; it was called MASE - Multiple Account, Same Email. I'm pretty sure you can just change the email on one of them to get out of that state.

comment 3y ago · link · parent

Somewhat related - I made a bridge server [1] that lets ACME clients use standard RFC2136 to solve DNS-01 challenges for internal names without them needing credentials for the actual DNS backend (Route 53 in my case).

[1] https://github.com/schlarpc/rfc2136_bridge/blob/main/src/rfc...

comment 3y ago · link · parent

If anyone's interested in poking around a little bit more, here's a half-finished client for the MTG Arena wire protocol: https://gist.github.com/schlarpc/a58f2f647ee2a640baa62c23a51...

There may be something else more complete out there since I last worked on this, no idea.

comment 3y ago · link · parent

Just created it yesterday. I don't think there's as much incentive to squat on the S3 namespace like there is for domain names.

comment 4y ago · link · parent

Kinesis Firehose uses an IAM role to deliver data, so delivery within the same account does not necessarily depend on permissions on the bucket. Removing s3:* permissions from that IAM role or adding an explicit deny statement to the bucket policy would stop the flow of data.

https://docs.aws.amazon.com/firehose/latest/dev/controlling-...

https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_p...

comment 7y ago · link · parent

The Chrome update only bumped to 3.25.3, so it's likely a commit between 3.24.0 and 3.25.3:

https://chromium.googlesource.com/chromium/src/+/c368e30ae55...

comment 8y ago · link · parent

In Python 3, all classes are "new style", so omitting the parent is the same as inheriting from `object`.

comment 8y ago · link · parent

There's a couple recent products that hit similar niches:

GPD Pocket: https://www.indiegogo.com/projects/gpd-pocket-7-0-umpc-lapto...

GPD Win 2: https://www.indiegogo.com/projects/gpd-win-2-handheld-game-c...

Ockel Sirius A: https://www.ockelcomputers.com/sirius-a/

I have the original GPD Win, and it's a surprisingly competent PC for being roughly the size of a Nintendo 3DS XL. The keyboard is terrible for typing on, but that's kind of expected with its gaming focus.

comment 8y ago · link · parent

Looks like the "Go support" is just running a precompiled binary that starts a TCP listener (https://github.com/aws/aws-lambda-go/blob/master/lambda/entr...), so might not be that hard to port...

comment 9y ago · link · parent

And when you use a role like this, you really should use an external ID to avoid confused deputy attacks.

http://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_cre...

12