Skip to content

Conversation

@sarankk
Copy link
Contributor

@sarankk sarankk commented Aug 15, 2025

No description provided.

@sarankk sarankk force-pushed the fix_jira branch 2 times, most recently from 8135f4b to e535fba Compare August 15, 2025 20:57
Copy link
Contributor

@frankgh frankgh left a comment

Choose a reason for hiding this comment

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

Looks good. Thanks for the fix. I have small comments

sarankk and others added 8 commits August 28, 2025 14:11
…Module.java

Co-authored-by: Francisco Guerrero <frank.guerrero@gmail.com>
…cation/MutualTlsAuthenticationHandlerFactory.java

Co-authored-by: Francisco Guerrero <frank.guerrero@gmail.com>
…cation/JwtAuthenticationHandlerFactory.java

Co-authored-by: Francisco Guerrero <frank.guerrero@gmail.com>
…cation/AuthenticationHandlerFactory.java

Co-authored-by: Francisco Guerrero <frank.guerrero@gmail.com>
* Invalidate a key.
* @param k key to invalidate
*/
public void invalidate(K k)
Copy link
Contributor

Choose a reason for hiding this comment

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

Where is this method being used?

Comment on lines +73 to +79
boolean isSidecarSchemaEnabled = sidecarConfiguration.serviceConfiguration()
.schemaKeyspaceConfiguration()
.isEnabled();
if (!isSidecarSchemaEnabled)
{
throw new ConfigurationException("JwtAuthenticationHandlerFactory requires Sidecar schema to be enabled for role processing");
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Why not having this implementation in the default implementation of the interface?

Copy link
Contributor

Choose a reason for hiding this comment

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

I don't think it makes sense to have this in the interface, because you don't know if the implementation requires sidecar schema. It only makes sense to have this check if you require sidecar schema for the implementation

.isEnabled();
if (!isSidecarSchemaEnabled)
{
throw new ConfigurationException("MutualTlsAuthenticationHandlerFactory requires Sidecar schema to be enabled for role processing");
Copy link
Contributor

Choose a reason for hiding this comment

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

What about mentioning explicitly the flag that needs to be enabled on the config?

{
if (!sidecarConfiguration.serviceConfiguration().schemaKeyspaceConfiguration().isEnabled())
{
throw new ConfigurationException(config.className() + " requires Sidecar schema to be enabled for role permissions used by Sidecar");
Copy link
Contributor

Choose a reason for hiding this comment

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

What about mentioning explicitly the flag that needs to be enabled on the config?

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.

3 participants