Add operator friendly protections for LDAP group mappings in druid-basic-security extension #13467
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes #13322
Description
Helps prevent the creation of an invalid LDAP group mapping when using the
druid-basic-security
extension.LdapName
object using the pattern supplied. The LDAP server should through a naming exception if the pattern is invalid. If this is the case, return400
to the caller.Helps behavior if an invalid LDAP group mapping exists in the metastore
Release note
For tips about how to write a good release note, see Release notes.
Adds an optional new configuration to druid-basic-security extension for those using LDAP integration.
druid.auth.authorizer.MyBasicLDAPAuthorizer.groupMappingGroupPatternRegex
is a pattern that all newly created group mapping patterns must match in order to be created. If the config is not overridden, there is no pattern matching enforced.Key changed/added classes in this PR
RoleProvider
LDAPRoleProvider
CoordinatorBasicAuthorizerResourceHandler
BasicRoleBasedAuthorizer
This PR has: