Skip to content

Public keys are not exported into mounted stores #2830

@Adirelle

Description

@Adirelle

Summary

When adding recipients to a mounted store, their keys are not exported into the .public-keys directory of the target store.

Steps To Reproduce

  1. (Optional: set GOPASS_HOMEDIR and PASSWORD_STORE_DIR to point to empty directories to avoid interference from existing configuration and stores)
  2. Create a new root store : ./gopass init
  3. Create and mount a new substore : ./gopass mounts add -c substore ./substore
  4. Add a recipient to the substore : ./gopass recipients add --store=substore SOME_KEY_ID
  5. Observe that the key has not been exported into the substore : ls ./substore/.public_keys

Expected behavior

Public keys are exported into the .public_keys directory of the target store.

Environment

  • OS: Ubuntu 22.04 in WSL2
  • OS version: Linux orgrimmar 5.15.146.1-microsoft-standard-WSL2 #1 SMP Thu Jan 11 04:09:03 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
  • gopass Version: gopass 1.15.11 go1.22.1 linux amd64 (e390f25)
  • Installation method: from source

Metadata

Metadata

Assignees

Labels

bugDefects

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions