Repository navigation
fix: 精准绑定网关路由密钥,避免修改已有上游密钥 - #25
Open
yuzaicn wants to merge 2 commits into
Hidden character warning
The head ref may contain hidden characters: "fix/\u7cbe\u51c6\u7ed1\u5b9a\u7f51\u5173\u8def\u7531\u5bc6\u94a5\u5e76\u907f\u514d\u4fee\u6539\u5176\u4ed6\u5bc6\u94a5"
Open
yuzaicn wants to merge 2 commits into
yuzaicn wants to merge 2 commits into
Conversation
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.
修复内容
PUT /api/gateway/groups/{group_id}/routes/{route_id}/key,请求只接受正整数source_api_key_id,只更新指定路由的密钥绑定。ensure-keys改为只补齐启用且未绑定的路由,不再重命名、改组或重置已有上游密钥的额度/有效期;网关依赖接口移除UpdateAPIKey能力。验证
go test ./...go vet ./...git diff --checkgo test -race ./backend/storage ./backend/gateway ./backend/api -count=1UOPS_TEST_MYSQL_DSN启用)。FOR UPDATE后并发测试能复现失败;恢复后通过。范围与限制
PUT /routes仍是全量替换,不能代替单路由接口。