-
Notifications
You must be signed in to change notification settings - Fork 3.8k
CEP-55 - Generation of role / user names #4379
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
base: trunk
Are you sure you want to change the base?
Conversation
392071d
to
b63ff3b
Compare
# Guardrail to warn or fail when setting / altering a password. | ||
# Supported character sets are (both upper and lower-case): English, Cyrillic and modern Cyrillic, Czech, German, Polish. | ||
# Password is invalid if all characters are from non-supported character set. If a password is otherwise valid, | ||
# but it contains characters from unsupported language, these characters contribute only to password length rule. | ||
# All digits and all following special characters are supported too: !"#$%&()*+,-./:;<=>?@[\]^_`{|}~ | ||
#password_validator: | ||
#password_policy: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it is better if we rename this now as this has not appeared in any release yet and it would be just too late for that otherwise. I think this better reflects what this does as it holds both generator as well as validator under one "policy". Same case for role name.
@@ -2290,6 +2290,92 @@ drop_compact_storage_enabled: false | |||
# maximum_replication_factor_warn_threshold: -1 | |||
# maximum_replication_factor_fail_threshold: -1 | |||
|
|||
#role_name_policy: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
both policies were missing, in cassandra_latest.yaml.
@@ -0,0 +1,4 @@ | |||
= Role name validation and generation |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will be finished upon merge.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hello.
I’ve spent some time going through the code in this patch. Since I’m new to the community and not yet deeply familiar with the C* codebase, I focused mainly on spotting things like code duplications, redundant conditions, typos, and log message corrections. Hoping that this will free more experienced and more familiar with the Cassandra codebase reviewers from such things.
I also spotted this (1) misuse of ValueValidator.class
for the logger of the ValueGenerator
class. Since this patch already touches that class, it might be a good place to fix it as well.
src/java/org/apache/cassandra/db/guardrails/CassandraPasswordConfiguration.java
Show resolved
Hide resolved
dd7410e
to
075793e
Compare
075793e
to
dcbf8d7
Compare
Implementation of CEP-55
This patch is rather easy to go through. A lot of files were changed just because of renaming.
For reviewers, I would just focus on implementation and not bothering with tests, docs and all sauce around that. Tests are very easy to follow as well.