Better HN
topnewbestaskshowjobs
Log inSign up

stryan

1,447 karma · joined Nov 20, 2013 (13y ago) · 385 submissions

Submissions

comment 1d ago · link · parent

I'm all aboard the Yubikey train[0] for securing SSH keys, but I'd imagine most SSH keys aren't being exfiltrated by smart attackers putting in the work to steal decrypted keys from RAM. Most SSH keys are being exfiltrated by scripts being run via curl | bash (or agents...) that quickly gather up every potentially useful user file they can find and upload it to a remote endpoint somewhere.

[0] I also use an SSH key in Bitwarden for lower priority concerns, but my main SSH keys that get automatically installed on remote systems and used for signing commits are stored via FIDO on Yubis.

comment 1w ago · link · parent

> On the other side, you have a monolith that hit 1.3 million lines of code a few years ago, and has gotten more and more complicated since then.

Just a nit, that 1.3 million lines was reported incorrectly. You can see some talk at https://news.ycombinator.com/item?id=21935186 and I remember a Poettering tweet saying that was including things like documentation. At the time systemd was under 500k lines; still big but not quite so huge.

I'm also not sure if that count was for the full repository (which contains multiple modular projects like systemd-resolved that are not required for systemd) or just the actual systemd bin.

comment 2w ago · link · parent

Fantastic thanks! I look forward to seeing it :)

comment 2w ago · link · parent

At least for the Yubikey option, the whole point is that the private key does not leave the HSM.

comment 2w ago · link · parent

If you're using -sk keys (i.e. setup via FIDO2 on the Yubikey like the article, not PIV) yes you can forward the keys loaded into your agent like normal, with ssh -A.

comment 2w ago · link · parent

Hey I'm in the middle of doing a very similar thing, though I didn't go quite as far as OP. I'm slowly deprecating my old RSA SSH keys and replacing them with a combination of Yubikey, Password Manager, and alternative SSH auth:

1. -sk keys on Yubikeys (with touch enabled) are my primary keys, used for signing and always installed on every host I touch/etc. I initially planned on using the PIV slots on my Yubi's to store the SSH keys instead of the built-in FIDO2 setup, but I hated having to manage multiple moving parts (like getting pscd running on all my clients). The only main benefit of using the PIV slots was being able to set the "cache" touch policy: the YK would cache a touch for up to 15 seconds so doing something like "signing multiple commits during a rebase" would only take one touch instead of num_commits. The side benefit would have been getting to re-use the same SSH key across primary and backup Yubis. The simplicity of the FIDO setup won out and I decided to treat getting annoyed at pressing my Yubikey a bunch of times as a sign I should be doing some sort of alternative setup like a dedicated key. Most prominently, I've now properly setup my Ansible configs with dedicated deploy keys kept as secrets instead of reusing my personal key.

2. I use 1Pass and Bitwarden (work/personal) to store a secondary SSH key that's only used for basic Git auth or other low-risk tasks. This SSH key is loaded from the Password manager directly into ssh-agent via stdin so it never touches my disk; I use fnox to make this backend agnostic.

3. Work uses Teleport, personal uses Tailscale so I rely on those SSH auth most of the time. Nothing much to say here except that Tailscale ssh is really convenient :) .

I've also setup PAM login and sudo on my machines, which brings me back to the old Sun Ray/Smartcard days. None of this is really to prevent security breaches/dedicated attackers or anything, though it certainly makes me harder to compromise. I just wanted to make absolutely sure I couldn't accidentally upload an SSH private key somewhere.

comment 2w ago · link · parent

Neat! I've got a similar setup for the hours, though I use normal 24-hours and just adjust the start/end times by relation to current dawn/dusk. I'd love to get it on a clock but alas for now it lives as a Home Assistant automation, playing chimes whenever the hour changes. You wouldn't happen to have a repo for your version would you?

I learned about the hours through the game Pentiment; you may enjoy the clock face used in it to tell in game time: https://pentiment-clock.vercel.app/ .

