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

at_cli_onboarding does not create atKeys as expected #635

Closed
cconstab opened this issue Aug 21, 2024 · 2 comments · Fixed by #638
Closed

at_cli_onboarding does not create atKeys as expected #635

cconstab opened this issue Aug 21, 2024 · 2 comments · Fixed by #638
Assignees
Labels
bug Something isn't working

Comments

@cconstab
Copy link
Member

Describe the bug

Seems that the library ignores/trims after a . in a atKey name

Steps to reproduce

  1. First get an OTP
  2. Enroll a key with a -K and ask for a key file with a . in the name
  3. Approve the enrollment
  4. atkey file created but trimmed (and possibly could over write?) to the first .
  5. example below

Expected behavior

use the key name asked for

Screenshots

[Success] Your .atKeys file saved at /home/cconstab/.atsign/keys/orac.sshnp/.atKeys

cconstab@orac:~/twh$ ./at_activate enroll -s SIS1YC  -p sshnp   -d orac_subkey1  -n "orac.sshnp:rw,orac.sshrvd:rw" -a @ssh_1 --keys ~/.atsign/keys/orac.sshnp
Submitting enrollment request
Enrollment ID: 20347bcf-925b-438a-8124-13c70df5e0c5
Waiting for approval; will check every 10 seconds
Checking ...  not approved. Will retry in 10 seconds
Checking ...  not approved. Will retry in 10 seconds
Checking ...  approved.
Creating atKeys file
[Success] Your .atKeys file saved at /home/cconstab/.atsign/keys/orac.atKeys

cconstab@orac:~/twh$ ./at_activate enroll -s 7IVW6H  -p sshnp   -d orac_subkey2  -n "orac.sshnp:rw,orac.sshrvd:rw" -a @ssh_1 --keys ~/.atsign/keys/oracsub2
Submitting enrollment request
Enrollment ID: 1625506f-8e54-4d67-ad33-fef71711d395
Waiting for approval; will check every 10 seconds
Checking ...  not approved. Will retry in 10 seconds
Checking ...  not approved. Will retry in 10 seconds
Checking ...  approved.
Creating atKeys file
[Success] Your .atKeys file saved at /home/cconstab/.atsign/keys/oracsub2.atKeys

cconstab@orac:~/twh$

Smartphones

  • sshnp 5.6.0/twh_tools

Were you using an atApplication when the bug was found?

No response

Additional context

No response

@cconstab cconstab added the bug Something isn't working label Aug 21, 2024
@gkc
Copy link
Contributor

gkc commented Aug 21, 2024

@sitaram-kalluri and/or @srieteja please can you pick this up?

@sitaram-kalluri
Copy link
Member

@sitaram-kalluri and/or @srieteja please can you pick this up?

Sure Gary. I will work on this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants