-
-
Notifications
You must be signed in to change notification settings - Fork 10.2k
Closed
Labels
feature requestCategorizes issue as related to a new feature.Categorizes issue as related to a new feature.help wanted
Description
问题描述
目前apollo只能做一些简单的格式校验,但很多时候,数据本身是带有一定的格式要求的,特别是一些复杂的json、xml配置等等。目前只是对json、xml本身进行了校验,但是没有对内容进行校验。如果内容不符合要求,只有运行时才能发现,无法确定配置是否生效了(可能内容有问题,直接被抛弃了)。如果不及时回滚,甚至会发生服务无法重启之类的问题。
对于这种配置文件,目前的方案是使用open-api,单独搭建一个服务,但这样做略麻烦,而且配置地址会比较分散。
建议
增加类似git hook的机制,可以给每个namespace增加一个hook(url 地址)。如果发现有hook,在执行保存前调用一次做一个预校验。还可以增加一个post hook,比如把数据做加密什么的。
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
feature requestCategorizes issue as related to a new feature.Categorizes issue as related to a new feature.help wanted