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

Made AbstractFilter Denylist settings configurable #925

Conversation

rupert-griffin
Copy link
Collaborator

@rupert-griffin rupert-griffin commented Sep 12, 2024

Can now configure the allowed characters in a denylist entry.
Use Regex format. e.g. ALLOWED_NAME_CHARS = "a-zA-Z0-9_"

Allowed characters will get substituted into the patterns for view name formatting and character ordering. These regexes can also be configured differently, either using %s to substitute the allowed character string, or manually typing out the allowed chars. e.g.:
VIEWNAME_FORMAT = "^[%s]+(\\.[%s]+)?\\*?$"
VIEWNAME_FORMAT = "^[a-zA-Z0-9_]+(\\.[a-zA-Z0-9_]+)?\\*?$"

@jpdahlke jpdahlke added this to the v8.12.0 milestone Sep 12, 2024
@jpdahlke jpdahlke added the enhancement An enhancement to an existing feature label Sep 13, 2024
Copy link
Collaborator

@fbruton fbruton left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add a unit-test that exercises the regular expressions.

@fbruton fbruton self-requested a review September 13, 2024 16:23
fbruton
fbruton previously approved these changes Sep 13, 2024
@rupert-griffin rupert-griffin force-pushed the em-2976_Make_denylist_regexes_configurable branch from 4fea683 to 7e71ae4 Compare September 16, 2024 16:10
@jpdahlke jpdahlke merged commit 11b64f6 into NationalSecurityAgency:main Sep 17, 2024
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement An enhancement to an existing feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants