News for hackers. Stuff that matters.
Re:Show HN: go-nbd – A Pure Go NBD Server and Client by coppsilgold on Wednesday March 29, 2023 @07:57PM (#35365739)
I use NBD for my single-user NAS. You can use FDE (full disk encryption, luks) client-side.

The system managing the physical block devices never sees unencrypted data.

Such a setup shines when you use a laptop as your main machine and wish to have a lot of secure storage. The approach I chose was to bond ethernet & wifi6e, use wireguard (w/ PSK). And wonder the house with uninterrupted access.

Re:Show HN: go-nbd – A Pure Go NBD Server and Client by codethief on Thursday March 30, 2023 @02:39AM (#35368912)
This sounds really interesting, as in: It's the thing I didn't know I've been looking for because I didn't know it existed.

Could you elaborate on your NBD setup? (What do you use for the server?) And what kind of latencies do you see when you're at home / not at home? How do you handle backups? (Do you back up the encrypted blob server-side or do you back up the unencrypted data client-side, at the cost of having to deal with (probably) limited bandwidth & latencies.)

Re:Show HN: go-nbd – A Pure Go NBD Server and Client by coppsilgold on Thursday March 30, 2023 @09:49AM (#35372667)
I just use nbd-server, nbd-client (kernel module nbd). While at home things are fine, when not at home things can get bad unless you use something like UDPspeeder <https://github.com/wangyu-/UDPspeeder> then you just need to deal with slower speeds.

I do backups with borg while connected through ethernet.

Re:Show HN: go-nbd – A Pure Go NBD Server and Client by codethief on Friday March 31, 2023 @09:21PM (#35396018)
Thanks so much for the insights!

> While at home things are fine, when not at home things can get bad

What does "bad" mean exactly? Unrecoverable errors / faulty writes? It might be an irrational gut feeling on my part but for some reason operating a block device over a network makes me feel uneasy. How easy is it to mess up one's data?

Re:Show HN: go-nbd – A Pure Go NBD Server and Client by coppsilgold on Saturday April 01, 2023 @03:06AM (#35397936)
NBD uses TCP. And I had no unrecoverable (journal) corruption happen.

Imagine you had a physical drive which had unreliable reads and writes but that would always go through eventually. In that scenario I believe you would just have abysmal latency as the OS keeps retrying - and if the latency between retries was in milliseconds the actual speed would drop next to 0.

That said, sudden unrecoverable loss of connectivity would be equivalent of yanking out a physical drive. You would want to use a journaling filesystem.

Re:Show HN: go-nbd – A Pure Go NBD Server and Client by codethief on Tuesday April 04, 2023 @10:38AM (#35440357)
Thanks for elaborating!