1. Secret Logo

Secrets 4.7: Advanced password generator, SSH askpass, iTerm2 integration

With Secrets 4.6 and the introduction of Apple Watch support, we started giving some long-requested features their turn. Secrets 4.7 continues that trend, picking up a few more requests that had spent a long time on the TODO list without quite making it to the top.

This time, we're adding an advanced password generator, SSH askpass integration, and a bonus integration with iTerm2 on the Mac.

Advanced password generator

There's a reason this one stayed on the list for so long. In an ideal world, every password you store in your password manager would be completely random and unique. You shouldn't need to remember it, dictate it, or even look at it: let Secrets generate it, store it, and fill it for you. That's what Secrets has always encouraged, and continues to encourage.

But there are occasional exceptions. You might need a password you can remember or dictate to someone, or have to work around a service with unusually specific rules about which characters it accepts.

The new advanced password generator gives you options for those situations. You can generate a memorable password or take finer control over the characters used to create one, then save it in Secrets as usual.

Secrets' advanced password generator with Memorable selected, showing options for word count, separator, capitalization, and a number suffix.

The advanced generator gives you more control when you need a memorable password.

For everyday logins, let Secrets generate and fill your passwords. When you need something memorable or a service imposes specific rules, you now have more flexibility.

SSH askpass integration

SSH askpass is a mechanism that lets SSH ask another program for a password instead of having you type it directly into the terminal. In Secrets 4.7, that program can be Secrets.

Like the browser extension, this tool is purposely “dumb”: it serves as a conduit between SSH and Secrets, reusing the same password-filling machinery. Searching and selecting a Login happens in Secrets itself.

Once configured, connecting to an SSH server that asks for a login password brings up Secrets. When it recognizes the prompt, Secrets shows the destination and searches for the hostname to help you find the right Login. Select it, click Fill, and carry on with your connection.

This works with SSH login passwords in any terminal app. You'll find the setup instructions in our terminal password filling guide.

A bonus: iTerm2 integration

SSH askpass is great, but it doesn't cover all the password prompts you encounter in a terminal. A command such as sudo, for example, can ask for a password without going through SSH at all.

For those prompts, there's a bonus in this release: integration with iTerm2, a popular terminal app on macOS. Its Python API made it possible to bring Secrets' password filling to other terminal prompts as well.

iTerm2 Settings under General → Magic, with the enabled Python API checkbox circled.

Enable the Python API in iTerm2's Settings → General → Magic as part of setting up the integration.

After setting it up, focus the pane waiting for a password and press your Secrets keyboard shortcut. Search for and select the Login in Secrets, and its password is filled into that pane and submitted automatically.

iTerm2 already integrates with other password managers through its password manager protocol. That protocol requires the password manager to list all its entries to iTerm2, where you then select the one you want to use.

That doesn't fit a design decision we've held to from the start: listing, searching, and selecting Logins should happen in Secrets itself. Keeping those steps in the app limits how much information Secrets shares with other tools. A terminal integration doesn't need a list of your Logins to fill the one you've selected.

Thankfully, iTerm2's Python API gives us enough flexibility to honor that decision. And once again we've designed this conduit to be purposely “dumb”. Secrets handles the search and selection, and the satellite tool only receives the password you choose to fill.

See the iTerm2 setup instructions to give it a try.

It's always satisfying to finally tick a few of these requests off the list. I hope they make Secrets a little more useful in your day-to-day work. Let me know what you think 😉.