Repository navigation
perf(auth): avoid reparsing signing URLs - #164
Merged
Merged
Conversation
Greptile SummaryThe PR caches the normalized signing endpoint URL and copies that template for each outgoing signed request, retaining the legacy parse path for raw fragment syntax.
Confidence Score: 5/5The PR appears safe to merge with no concrete correctness, concurrency, or security regressions identified. The cached URL is copied before request-specific mutation, legacy-sensitive URL forms retain equivalent behavior, and the new tests exercise URL normalization, signing, body handling, and concurrent use. Important Files Changed
Reviews (1): Last reviewed commit: "perf: avoid reparsing signing URLs" | Re-trigger Greptile |
|
🎉 This PR is included in version 1.17.6 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Change
Cache the normalized signing endpoint URL and copy it for each request instead of serializing and reparsing it. Keep the legacy path for raw
#query targets so their fragment semantics remain unchanged.Add passthrough handler benchmarks for escaped GetObjectTagging and body-bearing UploadPart requests, including a four-worker UploadPart case.
Validation
make lint-cimake test-authmake test-proxygo test -race ./auth ./proxygo test -race ./proxy -run '^$' -bench '^BenchmarkServiceHandlePassthroughSigningUploadPartParallel$' -benchtime=100ms -count=1 -cpu=4Workload:
Serial Service.HandlePassthrough signing GetObjectTagging with long escaped key and versionIdns/opB/opWorkload:
Four-worker Service.HandlePassthrough signing UploadPart with body, long escaped key, and upload queryns/opB/opGenerated by Perfloop. Measurements and checks.
Note
Cursor Bugbot is generating a summary for commit b5c237d. Configure here.