-
Notifications
You must be signed in to change notification settings - Fork 98
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
Token not specified in kbs_types
#682
Comments
The token returned is a JSON Web Token. |
Thanks for clarifying. Will a JWK be the only response every found in the
You can then sync the response expected between client and server with a shared type. I'm trying to avoid the case where something changes on server side that isn't subsequently changed in client. Just a suggestion. If the only response ever from the server is a JWK (and is expected to stay that way) then I guess this can be worked around. |
There are some things that are not explicitly mentioned in the protocol documentation, but are present in the code implementation. The actual communication steps in code is
I suppose that you are thinking of what step 4 returns. The KBS protocol is designed for generic remote attestation requests, which means that the response it ultimately returns does not necessarily have to be an Attestation Token; it could be anything else. Therefore, I don't really recommend adding this specific implementation to the kbs-types library. It still can be anything. wdyt? |
It is: "If the attestation was successful, the KBS replies to that request with an Attestation Results Token." |
So because it's defined, should it be included? Or do you still feel the same way, that it should be left up to user? |
I prefer to leave to user. Now the core logic of the protocol is
So it doesn't matter what form the public key is returned in. This means that users can define how to return the public key used to encrypt resources. They can return it directly, or they can embed the key in the Attestation Token like the current KBS, or any way else. |
Sounds good, thanks. Closed. |
The token returned by the
kbs/attest
endpoint is not defined inkbs_types
. It is defined in the guest_components repository, however.For clients looking to avoid having to use that repository, a similar definition for
Token
(or some standardization of what a token actually contains, rather than just three separate base64-encoded strings that are comma separated) withserde::{Deserialize, Serialize}
inkbs_types
would be useful.The text was updated successfully, but these errors were encountered: