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

Switch FileSystemCache to use checked artifact deserialization #3856

Merged
merged 1 commit into from
May 12, 2023

Conversation

theduke
Copy link
Contributor

@theduke theduke commented May 12, 2023

We recently introduced safe artifact deserialization methods, which are a
much saner default than the unsafe variants, and only have small performance
overhead.

The CLI was switched to the the new, safe deserialization,
but the cache was not updated.

This commit and switches the FileSystemCache implementation to use the
checked deserialization variants.

NOTE: The Cache::load method should also be made safe, but that is a
breaking change.

@theduke theduke force-pushed the cache-use-safe-module-deserialization branch from 1907011 to 8c3e817 Compare May 12, 2023 07:28
We recently introduced safe artifact deserialization methods, which are a
much saner default than the unsafe variants, and only have small performance
overhead.

The CLI was switched to the the new, safe deserialization,
but the cache was not updated.

This commit and switches the FileSystemCache implementation to use the
checked deserialization variants.

NOTE: The Cache::load method should also be made safe, but that is a
breaking change.
@theduke theduke force-pushed the cache-use-safe-module-deserialization branch from 8c3e817 to f87d0f3 Compare May 12, 2023 13:49
@theduke theduke enabled auto-merge (rebase) May 12, 2023 13:49
@theduke theduke merged commit ef5dbd4 into master May 12, 2023
@theduke theduke deleted the cache-use-safe-module-deserialization branch May 12, 2023 14:22
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