Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can not delete source keys in Focal #5579

Closed
6 tasks
kushaldas opened this issue Oct 14, 2020 · 0 comments · Fixed by #5581
Closed
6 tasks

Can not delete source keys in Focal #5579

kushaldas opened this issue Oct 14, 2020 · 0 comments · Fixed by #5581

Comments

@kushaldas
Copy link
Contributor

Description

In Focal container if we delete a source, the related gpg keys should also be deleted, but they are not getting deleted.

Steps to Reproduce

  • Start a Focal dev container from dev_focal branch: make dev-focal
  • Login as journalist, delete a source.
  • docker exec -it containerid /bin/bash
  • root@7701c5345245:~/code/securedrop/securedrop# gpg2 --homedir=/var/lib/securedrop/keys --list-keys

Expected Behavior

  • Only 2 keys, 1 for journalist, and 1 remaining source key should be there.

Actual Behavior

  • All 3 keys are there.
root@7701c5345245:~/code/securedrop/securedrop# gpg2 --homedir=/var/lib/securedrop/keys --list-keys                                                                                               
/var/lib/securedrop/keys/pubring.gpg
------------------------------------
pub   rsa4096 2013-10-12 [SC]
      65A1B5FF195B56353CC63DFFCC40EF1228271441
uid           [ unknown] SecureDrop Test/Development (DO NOT USE IN PRODUCTION)
sub   rsa4096 2013-10-12 [E]

pub   rsa1024 2013-05-14 [SCEA]
      A7501454825B423CF894E7CDEDE3DF05DE24277C
uid           [ultimate] Source Key <EVAXJEWVIHP4SSBOEF4N5KVFHBKN6FOGFBIEJQIIBGDE3R3LCUBSUHRCV72X6IS6SWSKRBIPVL7QJV2PD6UFBPL6XZY2VVCPY67BZEI=>                                                    

pub   rsa1024 2013-05-14 [SCEA]
      787F6132468D0A1E125C070F14530E2B67230F7D
uid           [ultimate] Source Key <OD4QTM56LDGKN3FUTCTN66GFB27D5STUAZP6LTMDS467YPE52HSXW4WJSNEPGIGQT3B75UMVRWO3HFNY4KUEJQFRY3L36A7FRKTFM4Q=>                                                    

Comments

Suggestions to fix, any other relevant information.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant