-
Notifications
You must be signed in to change notification settings - Fork 30
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
genpolicy: Update oci_distribution to 0.10.0 #129
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please port the remaining genpolicy commits from cc-msft-prototypes into msft-main, before making these oher changes - to make sure we don't leave useful changes behind, in cc-msft-prototypes.
Please don't include MSFT private links in public PRs. |
* genpolicy: deny UpdateEphemeralMountsRequest Deny UpdateEphemeralMountsRequest by default, because paths to critical Guest components can be redirected using such request. Signed-off-by: Dan Mihai <[email protected]> * policy: update samples Signed-off-by: Dan Mihai <[email protected]> --------- Signed-off-by: Dan Mihai <[email protected]>
I believe the crate name is oci_distribution, not oci_distribution_client |
src/tools/genpolicy/src/registry.rs
Outdated
@@ -232,7 +232,10 @@ async fn get_image_layers( | |||
for layer in &manifest.layers { | |||
if layer | |||
.media_type | |||
.eq(manifest::IMAGE_DOCKER_LAYER_GZIP_MEDIA_TYPE) | |||
.eq(manifest::IMAGE_DOCKER_LAYER_GZIP_MEDIA_TYPE) || |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please format this code using rust-analyzer. It looks like it wants to format it as:
if layer
.media_type
.eq(manifest::IMAGE_DOCKER_LAYER_GZIP_MEDIA_TYPE)
|| layer.media_type.eq(manifest::IMAGE_LAYER_GZIP_MEDIA_TYPE)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for highlighting this. I had rust-analyzer, but didn't have formatOnSave
toggled on my vs code settings
04db7a8
to
74a3ba5
Compare
Ported only change missing from cc-msft-prototypes (da40e41) and rebased my changes on top of it to preserve chronological order |
Also support alternative media type and update samples Signed-off-by: Saul Paredes <[email protected]>
37552e3
to
d794f38
Compare
Bring back remaining changes from
cc-msft-prototypes
(Only da40e41)Update oci_distribution and support alternative layer media type. These 2 things add back support for images like
docker.io/library/busybox:latest
test run: 100% pass