HNHacker News
TopNewBestAskShowJobs

justinludwig

557 karma · joined February 13, 2010

submissionscomments
justinludwig··on Most Polluted Cities in the U.S.
It's the smoke from the annual forest fires of late summer and early fall throughout the West Coast. That smoke makes for really high individual 24-hour readings, plus ends up skewing the annual averages as well.
justinludwig··on What Is Rosenpass?
Rosenpass is WireGuard plus a custom addition. This addition continually rotates the optional, per-connection preshared keys used by WireGuard.

This is probably overkill for most use-cases (particular for a consumer-level VPN), but it's a nifty addition if you fear your WireGuard keys may be stolen at some point.

justinludwig··on Mercedes hopes its new OS will give it an advantage
> The platform will include an Android container allowing third parties to build Android applications that will be available in an independent app store.

Now that's pretty interesting -- being able to mod your car via APKs!

justinludwig··on Ask HN: Legal Entity for Personal Projects?
Yes, an LLC is the simplest way to protect yourself from personal liability, and a good idea if you plan on providing any sort of goods or services to others.

You should form an LLC in the state where you live. Here's a nice guide for how to do this in California:

https://feross.org/form-california-llc/

justinludwig··on Ask HN: Forming a Delaware LLC and registered agent
If you live in the US and you're setting up an LLC just for yourself, it's cheaper & simpler to form the LLC in the same state in which you live, since a) you can act as your own registered agent, b) you'll still have to register with the state in which you live anyway, and c) it'll be easier to set up a bank account.

Delaware in particular can be more pricey than most states, since their infrastructure is oriented towards enabling third-party services (DelawareInc, IncNow, etc) instead of interacting directly with your business. Prepare to wait weeks for them to mail you copies of your documents unless you pay a third-party service to expedite.

