Skip to content

kbs/token: Unwrap JSON object from string if found#959

Closed
tylerfanelli wants to merge 1 commit into
confidential-containers:mainfrom
tylerfanelli:kbs-token-str-unwrap
Closed

kbs/token: Unwrap JSON object from string if found#959
tylerfanelli wants to merge 1 commit into
confidential-containers:mainfrom
tylerfanelli:kbs-token-str-unwrap

Conversation

@tylerfanelli

Copy link
Copy Markdown
Contributor

The TEE public key is represented as a JSON object. However, some serialization libraries encode this object within a JSON string. If this is found, unwrap the object from the JSON string and then deserialize.

@tylerfanelli tylerfanelli requested a review from a team as a code owner September 15, 2025 17:44
The TEE public key is represented as a JSON object. However, some
serialization libraries encode this object within a JSON string. If this
is found, unwrap the object from the JSON string and then deserialize.

Signed-off-by: Tyler Fanelli <tfanelli@redhat.com>

@Xynnn007 Xynnn007 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks like this patch is a follow-up for #920. Any updates for #920 (comment) ? I still think it is more reasonable to change the serialization in the producer side.

@tylerfanelli

Copy link
Copy Markdown
Contributor Author

This is a placeholder so #920 can move forward and be merged. Still looking into the producer issue. Marking as draft for now.

@tylerfanelli tylerfanelli marked this pull request as draft September 17, 2025 02:04
@Xynnn007

Copy link
Copy Markdown
Member

nit: #920 gets merged.

@tylerfanelli

Copy link
Copy Markdown
Contributor Author

I've proposed a fix for the producer in confidential-containers/kbs-types#75. This PR can be closed if that is merged.

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