comment 2w ago · link · parent

Gotcha, that's what I figured but I was still curious. I've got a side-project that was originally designed for traditional GitOps but got OCI support as a feature submission from a user. I've been seeing more usage of the OCI backend these days and originally figured it was a side-effect of the project domain (Podman Quadlets) but maybe it is an over all field shift.

comment 2w ago · link · parent

> and in Kitty's case the whole annoying lot of Kitty-derived and Kitty-standardized features every terminal emulator is now supposed to support, which also break existing compatibility -- with the usual "you are holding it wrong" arguments when someone points it out.

What an odd complaint; it's not like he's going about to other projects forcing them to add them. I suspect the reason some of Kitty's standardized features are being independently adopted by other terminal emulators is because they are genuinely useful.

comment 2w ago · link · parent

OCI layering on top of running systems a la bootc? or OCI as the desired state storage for CM?

comment 3w ago · link · parent

Ah, I didn't realize the tarballs on the Tangled site were cached. If it happens again I'll try that :)

But yeah I recognize it's an issue for any package manager. I suppose I just forgot that even something like my local editor is reliant on remote forges now unless I go out of my way to mirror it all.

comment 3w ago · link · parent

Really looking forward to seeing Tangled develop! I've got a side project that's main repo and CI is on my self-hosted Gitea but code and releases are mirrored to Github; I'm hoping to move it off Gitea and onto Tangled for code/releases/potentially CI and just keep Github for discoverability/backups/namespace "squatting". Just need git-bug to add a Tangled bridge so I can keep issues synced and (ideally) for there to be instructions for running the client self-hosted. It doesn't have to be a full featured client but I also don't want to be SOL for web visibility if the main Tangled appview is down.

One musing: I did run into my first "issue" with federated Git hosting the other day while setting up Neovim on a new machine. One of the plugins I use is hosted on Tangled and I guess its backing Knot was down. This was awkward for two reasons:

1. It as unclear to me from the Tangled website the backing knot was the issue (for a while I thought it was something on my end)

2. I really had no backup plans for something like a Neovim plugin's source forge being down and, clearly, neither did the Neovim package manager as it just kept showing an error on every session I started with no way to fix it :).

I suppose in the long run we really shouldn't be assuming that code storage is just Always There or easily cached somewhere, but I anticipate some growing pains in the mean time. ATProto doesn't seem to have the benefit ActivityPub has where if the instance I wanted to view content on was down I can usually find some other instance that's gotten the messages.

comment 4w ago · link · parent

Throwing out some thoughts after reading the docs page(s):

1. The "What are trails" section does not actually tell me what trails are; it tells me it brings agents and devs together, and that branches are involved somehow through "changes", but it doesn't actually tell me what they are

2. I am never going to willingly watch a Youtube video embeded in docs. I'm barely going to watch a video in a docs page at all. I'm here to learn how to use something, not see a sponsored ad for NordVPN.

3. The marketing blurb, the top half of the docs, and the bottom half ("Enable Trails" onwards) all feel like their describing different things. The marketing blurb describes a total reinvention/view of the PR layout where instead of seeing diffs you see different bars that you can balance by telling the bots to keep reviewing/changing. The top half of the docs sounds like some sort of spec description system and absolutely reeks of LLM speak.

4. The rest of the docs make more sense: Under the web UI tab for "Create a Trail" I finally see what a Trail looks like (a simplified Jira ticket or GH issue) and I start actually understanding that this is an elaborate "built for AI" version of stacked PRs, CI checks, and project management.

5. The Agents and Gates subdocs are where content starts getting interesting and the documentation quality is a lot better. I am actually getting interested in this product.

I still don't fully understand what and why I would want Trails, but I suspect I'm not the target audience. There's bits of it that certainly look interesting but having to swap all my infra over to Entire is a hard sell.

comment 4w ago · link · parent

