frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Americans Are Smashing Flock Cameras

https://stateofsurveillance.org/news/flock-cameras-destroyed-nationwide-ice-backlash-2026/
358•rolph•2h ago•255 comments

The occasional ECONNRESET

https://movq.de/blog/postings/2026-05-05/1/POSTING-en.html
41•zdw•2h ago•7 comments

I turned a $80 RK3562 Android tablet into a Debian Linux workstation

https://github.com/tech4bot/rk3562deb
141•tech4bot•6h ago•81 comments

I don't think AI will make your processes go faster

https://frederickvanbrabant.com/blog/2026-05-15-i-dont-think-ai-will-make-your-processes-go-faster/
375•TheEdonian•7h ago•281 comments

Mercurial, 20 years and counting: how are we still alive and kicking? [video]

https://fosdem.org/2026/schedule/event/AGWUVH-mercurial-aint-you-dead-yet/
38•ibobev•2d ago•8 comments

Security researcher says Microsoft built a Bitlocker backdoor, releases exploit

https://www.techspot.com/news/112410-security-researcher-microsoft-secretly-built-backdoor-bitloc...
445•nolok•5h ago•179 comments

EU weighs restricting use of US cloud platforms to process sensitive gov data

https://www.osnews.com/story/144943/eu-weighs-restricting-use-of-us-cloud-platforms-to-process-se...
79•abdelhousni•1h ago•25 comments

Schanuel's Conjecture and the Semantics of Triton's FPSan

https://cp4space.hatsya.com/2026/05/03/schanuels-conjecture-and-the-semantics-of-fpsan/
8•c1ccccc1•1d ago•1 comments

Dontsurveil.me

https://opencivics-labs.github.io/dontsurveil.me/c22.html
20•laurex•3h ago•3 comments

Hindenburg's Smoking Room

https://www.airships.net/hindenburg-smoking-room/
78•crescit_eundo•2d ago•38 comments

Meta deletes popular 1M follower account after Kuwaiti request

https://twitter.com/ryangrim/status/2055992439031185782
100•bhouston•2h ago•50 comments

Native all the way, until you need text

https://justsitandgrin.im/posts/native-all-the-way-until-you-need-text/
308•dive•7h ago•208 comments

Prolog Basics Explained with Pokémon

https://unplannedobsolescence.com/blog/prolog-basics-pokemon/
160•birdculture•2d ago•28 comments

CUDA Books

https://github.com/alternbits/awesome-cuda-books
60•dariubs•6h ago•9 comments

Every AI Subscription Is a Ticking Time Bomb for Enterprise

https://www.thestateofbrand.com/news/ai-subscription-time-bomb
313•mooreds•7h ago•312 comments

High-Entropy Alloy

https://en.wikipedia.org/wiki/High-entropy_alloy
64•leonidasrup•3d ago•8 comments

XS: A programming language. Anywhere, anytime, by anyone

https://xslang.org
33•yacin•4h ago•17 comments

AI is a technology not a product

https://daringfireball.net/2026/05/ai_is_technology_not_a_product
207•ch_sm•6h ago•74 comments

Apple Silicon costs more than OpenRouter

https://www.williamangel.net/blog/2026/05/17/offline-llm-energy-use.html
238•datadrivenangel•7h ago•200 comments

Zerostack – A Unix-inspired coding agent written in pure Rust

https://crates.io/crates/zerostack/1.0.0
512•gidellav•20h ago•284 comments

WHO Declares Ebola Outbreak a Global Health Emergency

https://www.nytimes.com/2026/05/17/world/africa/ebola-congo-uganda-who-public-health-emergency.html
220•zzzeek•5h ago•123 comments

Scientists "bottle the sun" with a liquid battery that stores solar energy

https://www.sciencedaily.com/releases/2026/05/260513221821.htm
9•ndr42•34m ago•1 comments

Mozilla to UK regulators: VPNs are essential privacy and security tools

https://blog.mozilla.org/netpolicy/2026/05/15/mozilla-to-uk-regulators-vpns-are-essential-privacy...
535•WithinReason•12h ago•231 comments

Don't Outsource the Learning

https://addyosmani.com/blog/dont-outsource-learning/
7•korecodes•3h ago•0 comments

Colossus: The Forbin Project

https://en.wikipedia.org/wiki/Colossus:_The_Forbin_Project
193•doener•2d ago•66 comments

A nicer voltmeter clock

https://lcamtuf.substack.com/p/a-nicer-voltmeter-clock
282•surprisetalk•20h ago•36 comments

Hosting a website on an 8-bit microcontroller

https://maurycyz.com/projects/mcusite/
207•zdw•17h ago•17 comments

Moving away from Tailwind, and learning to structure my CSS

https://jvns.ca/blog/2026/05/15/moving-away-from-tailwind--and-learning-to-structure-my-css-/
638•mpweiher•1d ago•355 comments

Agentic Trading with Safe Guardrails

https://github.com/ShurikenTrade/shuriken-skills
36•jgan0978•6h ago•17 comments

OpenAI and Government of Malta partner to roll out ChatGPT Plus to all citizens

