-
Notifications
You must be signed in to change notification settings - Fork 45
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
Improved image upload process #810
Conversation
b164c80
to
1de5f18
Compare
f1f4632
to
b2ee794
Compare
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.
I'm not sure i understand the change properly, but i have the feeling, that one would be able to "steal" an artifact here by claiming to upload a blob with a certain checksum, not showing any chunks to the server and then committing said upload object.
I would not be so worried about artifact stealing because we have many other windows when it can happen. For example in the sync pipeline. Artifact can be stolen by the time it reaches Content stage. |
2de3faf
to
dde1826
Compare
I do not think there is a way to steal artifacts by using uploads in the current implementation. (I agree, until we have all the necessary queryset-scoping on the artifacts the holes are wide open in other areas, but we intend to close them.) |
I don't understand your last comment. This PR does not address or solve the artifact stealing issues at all - it focuses on performance. The data is not read nor written twice. This is important because even calculating the digest of the same data adds time. More importantly how object storage is involved here because users pay money for every write/read request to the bucket. |
What i wanted to say is that it introduces a new way to steal an artifact. One more we that need to think about later if we don't solve it right away. |
1240c22
to
3875a6c
Compare
91f57cb
to
3ca9027
Compare
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.
One last concern i found.
closes pulp#797 Required PR: pulp/pulpcore#2779
[noissue]
Required PR: pulp/pulpcore#2779