The graph generator looks interesting, but the rest of the blog post is filled with so much marketing it's a slog to get through to the good bits. I struggle to imagine a scenario where I willingly choose the "Trails" view even if, and god help us if it is, that's the direction PR review is going.

comment 1mo ago · link · parent

Yeah I'd love to see/hear some examples here; I mostly listen to small-to-mid-level black/doom/trad/power bands and haven't noticed this type of standardization of sound.

It's possible I don't have the ear for it though, so now I wish the article had posted how it made this type of analysis so I could run some of my albums through it myself.

comment 1mo ago · link · parent

Fnox (by jdx of mise) supports fetching secrets and caching the results either in local age encrypted files or in a background daemon (in memory only) to minimize repeated gets. The daemon is per terminal instance too I believe so you fetching a secret once doesn't store it for the whole session.

It's not a perfect fix but it keeps secrets out of env with (so far for me) minimal inconvenience.

comment 1mo ago · link · parent

You can't do just an email address, but if you're running your own domain you can do your own OIDC with it. My tailnet auths against my self-hosted KanIDM server.

comment 1mo ago · link · parent

Podman supports using KVM backed virtualization for containers via libkrun: `podman run --runtime=krun` . Still not the end-all-be-all security boundary, but better I think.

comment 1mo ago · link · parent

I wish they had an actual feature comparison list. I've been trying to find anyone who can give me a list of non-trivial differences between the two; so far it's always either FUD about Gitea's governance and security structure or ForgeFed. The former has made me rather wary of the project[0] and the latter has been stagnate for years and I'm no longer convinced anything will come from it. Otherwise it's just silence.

Personally I thought Forgejo was doing better work on their actions runner for a while from casual changelog browsing but Gitea's been putting a lot of work into theirs. Otherwise it mostly still looks like a soft-fork in practice to me.

[0] Not that I'm thrilled with Gitea's semi-open-core setup and company but they make it seem like they're kicking puppies and dangling features over non-enterprise users head before snatching them away.

comment 2mo ago · link · parent

> Are the changes Omarchy specific or distro-agnostic? You say both.

The changes are specifically for Omarchy. They just happen to still be distro-agnostic. There is no guarantee this continues in the future.

The discussions:

Using managed tool-stub bundles for Omarchy’s lazy CLI layer: https://github.com/jdx/mise/discussions/12597

Proposal: give every Omarchy user a declarative "my machine" file with mise bootstrap: https://github.com/jdx/mise/discussions/12709

Proposal: give Omarchy dotfiles automatic history, easy restore, and optional sync with mise: https://github.com/jdx/mise/discussions/13022

> I don't even know what hyperland and quickshell are. I don't use mise because it seems to solve problems I solve with containers.

Okay? Your lack of awareness of the tools does not change the fact that 15 millions dollars that is supposed to "support the linux desktop", but right now is mostly funding its own distro.

comment 2mo ago · link · parent

It was easy to ignore before it "raised" around 15 million dollars. That's a lot of money to be throwing around a mostly-donation based ecosystem.

I'm already seeing discussions on the mise[0] Github discussions about Omarchy specific changes and designs. I'm not saying anything about these specific changes and they seem mostly distro-agnostic for now, but it goes to show how it can affect other distros/software even if you don't use it.

[0] mise is being sponsored by the Omacon foundation, which is what all this money is technically going to. It also happens to be the only "independent" tool being sponsored by the foundation, as the hyperland dev is essentially contracted by them and the QuickShell dev was hired by DHH.

comment 2mo ago · link · parent

> Also, Japan doesn't actually have a 'colonial history' having never been colonized by another nation.

It was never colonized but I've often heard it talked about in a similar way due to the effects of the Commodore Perry and the post WWII occupation (i.e. see their infamous pornography laws), as well as neighboring affects from China's colonial history.

comment 2mo ago · link · parent

>Japan has ultra processed foods and they don't seem to have an obesity epidemic.

Most of that's from a much stronger national guidance on weight control + societal expectations, but IIRC they also are gaining weight. Their ultra processed foods (in the salt and preservative sense) are also why they have one of the highest rates of stomach cancer.

