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

fix(backup): validate backup policy name #2029

Merged
merged 5 commits into from
May 27, 2024

Conversation

acelyc111
Copy link
Member

@acelyc111 acelyc111 commented May 27, 2024

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.

@acelyc111 acelyc111 changed the title fix: validate backup policy name fix(backup): validate backup policy name May 27, 2024
@acelyc111 acelyc111 marked this pull request as ready for review May 27, 2024 07:43
@acelyc111 acelyc111 merged commit bcc5f65 into apache:master May 27, 2024
46 of 49 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants