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

CASSANDRASC-141: Mutual TLS Authentication and Authorization to Sidecar #131

Open
wants to merge 8 commits into
base: trunk
Choose a base branch
from

Conversation

rwelgosh
Copy link
Contributor

@rwelgosh rwelgosh commented Aug 9, 2024

Patch by Raymond Welgosh; Reviewed by TBD for CASSANDRASC-141

Comment on lines 456 to 459
void testSidecarSpecificPermissions()
{

}
Copy link
Contributor

Choose a reason for hiding this comment

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

Pending/incomplete test?

Comment on lines 607 to 615
if (conf.authenticatorConfiguration() != null &&
conf.authenticatorConfiguration().authConfig() != null &&
conf.authorizerConfiguration().authConfig().equals(AuthorizerConfig.MutualTlsAuthorizer))
{
authProvider = new MutualTlsAuthorizationProvider(permissionsAccessor);
}
else if (conf.authenticatorConfiguration() != null &&
conf.authenticatorConfiguration().authConfig() != null &&
conf.authorizerConfiguration().authConfig().equals(AuthorizerConfig.AllowAllAuthorizer))
Copy link
Contributor

Choose a reason for hiding this comment

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

Checking for the wrong configuration. Should be authZ and not authN.

  1. This can be implemented as a switch statement over Enums instead after the initial checks. Also apply to other config providers.
  2. authZ provider can be served/injected by it's own provider method.

Copy link
Contributor

Choose a reason for hiding this comment

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

Note: Addressed this in my most recent commit to your branch. Just has some minor refactoring of enums and defaults.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants