Adding a new store to Gopass in Windows

In our development environment, we have to work with Windows, and we are using Gopass.

gopass is a password manager for the command line written in Go. It supports all major operating systems (Linux, MacOS, BSD) as well as Windows.

We have to work with multiple password stores, so we can have dev, qa, and prod as an example.

Requirement: Add a new pass store to the existing gopass

Assumptions: You are familiar with using pass in Linux/Gopass in windows.

How: We will use CMD instead of Cygwin to showcase this. It can be done using cygwin, but I had a lot of problems due to the way that cygwin and windows represent paths.

Lets do it:

Initially you should have your password store in a folder — named specifically for your environment.

My new password store folder is located in C:\cygwin64\home\ezsusmu\.password-store-cvc.

From here on out, we will use windows Command Promot –> CMD.exe for the mounting/unmounting.

C:\cygwin64\home\ezsusmu>gopass mounts
gopass (C:\cygwin64\home\ezsusmu\.password-store)

As you can see, I only have my default store added.

To add a new mount to gopass, point to the location of the pass folder you want to include.

C:\cygwin64\home\ezsusmu>gopass mounts add cvc C:\cygwin64\home\ezsusmu\.password-store-cvc
Mounted cvc as C:\cygwin64\home\ezsusmu\.password-store-cvc

If you made a mistake and want to unmount:

$ gopass mounts remove cvc
Password Store cvc umounted



After mounting the new .password-store-cvc into gopass, we should be able to see it and use it:

I recommend to read the available features at https://github.com/gopasspw/gopass/blob/master/docs/features.md.



Leave a comment