https://openai.com/index/malta-chatgpt-plus-partnership/
292•bookofjoe•23h ago•308 comments
Open in hackernews

Shell-secrets – GPG-encrypted environment variables

https://github.com/waj/shell-secrets
93•mgarciaisaia•1y ago

Comments

woodruffw•1y ago
The more general version of this is probably sops[1].

(A general problem with these kinds of “wrap GPG” tools is that you end up with “mystery meat” encryption/signatures: your tool’s security margin is at the mercy of GPG’s opaque and historically not very good defaults.)

[1]: https://github.com/getsops/sops

aborsy•1y ago
GPG man page is long. But to be fair, GPG, which I have used for decades, has never failed me.
theteapot•1y ago
This is 13 lines of Bash plus GPG which is available ~everywhere and a pretty lowish level Linux dependency. SOPS is +20KLOC of Go with support for cloud KMS etc etc. I think you got your mystery meat analogy backwards.
woodruffw•1y ago
The mystery meat in question is GPG, not sops or this.

(I also wouldn’t call GPG a low level dependency.)

theteapot•1y ago
lowish. Meaning if you run a Linux desktop env with a mild amount of software installed it's likely pulled in already.
ikiris•1y ago
So is Perl, that doesn’t make it a good argument to use it still for the same reasons.
akoboldfrying•1y ago
Perl is horrible, but for one-liners it's strictly less horrible than either sed or awk, which people still use because they are less horrible than pure Bourne shell for some common tasks.
woodruffw•1y ago
I’ve used a Linux desktop for my entire adult life, and I’m pretty sure GPG has never been bundled directly with my environment. I used to install it directly, but I haven’t needed that in years either since everything I needed GPG for (= git) supports SSH signing instead.
mgarciaisaia•1y ago
I didn't know about sops, thanks for sharing!

Encrypting YAML files' values may be handy for another project - will take note of it.

pluto_modadic•1y ago
for a newer password manager... https://github.com/FiloSottile/passage
qyckudnefDi5•1y ago
Looks like FiloSottile may have switched from passage to 1Password:

https://bsky.app/profile/filippo.abyssdomain.expert/post/3l5...

Would be interesting to get more context why move from storing passwords locally to an online service.

FiloSottile•1y ago
Team sharing with a non-technical person, mostly.

I still have high-value passwords and CLI credentials in passage + age-plugin-yubikey.

bitbasher•1y ago
Couldn't you just use pass and have something like this in your bash script/env:

export SOME_SECRET="$(pass show some/secret)"

Piraty•1y ago
this in a credentials file to source before doing some operation? sure. I usually do: ` ( . ./credentials && ./the_thing ) ` so the secrets are only in the subshell and don't linger in my shell session forever.

but don't put that in <shell>rc , as it a) will be visible for all other (child) processes of your shell b) will spawn pinentry everytime the agent's cache ttl expires

varenc•1y ago
That hides it in the source, but doesn't hide it in the execution environment that can access the ENV. Everything you run inside your shell could still read it. (but if you're running untrusted things...you've already lost)
ognarb•1y ago
I like the idea. GPG encryption are super helful when sharing secrets.

Disclaimer: I work on some UI for GPG as my day job.

hnlmorg•1y ago
Coincidentally I’ve written something similar to this too.

My main takeaway was that GPG isn’t nearly as user friendly as it needs to be.

mmh0000•1y ago
Highly true. Yet. If you complain or even offer patches (which will, always, without fail, be rejected).

You'll get told off by the GPG devs with something along the lines of "encryption is supposed to be hard".

9dev•1y ago
How hard would it be to devise an easy to use wrapper on top of GPG, kind of porcelain-like?
thayne•1y ago
You may be interested in https://sequoia-pgp.org/

It isn't exactly a wrapper, but it has an easier to use interface (as well as a more gpg compatible interface).

ognarb•1y ago
It already exists and it's called Kleopatra. It's developed by KDE with some support from the GPG developers and is part of the Gpg4Win suite.

It's used by quite a few companies and public administrations.

akerl_•1y ago
The easier and more productive thing is to make an easy-to-use tool that does a specific workflow vs trying to be a swiss army knife.

https://github.com/FiloSottile/age is this for encrypting files.

https://en.wikipedia.org/wiki/Signify_(OpenBSD) and https://jedisct1.github.io/minisign/ are this for signing files.

Signal/Whatsapp/etc that use the Signal Protocal are this for messaging.

It turns out solving one problem at a time and ending up with a bunch of purpose-built tools is way easier to get right than trying to jam an entire toolbox into one thing.

emmelaich•1y ago
There's a library wrapper, https://www.gnupg.org/software/gpgme/index.html

>GnuPG Made Easy (GPGME) is a library designed to make access to GnuPG easier for applications. It provides a High-Level Crypto API for encryption, decryption, signing, signature verification and key management. Currently it uses GnuPG's OpenPGP backend as the default, but the API isn't restricted to this engine. We have, in fact, already developed a backend for CMS (S/MIME).

