Skip to content

Suggested method for "Securing Your Editor" still leaks passwords. #2317

@BoostCookie

Description

@BoostCookie

The suggested method here https://github.com/gopasspw/gopass/blob/master/docs/setup.md#securing-your-editor, which is adding

au BufNewFile,BufRead /dev/shm/gopass.* setlocal noswapfile nobackup noundofile

to the vimrc, is not enough. The viminfo-file still gets written with content of the decrypted file. What should be used instead is

autocmd BufNewFile,BufRead /dev/shm/gopass* setlocal noswapfile nobackup noundofile viminfo=""

for vim and

autocmd BufNewFile,BufRead /dev/shm/gopass* setlocal noswapfile nobackup noundofile shada=""

for neovim.
So the path is wrong (the dot at the end) and it is still writing viminfo/shada.
I do not know if the MacOS path is correct, but the viminfo/shada-stuff is of course similar.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions