-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(plugins/bk-user-restriction): add new plugin #85
feat(plugins/bk-user-restriction): add new plugin #85
Conversation
The pull request #85 titled "feat(plugins/bk-user-restriction): add new plugin" introduces a new plugin called Summary:
The pull request contains 536 additions across 5 files and has 3 commits. |
…le the dict not sorted
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
assert.is_true(core.string.find(ctx.var.bk_apigw_error.error.message, 'bk_username="unknown_user"') ~= nil) | ||
end) | ||
|
||
it("should allow user not in whitelist", function() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这里应该是 should allow user in whitelist
}, | ||
}, | ||
oneOf = { | ||
{ required = { "whitelist" } }, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
是不是应该在什么地方写插件的文档使用说明,比如我看到这就会好奇两个字段如果都配置会怎么样,理论上字段有互斥。(看了代码的写法,黑名单的优先级是更好,即使 user 命中白名单,仍然可能被黑名单拦下来)
Description
Checklist