singularity icon indicating copy to clipboard operation
singularity copied to clipboard

singularity keys remove does not remove private key

Open mem opened this issue 5 years ago • 4 comments

Version of Singularity:

d95ecd3c41915a988f615e33d2e5fbeeabdb4522

Expected behavior

singularity keys remove xxx removes private keys or there's a singularity keys remove --secret xxx

Actual behavior

singularity keys remove xxx removes only the public key.

Steps to reproduce behavior

$ builddir/singularity keys list
Public key listing (/home/mem/.singularity/sypgp/pgp-public):

$ builddir/singularity keys newpair
WARNING: No default remote in use, falling back to: https://keys.sylabs.io
Enter your name (e.g., John Doe) : xxx
Enter your email address (e.g., [email protected]) : [email protected]
Enter optional comment (e.g., development keys) :
Enter a passphrase :
Retype your passphrase :
Generating Entity and OpenPGP Key Pair...done
Would you like to push it to the keystore? [Y,n] : n
Done.

$ builddir/singularity keys list
Public key listing (/home/mem/.singularity/sypgp/pgp-public):

0) U: xxx () <[email protected]>
   C: 2019-04-10 15:37:36 -0600 CST
   F: 35D7D8E9F80DA2FB9EBD6A6D0F2D4830479772E2
   L: 4096
   --------

$ builddir/singularity keys remove 35D7D8E9F80DA2FB9EBD6A6D0F2D4830479772E2

$ builddir/singularity keys list
Public key listing (/home/mem/.singularity/sypgp/pgp-public):

$ builddir/singularity keys list --secret
Private key listing (/home/mem/.singularity/sypgp/pgp-secret):

0) U: xxx () <[email protected]>
   C: 2019-04-10 15:37:36 -0600 CST
   F: 35D7D8E9F80DA2FB9EBD6A6D0F2D4830479772E2
   L: 4096
   --------

$ builddir/singularity keys remove --secret 35D7D8E9F80DA2FB9EBD6A6D0F2D4830479772E2
Invalid flag "--secret" for command "remove".

Options:

  -h, --help   help for remove

Run 'singularity key remove --help' for more detailed usage information.

mem avatar Apr 10 '19 21:04 mem

Yes, I'm aware of this and it is on my todo list. I'm on it! :+1:

WestleyK avatar Apr 10 '19 22:04 WestleyK

Hello,

This is a templated response that is being sent out to all open issues. We are working hard on 'rebuilding' the Singularity community, and a major task on the agenda is finding out what issues are still outstanding.

Please consider the following:

  1. Is this issue a duplicate, or has it been fixed/implemented since being added?
  2. Is the issue still relevant to the current state of Singularity's functionality?
  3. Would you like to continue discussing this issue or feature request?

Thanks, Carter

carterpeel avatar May 15 '21 16:05 carterpeel

This issue has been automatically marked as stale because it has not had activity in over 60 days. It will be closed in 7 days if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Jul 14 '21 16:07 stale[bot]

@mem @WestleyK Still getting this problem ? Have this been solved already ? If yes, what work around have you followed and applied ?

We're looking into the issue carefully, soon will bring to community and discuss ways to better solve as well address this. Thankyou for keeping the interest in the subject.

pedroalvesbatista avatar Jul 15 '21 06:07 pedroalvesbatista

Pending issues from the old repo are copied to the new repo (https://github.com/apptainer/apptainer/issues/1388) and cleaned from the old retired repo.

kmuriki avatar Jun 06 '23 02:06 kmuriki