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

kbs_protocol: Return unquoted string from attestation() #168

Merged

Conversation

jepio
Copy link
Member

@jepio jepio commented Jun 22, 2023

Currently the String returned from attestation() is quoted, because Value["token"] is a Value, and to_string() returns the "string representation" of the Value instead of the contained string. Introduce a struct representing the data returned from /attest, and deserialize into that so that we return the correct, raw string.

Closes: confidential-containers/attestation-agent#214

Currently the String returned from attestation() is quoted, because
Value["token"] is a Value, and to_string() returns the "string representation"
of the Value instead of the contained string. Introduce a struct representing
the data returned from /attest, and deserialize into that so that we return the
correct, raw string.

Signed-off-by: Jeremi Piotrowski <jpiotrowski@microsoft.com>
@jepio jepio requested a review from jialez0 as a code owner June 22, 2023 12:03
@jialez0 jialez0 merged commit ba1f62e into confidential-containers:main Jul 3, 2023
@jepio jepio deleted the fix-attest-string-return branch July 3, 2023 07:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants