Better HN
topnewbestaskshowjobs
Log inSign up

bschaatsbergen

62 karma · joined Jul 10, 2021 (5y ago) · 40 submissions

Submissions

1.

Talking to /Dev/Sev-Guest(bschaatsbergen.com ↗)

2 points · by bschaatsbergen · 1mo ago · discuss

2.

Fetching AMD SEV Reports (With Zig)(github.com ↗)

3 points · by bschaatsbergen · 1mo ago · 1 comment

3.

Show HN: An eBPF kernel guard for vTPM access(github.com ↗)

5 points · by bschaatsbergen · 1mo ago · discuss

4.

Nobody Encrypts Container Images(bschaatsbergen.com ↗)

8 points · by bschaatsbergen · 2mo ago · 1 comment

comment 2mo ago · link · parent

Joke's on them, I don't have the key either.

comment 2mo ago · link · parent

Thanks for sharing Ted!

comment 2mo ago · link · parent

What mjg59 says. The benchmarks are against a vTPM, that was what I had access to, and it's the environment I'm implementing the RATS side in.

Worth adding that not every outbound connection needs to go through the TPM (IMO). It's for the handful of services where the machine-identity actually matters, a secret store, or an HSM releasing key material onto an attested confidential VM, in my case.

comment 2mo ago · link · parent

Author here. There's a benchmark table further down the post, the numbers come from this repo if you want to run them yourself: https://github.com/bschaatsbergen/go-tpm-tls-bench

comment 2mo ago · link · parent

Author here. All of it is mine, the library (https://github.com/bschaatsbergen/go-tpm-tls) and the benchmarks (https://github.com/bschaatsbergen/go-tpm-tls-bench) and the working notes. English isn't my first language, so I edit a lot, and I can see how that comes out flat. I've been over it once more; hopefully it reads better now. Thanks for saying so rather than just closing the tab.

comment 2mo ago · link · parent

That's right, I'm learning in public here. That draft is a different direction though, they change the handshake: new TLS extensions carry the evidence, and the far end appraises the platform during the connection.

What I'm doing changes nothing on the wire, the verifying side has no idea a TPM is involved. In RATS (https://www.rfc-editor.org/rfc/rfc9334.html) we prove a machine is sound by measuring it and appraising the evidence. But after attestation the usual thing is to hand the machine a short-lived identity saying it is attested, and when that machine then authenticates over mTLS to something like an HSM, the thing that gives that machine its identity is a private key in a file. That bothered me. What I want is to tie the key in the TPM to the evidence of the confidential VM at issuance time, and let that be the identity the machine carries afterwards. Working notes while implementing RFC 9334.

11.

Signing TLS handshakes inside a TPM(bschaatsbergen.com ↗)

36 points · by bschaatsbergen · 2mo ago · 46 comments

comment 4mo ago · link · parent

Author here, thanks for posting this. Been going deeper on TPMs lately, working through machine identity after remote attestation, the point where you've proven a machine is genuine but still need it to prove which machine it is to something like a secret store. crypto/tls takes any crypto.Signer, so this library slots a TPM-resident ke in and signs the handshake without the key ever leaving the hardware; happy to answer anything on the library or the attestation side.

13.

Show HN: Marmot, context layer for agents and humans(marmotdata.io ↗)

17 points · by bschaatsbergen · 5mo ago · 4 comments

comment 10mo ago · link · parent

That's, indeed, a spec limitation, not something cek can solve. If you're interested in provenance tracking, you might want to look at Sigstore's cosign attestations or GUAC (Graph for Understanding Artifact Composition).

comment 10mo ago · link · parent

Skopeo and crane are both fantastic tools, but they address different problems at a different level. Skopeo and crane operate at the image registry level, handling pulling, pushing, synchronizing, etc. cek is focused on what's in the container itself, providing a programmatic way to explore a container’s (overlay) filesystem and layers with commands like ls, tree, and cat.

comment 10mo ago · link · parent

While they may look similar at first glance, Dive and Cek target different use cases. Dive is great at visualizing layer content and analyzing image efficiency, but requires the Docker daemon and can't extract file contents. Cek is daemonless (works with any container runtime or none at all) and focuses on providing a programmatic interface: `ls`, `tree`, `cat`, etc. for exploring a container's overlay filesystem and layers.

17.

List, inspect and explore OCI container images, their layers and contents(github.com ↗)

49 points · by bschaatsbergen · 11mo ago · 11 comments

18.

Multi-resolver DNS dialer for Go with race, fallback, and consensus strategies(github.com ↗)

3 points · by bschaatsbergen · 1y ago · discuss

19.

Typosquatting GitHub Container Registry `Ghrc.io`

15 points · by bschaatsbergen · 1y ago · 1 comment

20.

Zns: CLI tool for querying DNS records with readable, colored output(github.com ↗)

30 points · by bschaatsbergen · 1y ago · 6 comments

21.

Replicating AWS RDS automated backups to a different region(binx.io ↗)

2 points · by bschaatsbergen · 4y ago · discuss

12