Skip to content
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

能否增加配置内容业务规则校验 #4034

Closed
hezhaoye opened this issue Oct 14, 2021 · 4 comments
Closed

能否增加配置内容业务规则校验 #4034

hezhaoye opened this issue Oct 14, 2021 · 4 comments
Labels
area/portal apollo-portal

Comments

@hezhaoye
Copy link

目前apollo只能做一些简单的语法格式校验,但很多时候,数据本身是带有一定的格式要求的,特别是一些复杂的json、xml配置等等。目前只是对json、xml本身进行了校验,但是没有对内容进行校验。如果内容不符合要求,只有运行时才能发现,无法确定配置是否生效了(可能内容有问题,直接被抛弃了)。如果不及时回滚,甚至会发生服务无法重启之类的问题。

请教下,这种想对内容进行校验,有什么好的方式或者思路吗

@nobodyiam
Copy link
Member

如果对内容有校验需求的可以在第三方应用上配置,然后通过 openapi 写入 apollo。

@hezhaoye
Copy link
Author

那只通过openAPI调用的话,那portal端界面修改后,就绕过了检验了,这个感觉也不太可行。

@nobodyiam
Copy link
Member

we may continue discussion in #1517

@Anilople Anilople added the area/portal apollo-portal label Oct 16, 2021
@Anilople
Copy link
Contributor

Duplicate of #1517

@Anilople Anilople marked this as a duplicate of #1517 Oct 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/portal apollo-portal
Projects
None yet
Development

No branches or pull requests

3 participants