upofadown•1y ago
I have been following the GnuPG mailing list for some years now. I must of missed that. Could we have some references to where someone has been told something to the effect of "encryption is supposed to be hard".
Valodim•1y ago
The correct way to do stuff like this these days with openpgp is to use a SOP (stateless openpgp) implementation. https://www.openpgp.org/about/sop/
viraptor•1y ago
Unless you're good at actually maintaining your gpg keychain and need other people to access this, I really wouldn't bother with gpg. There are way better and simpler options.

Age has a simpler interface and SSH key support https://github.com/FiloSottile/age

ejson2env has the environment variable integration and ejson has multiple backends https://github.com/Shopify/ejson2env

direnv can support any cli secrets manager per project directory https://direnv.net/

I've dealt with enough "why did this break" situations with gpg secrets files used by capable teams that I'd never recommend that to anyone. And unless you really need the public key support (teams and deployment support), you're unlikely to gain anything better over a password manager.

akoboldfrying•1y ago
age looks really interesting, thanks. I also learned from that page that appending ".keys" to your GitHub profile URL (so https://github.com/yourusername.keys) returns a list of your SSH public keys! (Where is this documented...?)
tomjakubowski•1y ago
Another trick with github urls: you can append .patch or .diff to any PR or commit URL, and you'll get back a git-formatted patch or diff.

https://github.com/rust-lang/rust/pull/139966

https://github.com/rust-lang/rust/pull/139966.patch

https://github.com/rust-lang/rust/pull/139966.diff

theteapot•1y ago
The tool is just pulling one encryption key from your local GPG keyring. What's to maintain?
viraptor•1y ago
What happens when you have multiple matching keys? What happens when your key expires? What happens when the output format changes? What happens when the key expires and it's attached to a hardware device? Gpg can fail in ways which do not tell you anything about the real underlying issue.

I promise this happens all the time to people for lots of stupid reasons.

theteapot•1y ago
> What happens when you have multiple matching keys?

Use keyid instead.

> What happens when your key expires?

GPG will refuse to use it for encryption. Create a new encryption key.

> What happens when the output format changes?

N/A here (?)

> What happens when the key expires and it's attached to a hardware device?

You got me.

XorNot•1y ago
Also.. expired keys aren't unusable. The encryption doesn't stop working.

If you have an expired GPG private key it will still decrypt things encrypted with the public key.

viraptor•1y ago
They're not unusable, but depending on the gpg wrapper it may look like it. Gpgme is the one I had most issues with raining with fatal errors where gpg on its own only reports a warning.

Non of this is impossible to overcome. Yet, I still was sometimes relied on to debug things.

XorNot•1y ago
Gonna have to give that a try because it sounds like a very bad interpretation of the expiry mechanism in keys - encryption functionally never expires if you have the key, because you have the key. It's solely an error on the part of the sender to use an expired key, because it might be no longer available.

(admittedly AFAIK encryption is handled by key expiry poorly overall in GPG - the lack of perfect forward secrecy means an expired key which leaks can still decrypt all the old messages if they were intercepted).

mgarciaisaia•1y ago
Oh - so age would be a gpg replacement, and not a shell-secrets replacement. I guess it could work, but also I haven't had any issues with GPG yet (in my ~4 years regularly using shell-secrets).

ejson2env sounds nice. Don't like the syntax of `eval $(...)`, but it does THE thing that most don't - it encrypts the secrets at rest!

Also, I have multiple logins for some services (company account vs company's client account), so separating concerns is cool. And having the "context" name in the PS1 helps avoid issuing the wrong command on the wrong account - you can even add emojis to the name for maximum discernability.

upofadown•1y ago
Age doesn't even have a keychain. You are expected to maintain your keys manually. So yeah, you will never have a problem with the age keychain. In the same way you will never get into trouble with the law in an anarchy. Not everyone wants to have to deal with all the details themselves.
asveikau•1y ago
I do something like this in my .muttrc. It was showing up in documentation iirc, as the typical way to store credentials for mutt.
dvektor•1y ago
I store my secrets in gpg encrypted files and inject them into my environment in my shell rc file.

AWS_SECRET_ACCESS_KEY=$(gpg -d ~/.secrets/aws/key.asc)

type of deal. its annoying to put in a password every time i open a new tmux pane but hey, better than plain text.

viraptor•1y ago
If you're using more complicated systems than just a single root account, have a look at https://github.com/99designs/aws-vault too.
mgarciaisaia•1y ago
That was what I did before knowing about shell-secrets. But I also need different "contexts" on the same domains/tools (different AWS accounts and credentials for different clients), and having none "set" by default prevents me from running _whatever command_ by mistake the majority of the time.
ykonstant•1y ago
Since GPG and openssh support the TPM for some operations, I am tempted to store secrets in the TPM instead; I think a hardware safe is better than messing with persistent envars and having to pay attention to children etc.

But I am very nervous about doing so, since I have heard bad things about the reliability of the TPM (limited writes or something?) and locking myself out of important places. Any people with experience using the TPM for secrets in Linux?

vcdimension•1y ago
I've forked the repo and created a zsh version: https://github.com/vapniks/shell-secrets