build(deps): bump spec to v0.22.7 and swag to v0.27.3 - #155
Merged
Conversation
Pulls the go-openapi/spec security release (v0.22.7): the $ref expansion node cap against amplification, the option-aware PathLoaderWithOptions loader, IsValidURI no longer performing a network request, and the unsandboxed-loader security documentation. Also moves the swag modules to v0.27.3, whose loading.WithRoot now confines local reads correctly for the absolute paths spec normalizes references to (including the Windows file-URL path form). Together these make loads' restricted loaders (SpecRestricted, JSONSpecRestricted, SetRestrictedLoaders, backed by RestrictedHTTPClient) fully effective for expanding untrusted specifications: local reads are confined to a root and remote fetches are filtered, across every $ref resolved by Document.Expanded. loads keeps assigning its option-bound loader.Load to spec.ExpandOptions.PathLoader; the new PathLoaderWithOptions field is not needed here, since the loader chain already pre-binds loading options. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Signed-off-by: Frederic BIDON <fredbi@yahoo.com>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #155 +/- ##
=======================================
Coverage 82.86% 82.86%
=======================================
Files 5 5
Lines 286 286
=======================================
Hits 237 237
Misses 31 31
Partials 18 18 ☔ View full report in Codecov by Harness. |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pulls the go-openapi/spec security release (v0.22.7): the $ref expansion node cap against amplification, the option-aware PathLoaderWithOptions loader, IsValidURI no longer performing a network request, and the unsandboxed-loader security documentation. Also moves the swag modules to v0.27.3, whose loading.WithRoot now confines local reads correctly for the absolute paths spec normalizes references to (including the Windows file-URL path form).
Together these make loads' restricted loaders (SpecRestricted, JSONSpecRestricted, SetRestrictedLoaders, backed by RestrictedHTTPClient) fully effective for expanding untrusted specifications: local reads are confined to a root and remote fetches are filtered, across every $ref resolved by Document.Expanded.
loads keeps assigning its option-bound loader.Load to spec.ExpandOptions.PathLoader; the new PathLoaderWithOptions field is not needed here, since the loader chain already pre-binds loading options.
Change type
Please select: 🆕 New feature or enhancement|🔧 Bug fix'|📃 Documentation update
Short description
Fixes
Full description
Checklist