> They also don't have a marijuana epidemic.

Not sure if I'd categorize the US as in a marijuana epidemic (and this is coming from someone who doesn't consume it and dislikes being around it) but even if we were, the states with the highest marijuana usage (west coast and NE) and the states with the highest obesity rates (deep south) are almost non-overlapping circles. If we're tying a drug to be obesity rates I'd be much more willing to believe it's the American propensity to chug large amounts of cheap 100-120 calories a pop beer.

comment 2mo ago · link · parent

I don't think there's a way to really say a comment like this "with all possible respect" given the (albeit meager) content of the article.

Either way, I'd be much more willing to bet that if Toady had Opus/Sol/whatever we wouldn't have Dwarf Fortress, we'd just have Rimworld: perhaps a technically better game, but not !FUN! in the same way Dwarf Fortress is fun.

comment 2mo ago · link · parent

Good news for you then, they are trying to increase the food quality to be closer to the Japanese stores: https://www.tastingtable.com/2216099/7-eleven-major-changes-...

The decline of the classic US fast food restaurants (McD's, Wendy's, BK) has been matched by gas station food getting better and better. The 7-11 breakfast sandwiches are pretty good these days and sometimes the hamburgers even taste like real meat :) .

comment 3mo ago · link · parent

As someone who A) likes to drink and B) gets truly horrendous hangovers (all-day, barely can get out of bed since age 22 hangovers) I've been pretty disappointed with the lack of research in hangovers. There's a "Alcohol Hangover Research Group" that meets yearly that I keep up with it but nothing major yet.

Personally my pet theory (as mentioned in the article) is there's more of an immune system reaction then people think. This would explain some of the difference in hangover sensitively and reactions, plus from my personal "experiments" I've noticed pseudoephedrine+painkiller really clears my hangovers up sometimes, much like a bad head cold. On the other hand, it doesn't work every time making me thing that some hangovers are immune-system based, some acetaldehyde based, some dehydration, etc. Plus there's the effects of the beverages drunk and low level gluten or hops intolerance.

DHM-based (Cheers and Zaca usually) and Zbiotics are the best preventatives I've tried so far; they won't stop everything but I do feel a bit better the next day after taking them compared to without. All three are very expensive unfortunately and none are better than the greatest preventative of all: drinking water throughout the night :) .

comment 3mo ago · link · parent

At the very least, the main guy behind this is pat-s who was originally a WoodpeckerCI dev and has been in and around Codeberg/Forgejo/Woodpecker for a while so I trust he knows his stuff. His work on CrowCI (Woodpecker fork) has been great.

I also swear I've read that same "buy a hetzener dedi install forgejo" etc etc line before, but maybe it's just you're not the only person cynical about the situation.

comment 3mo ago · link · parent

It's the usual English drift perhaps, but "bold faced lie" has been used since the 17th century, which is also apparent from "thirty seconds of Google searching". Three hundred years is enough usage for me to count it as correct.

On a side note, "bold faced" does not mean the persons face is bold, only that it is said boldly, which implies a level of rudeness that "bald-faced" or "bare-faced" does not.

comment 3mo ago · link · parent

"bold-faced lie" and "bald-faced lie" are both valid expressions. The original expression is "bare-faced lie" but they're all pretty similar to each other.

comment 3mo ago · link · parent

Alas, something like that wouldn't have helped me either as I was on the other side of the river :) . But yeah some sort of regional coordination between local governments or something like that would fix or at least help the problem.

Like I said in my original comment, I think really the problem is just the scale of the build out. Before the AI boom DCs were being built slowly enough that it wasn't a problem and/or costs could be amortized over time. But cost sharing agreements and subsidization needs to be done before the DCs are built the they're certainly not going to push for it, so the people need to. Lower state taxes in the future due to DCs subsidizing power is (sincerely) great and all, but it doesn't do shit for the families deciding between food and heating their house in the winter before those benefits kick in.

12345
13