apache / incubator-pegasus

Apache Pegasus - A horizontally scalable, strongly consistent and high-performance key-value store
https://pegasus.apache.org/
Apache License 2.0
1.96k stars 310 forks source link

fix(backup): validate backup policy name #2029

Closed acelyc111 closed 1 month ago

acelyc111 commented 1 month ago

Because the backup policy name will be used as a metric name and label, it should not contain any invalid character (e.g. -), otherwise, it lead crash.

This patch adds a validator to ensure there are only allowed characters in backup policy name.