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

Fetch: Adding status check to HTTP response #41

Merged
merged 1 commit into from
Feb 22, 2024

Conversation

larrydewey
Copy link
Contributor

Previously to this fix #37 , URL requests would write the contents of "404 Not Found" to the certificate being requested. This adds a simple check to make sure the certificate was successfully pulled before writing it.

Copy link
Member

@DGonzalezVillal DGonzalezVillal left a comment

Choose a reason for hiding this comment

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

You also need to add this fix for vcek. The code will only solve the issue for requesting CA certificates.

@larrydewey larrydewey marked this pull request as draft February 16, 2024 17:45
@larrydewey larrydewey force-pushed the 37-validate-fetch branch 2 times, most recently from c2c478f to 8e1ddaa Compare February 22, 2024 20:54
Previously to this fix (37), URL requests would write the
contents of "404 Not Found" to the certificate being
requested. This adds a simple check to make sure the
certificate was successfully pulled before writing it.

Signed-off-by: Larry Dewey <[email protected]>
@larrydewey larrydewey marked this pull request as ready for review February 22, 2024 21:06
Copy link
Member

@DGonzalezVillal DGonzalezVillal left a comment

Choose a reason for hiding this comment

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

lgtm

src/certs.rs Outdated Show resolved Hide resolved
@larrydewey larrydewey merged commit 4f99f49 into virtee:main Feb 22, 2024
2 checks passed
@larrydewey larrydewey deleted the 37-validate-fetch branch February 22, 2024 21:07
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.

snpguest fetch vcek should raise an error when the VCEK cannot be fetched
3 participants