-
Notifications
You must be signed in to change notification settings - Fork 3
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
Define Key service interface with OpenAPI #4
Comments
OpenPGP keyserver draft implementation protocol https://tools.ietf.org/html/draft-shaw-openpgp-hkp-00 implemented by: http://pgp.key-server.io/ or http://pgp.mit.edu/ and others Draft:
|
The |
ours probably is /keys/{key_id} |
The generic document that we use for rest api guidelines is https://docs.google.com/document/d/1mukWvbZ3uhrLg960NU44n_RyGnmKG8f4skVWn2xkUAM/ Also it could be interesting to be able to retrieve the keys of a user. For example when we generate a download box for a user, it would be needed to know which key has to be used for that user, and maybe a type param if the user can have multiple keys. /users/{user_id}/keys?type=xxx |
So here is the rest interface Getting the AES key for a specific file /keys/retrieve/{keyId}/public /keys/retrieve/{keyId}/public/{keyType} Getting a Private Key /keys/retrieve/{keyId}/private/path /keys/retrieve/{keyId}/private/key Return all current Key IDs I think that the retrieve word is an extra as the endpoints use the get http verb. I also found there is an inconsistency in the filekeys endpoint. To me that endpoint would be soemthing like /files/{fileId}/keys and for a user key would be /users/{userId}/keys And if you already know the keyId for a file, It seems there is no way to obtain it right, or one must use /keys/retrieve/{keyId}/public/{keyType} ? but if it's a symmetric key it does not make sense right? For getting a key, the endpoint would be just keys/{keyId} About the keyId is not clear if you are always referring to the keyId assigned by PGP or to an internal keyId, like how a keyid would be generated for a symmetric key? So what do you think about my comments? Thanks |
I created OpenAPI specification based on current implementation: https://app.swaggerhub.com/apis/ELIXIR-Finland/Local-EGA-Key-service/1.0.0 It has all the endpoints but not the responses. Let's try to agree on endpoints before moving to the responses. |
Good job. |
Ok I think that the |
No description provided.
The text was updated successfully, but these errors were encountered: