-
-
Notifications
You must be signed in to change notification settings - Fork 10.2k
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
增加未启用密钥的预校验能力,方便启用密钥前观察客户端的行为是否服务预期 #5216
Comments
需求是合理的,不过实现方式可以讨论下,例如除了打印日志外,是否需要有其它方式感知预校验失败了 |
|
我觉得不用增加开关,在密钥上增加一个状态即可,例如:观察模式,每个密钥都可以单独配置是否启用观察模式,默认值都是未启用观察模式。 |
这种方式之前也简单想过,增加一个观察模式状态,在一些场景下会产生一定的歧义
这两种方式我都可以接受, @nobodyiam 要不你来做个决策呗(或者有其他思路) |
这确实是个问题,不过我在想实际场景中是否会存在既有 具体实现上,可以在 UI 上做一些扩展,例如目前是启用和禁用,可以把启用再进一步细化为
表字段中目前是
|
实际场景中,我理解是不存在“既有启用(拦截模式)又有观察模式的”,观察模式只适用于正式启用之前的观察阶段 最后再确认一下最终实现方案:
@nobodyiam 如果没有问题,我就最近找时间实现一下? |
禁用应该不用看 Mode 字段的值,其它我觉得 OK |
…polloconfig#5216) - ALTER TABLE `AccessKey` ADD COLUMN `Mode`, 0: filter,1: observer - portal: CRUD for observe status access-key - configservice: pre-check and logging via ClientAuthenticationFilter
…5216) (#5236) * feat: add observe status access-key for pre-check and logging only (#5216) - ALTER TABLE `AccessKey` ADD COLUMN `Mode`, 0: filter,1: observer - portal: CRUD for observe status access-key - configservice: pre-check and logging via ClientAuthenticationFilter * changelog: add observe status access-key for pre-check and logging only (#5216) * refactor: #5236 * refactor: #5236 test code * refactor: #5236 Update apolloconfigdb.sql Co-authored-by: Jason Song <[email protected]> * changelog & refactor: #5236 --------- Co-authored-by: Jason Song <[email protected]>
你的特性请求和某个问题有关吗?请描述
清晰简洁地描述一下你希望的解决方案
兼容性
)开关开启
+有密钥配置
+所有密钥均未开启
appId
,clientIp
,authorization
等信息BTW:如果认为这是一个合理的诉求,这边可以提一个 PR 进行实现
The text was updated successfully, but these errors were encountered: