feat(security): whitelist login control + rate limiting + login lockout#706
Closed
kill-money wants to merge 1 commit intoopenimsdk:mainfrom
Closed
feat(security): whitelist login control + rate limiting + login lockout#706kill-money wants to merge 1 commit intoopenimsdk:mainfrom
kill-money wants to merge 1 commit intoopenimsdk:mainfrom
Conversation
- 新增 whitelist_users MongoDB 集合及 CRUD 接口 - Login RPC 中接入白名单校验(whitelistLoginEnabled 配置开关) - 新增 IP 限速中间件(60次/分)与登录失败锁定(5次锁5分钟) - 管理端新增 /whitelist CRUD HTTP 路由(绕过 gRPC 直连 MongoDB) - 修复 Dockerfile gomake 版本降级导致 mage build 失败的问题 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
💕 Thank you for your contribution and please kindly read and sign our CLA. CLA Docs I have read the CLA Document and I hereby sign the CLA You can retrigger this bot by commenting recheck in this Pull Request. Posted by the CLA Assistant Lite 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.
Summary
whitelist_usersMongoDB collection with full CRUD interfacewhitelistLoginEnabled=1config is set/whitelist/{add,del,update,search}for managing whitelist entries (direct MongoDB, no gRPC changes)go get gomake@v0.0.14withgo mod downloadto use the version already required by magefile.goTest plan
whitelistLoginEnabled=1in config, verify non-whitelisted users are blocked with error code 20012/whitelist/add,/whitelist/search,/whitelist/update,/whitelist/deladmin endpointsmage startsucceeds without gomake version errors🤖 Generated with Claude Code