Closed
Description
Not an issue, but didn't know where else to ask. Was looking to see how people are managing their agent config files.
Currently I stored my agent.toml files as a document and install one in a new env via
op document get "hostname-agent.toml" --out-file=~/.config/1Password/ssh/agent.toml
but as I started using different configurations for different envs, and needing to rotate SSH keys for existing envs, it becomes a pains to edit the config via the app because it would open in whatever the default text editor is instead of the in-app editor for items, and I'd have to go back and for between the app and text editor to copy paste the key names, then save the new .toml and replace the current .toml with the new.
- Is there a better way? If so, please do share
- If not, could we add a built in Item Template Category for an SSH Agent Configuration so it can be easily modified via the app and then referenced as an item to
get
via the CLI? - Could we also add a tool in the CLI to automatically configure the SSH client to use the 1P SSH Agent? The Desktop app makes it super easy with one button to automatically add the IdentityAgent snippet to your ~/.ssh/config file, so it'd be nice to have that in the CLI as well for server installs, like maybe an
op agent install
in the management commands that appends the IdentityAgent snippet to ~/.ssh/config or appendsSSH_AUTH_SOCK=~/.1password/agent.sock
to the shell profile?