Skip to content
代码片段 群组 项目
提交 3ed2efb3 编辑于 作者: David Fernandez's avatar David Fernandez 提交者: Shinya Maeda
浏览文件

Validate regex before using `CleanupContainerRepositoryWorker`

Three guards have been added:
1. The service used by the worker will not raise an error
upon receiving an invalid regex but it will return an error
response
2. The expiration container policy will not schedule the
next run for the given container expiration policy if it is
valid. In addition, the given container expiration policy
will be disabled
3. Added a new UntrustedRegexp validator for Grape APIs.
This one has been used in `API::ProjectContainerRepositories` to prevent
enqueuing a job with invalid regex
上级 67415866
No related branches found
No related tags found
无相关合并请求
显示
202 个添加7 个删除
加载中
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册