The advantage of forming in Delaware is that there's lots and lots of settled business case law; but that's generally not relevant to a sole-proprietor LLC. (It is relevant, however, if you're forming a company with the aim of raising venture capital -- in which case you really want a Delaware C-Corp, not an LLC.)

justinludwig··on CircleCI incident report for January 4, 2023 security incident
Nice writeup. Allowing customer data and secrets to be exfiltrated is a pretty big fail, and will probably make a number of customers re-think their patronage at a time when supply-chain security is top-of-mind to many.

But three things mentioned in their report do give me some confidence about the way CircleCI has engineered their internal systems:

1. They use SSO with 2FA ("an unauthorized third party leveraged malware deployed to a CircleCI engineer's laptop in order to steal a valid, 2FA-backed SSO session")

2. They maintain reasonably good audit logging (they could identify that "the third party extracted encryption keys from a running process, enabling them to potentially access the encrypted data" which had been exfiltrated)

3. They can rebuild everything from scratch ("we rotated all potentially exposed production hosts to ensure clean production machines")

A lot of companies pay lip service to best practices like these, but don't actually implement them thoroughly (or at all). The fact that CircleCI could rely on them under attack makes me think they're doing a better job than 90% of the SaaS companies out there.

justinludwig··on Ask HN: Is this interview process fleecing candidates for ideas?
These sound like pretty standard interview questions to me. Would be a little weird if you're being asked to answer these in written form, though (instead of as part of an interactive conversation). Perhaps there's a bit of a disconnect between the person who came up with these questions, and whoever's running your interview process? Like these were written up to interview a more senior hire, but are now being repurposed as part of an entry-level test?
justinludwig··on Encrypt/decrypt files with the OpenSSL CLI
Ah, in that case I think `-aes-256-gcm` is probably your best option (which isn't available with regular old OpenSSL).
justinludwig··on Encrypt/decrypt files with the OpenSSL CLI
I like the fact that your script is simple, and uses a ubiquitous library! But I do have a few suggestions:

1. You may be using an older version of openssl, but with modern versions, add the `-pbkdf2` option for much saner key derivation.

2. With modern versions of openssl, the `-salt` option is on by default, so you don't need to specify it explicitly (and you almost certainly want this option on, versus not using a salt or generating one yourself).

3. Since no AEAD modes are available with this tool, CTR mode (the `-aes-256-ctr` option) might be the best mode to use with AES (see https://security.stackexchange.com/questions/27776/block-cha...).

4. Alternatively, you might prefer to use ChaCha20 (the `-chacha20` option) over AES (see https://crypto.stackexchange.com/questions/34455/whats-the-a...).

So I would suggest this for the encryption command (instead of `openssl enc -aes-256-cbc -salt -a`):

> openssl enc -chacha20 -pbkdf2 -a

Also, instead of using openssl, you might prefer to use `age`, as it uses modern crypto best practices by default (see https://age-encryption.org/). With it, you could substitute this encryption command for the above:

> age -p -a

justinludwig··on What's a good Linux terminal emulator that doesn't try to reinvent TMUX?
If you're using Wayland, foot is fast, lightweight, and has good color and font support: https://codeberg.org/dnkl/foot
justinludwig··on Ask HN: How do you access your servers and applications remotely?
WireGuard makes this really easy. A simple WireGuard jumphost works basically anywhere, for practically any kind of application: https://www.procustodibus.com/blog/2022/11/wireguard-jumphos...
justinludwig··on Fears mount that Cop27 app could be used by Egypt to surveil regime’s critics
Money quote:

> "This is a cartoon super-villain of an app," said Gennie Gebhart, the Electronic Frontier Foundation’s advocacy director. "The biggest red flag is the number of permissions required, which is unnecessary for the operation of the app and suggests they are trying to surveil attendees."

justinludwig··on Tool that lists all Fediverse instances including Mastodon, Pleroma, Rebased
Big picture, Mastodon isn't just Twitter minus the moderation -- it's Twitter minus the algorithm for promoting the most "engaging" content. That's a big win, because it's the competition for the most engaging content that always ends up as a race to the bottom.

The dumbest, silliest, and rudest comments and commenters get promoted on Twitter (and Facebook etc), because that gets the most clicks. Get rid of all that manufactured promotion, and what's left is a quieter space where users can self-organize their own communities -- more like a chill party or friendly conference hallway than a staged political rally.

justinludwig··on The Not All Scotsman Fallacy
That's painful for this English speaker to read -- try "not every Scotsman" or "not all Scotsmen" instead.
justinludwig··on DoS attack against Diffie-Hellman protocol
Looks like the URL for this post should be this instead: https://dheatattack.com/
justinludwig··on Ask HN: How realistic is for a non-programmer to launch a SaaS?
If it really is just a login page and some content, you can start out with an off-the-self CMS (like WordPress et al), with little to no development work. That would provide you with a quick way to test out your ideas.

You might also want to look into the burgeoning low-code/no-code space, if you need something a little more complicated. If it turns out you need to do more serious programming, however, that's when it's probably time to look for a technical co-founder.

justinludwig··on Ask HN: What comp should a tech co-founder ask for?
Most startups are of course going to fail, but to give yourself the best chance for success, split the stock equally between cofounders (leaving ~20% for future employees); devote 100% of your time to the startup; and once you get funding, take a salary that allows you to live comfortably and continue to devote 100% of your time to the company.

Also, because life is short and your savings aren't infinite, set some metrics (X many users, Y much revenue, Z much funding, etc) to meet under some time horizon (3 months, a year, etc), and when that time point arrives, if you're not close to your goals, fold the company and try something new.

justinludwig··on Ask HN: Late Stage Cofounder Equity
Sounds about fair, assuming they agree to put you on a decent salary once they have more money. They've already validated the idea, now they need help executing. It's not the same level of risk when you start out from square one as it is when you start out from square zero.

You'd be essentially Employee #1 with a fancier title (and more sway if they take the C in your title seriously). If the amount of equity is important to you, you should go start your own startup from scratch. But if you like and trust the founders, and are excited about what you would be doing, then the equity is just a bonus for being a key player in getting the company successfully to its next stage.

justinludwig··on Why does nobody seem to know what imperative and declarative mean?
TLDR: everyone does know what imperative and declarative mean, but when it comes to Pulumi (an infrastructure-as-code development kit), nobody other than the author makes a distinction between Pulumi itself (declarative) and the code that uses Pulumi (imperative).
justinludwig··on I've now used Linux nftables for firewall rules and it went okay
One of the nicest things about nftables is the way most distros has packaged it: with a service named "nftables" that runs a base config file from a standard location (usually /etc/nftables.conf or /etc/sysconfig/nftables.conf). With iptables, it seemed like every distro had a different "standard" way of configuring the base ruleset (through various services and init scripts) -- and changed it up every few years.
justinludwig··on How to Improve Your Monolith Before Transitioning to Microservices
There's nothing special about .dev domains, other than they're automatically included on Chrome's HSTS preload list (so Chrome won't let you connect to a .dev website unless it has a valid HTTPS cert). If Bluehost says they "don't support" them, they probably don't know what they're doing.

This is what you'd typically do to point a custom domain (eg example.dev) that you've registered through one DNS-hosting company to a website that you've set up with a different web-hosting company:

https://docs.netlify.com/domains-https/custom-domains/config...

justinludwig··on Beyond the Four-Document Model
I like the thinking behind this article, but it seems to me that the additional types the author brings up are all just specialized versions of the four primary documentation types:

- Conceptual Overviews: High-level "explanations" (broader instead of deeper).

- Examples (and case studies): "How-to guides" that focus on more narrowly-specific use cases instead of more general or common ones.

- FAQs: "Reference" -- what readers want from FAQs are short concise answers, ideally with links to further details.

- Troubleshooting: "How-to guides" that focus on fixing common problems.

- Best practices: Opinionated "explanations" that focus just on best practices -- the best "best practices" guides explain why, not just what.

justinludwig··on White House: Prepare for cryptography-cracking quantum computers
> US government agencies are ordered to prioritize the entire process of transitioning to quantum-resistant cryptography and mitigating as much of the quantum risk as possible by 2035.

> The CISA and NIST Directors are working on developing technical standards for quantum-resistant cryptography for each of their respective jurisdictions, with the first set to be made publicly available by 2024.

So nothing new to be alarmed about, just doing appropriate planning for the future of cryptography over the course of the next few decades.

justinludwig··on Post-incident review on the Atlassian April 2022 outage
I can't say that I've ever been a fan of Atlassian or their products, but this blog post makes it sounds like they've at least learned the right lessons from this:

1. Establish universal "soft deletes" across all systems.

2. Better DR for multi-site, multi-product incidents.

3. Fix their incident-management process for large-scale incidents.

4. Fix their incident communications.

Regarding #4 in particular:

"Rather than wait until we had a full picture, we should have been transparent about what we did know and what we didn't know. Providing general restoration estimates (even if directional) and being clear about when we expected to have a more complete picture would have allowed our customers to better plan around the incident....

[In the future], we will acknowledge incidents early, through multiple channels. We will release public communications on incidents within hours. To better reach impacted customers, we will improve the backup of key contacts and retrofit support tooling to enable customers... [to make emergency] contact with our technical support team."

justinludwig··on Ask HN: How would you, a solo dev/small team, make a scalable web app in 2022?
Here are three books you might find interesting:

* The Pragmatic Programmer, by Dave Thomas & Andy Hunt

* Scalability Rules, by Marty Abbott & Michael Fisher

* Release It!, by Michael Nygard

justinludwig··on Ask HN: How would you, a solo dev/small team, make a scalable web app in 2022?
Going from 0 users to 1 user is the (first) hardest part of scaling a web app. Optimize your early architecture for speed of change, not for speed of serving web pages. You will need to make lots and lots of changes to get to 1 user, and then to 10 users, and so on.

So use the tools and platforms that you already know, that you can hire for, and that will allow you to try out changes rapidly. Do everything you can to keep things as simple as possible for as long as you can -- the more architectural pieces you add now, the more you will have to change later.

justinludwig··on Ask HN: Where are all the cool architecture diagrams?
Here's a few you might like: https://www.procustodibus.com/blog/tag/cloud/
justinludwig··on Light exposure during sleep impairs cardiometabolic function
I love my nite hood exactly for that reason: https://www.nitehood.com/
justinludwig··on Have you noticed patterns in TOTP tokens?
TLDR: no special patterns, people just tend to see patterns even where there are none
justinludwig··on The Road to OCIv2 Images: What's Wrong with Tar? (2019)
The original title, "The Road to OCIv2 Images: What's Wrong with Tar?", is a lot better IMHO. Otherwise, a great history lesson on the tar format, and why it's not a great fit for OCI images.
← PreviousPage 2 of 3Next →