-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ACR] Harden downloadBlob and getManifest validation (#25769)
### Packages impacted by this PR - `@azure/container-registry` ### Issues associated with this PR - Fix #25645 ### Describe the problem that is addressed by this PR Add extra validation to `downloadBlob` and `getManifest`: - Restrict manifest size to 4 MB - Throw early if bytes read during `downloadBlob` exceed the value in the `Content-Length` header Based somewhat on the [Java PR for the same thing](Azure/azure-sdk-for-java#34737), but without validation of the `Content-Range` header since we are using optimistic download.
- Loading branch information
Showing
3 changed files
with
25 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters