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

keykeeper can create but not query keys with names that contain a slash / #162

Open
NeilHanlon opened this issue Feb 23, 2024 · 0 comments
Assignees
Labels
bug Something isn't working priority: low This issue or pull request is of low priority

Comments

@NeilHanlon
Copy link
Member

Describe The Bug

When a GPG key is created via keykeeper, the name can contain a /, however when querying the GPG key via /v1/keys/<name>/public-key, keykeeper fails to return any key despite proper URL encoding.

Reproduction Steps

  1. create a GPG key with a / in the name
POST http://localhost:46002/v1/generate-key
{
  "name": "Rocky Linux 10 - Beta Key V1/2024",
  "email": "releng@rockylinux.org",
  "fingerprint": "1e377f6e43ae776433685789ad4f9579597db479"
}
  1. query the gpg key
GET http://localhost:46002/v1/keys/Rocky Linux 10 - Beta Key V1%2F2024/public-key

n.b. it makes no difference if the spaces are urlencoded or not

Expected Behavior

Keykeeper API would return the GPG key for this named key

Version and Build Information

main

Additional context

No response

@NeilHanlon NeilHanlon added the bug Something isn't working label Feb 23, 2024
@mstg mstg added the priority: low This issue or pull request is of low priority label Apr 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working priority: low This issue or pull request is of low priority
Projects
None yet
Development

No branches or pull requests

3 participants