Locksmith: Store Maven Secrets in the macOS Keychain (Or a Unix Socket)
Locksmith: Store Maven Secrets in the macOS Keychain (Or a Unix Socket)
Hello HN, In the age of LLMs sucking in random secrets, sandbox escapes, and RCE orbital bombardment, I thought it'd be a good idea to create a Maven Extension that defers to the MacOS keychain for resolving secrets. In general, it's a good idea to not have any secrets (passwords, tokens, etc) stored in plaintext files. Also, this allows your machines to be FIPS-140 complaint, if thats a thing for your job. Locksmith is a Maven Core Extension that defers to the MacOS Keychain. The entry format in settings.xml looks like: `{[type=locksmith]nexus.superbiz.example.com/username}` This was a fun project and I used the Project Panama FFM with jextract for the first time. The FFM is a great iteration on JNI (which still has it's place) and was pretty much brainless to use. Setup is quick and easy and I tried to make the readme as friendly as possible. As an aside, I've also architected the core Library indecently from the Maven bits, so if you do need to read from the MacOS keychain in a project, you could pull the core Library in without dragging in Maven. Being 2026, of course Claude was used to assist in the creation of the project, however Locksmith is not vibecoded top-to-bottom. I personally loathe AI slop. I use LLMs as a tool, not a crutch. Enjoy!
Share cardActual performance
Launch Intel predictions
Analyze your own launch →Correct prediction on native model
Similar products
Use macOS keychain to store secrets
A microservice for splitting and recombining secrets
Dwellable Secrets (nice data viz with d3)
BitNote – Using browsers and blockchains to store secrets
Share secrets with Glitch
Urban Secrets Herbal products
Env files aren't meant for storing secrets
Secs-man, a secrets manager you can (not) rely on
Knox, Secrets as a Service
Kevlar.io – Secrets that when accessed are deleted permanently