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

Bug fix: Handle missing shade config overwrites for Kafka #13437

Merged
merged 1 commit into from
Jun 19, 2024

Conversation

KKcorps
Copy link
Contributor

@KKcorps KKcorps commented Jun 19, 2024

After multiple shading changes, we had started appending org.apache.pinot.shaded to the Kafka classpaths that were mentioned in the table config so that we don't run into ClassNotFound errors.

This was done in #13087 amd #13056

However, sometimes these classpaths can also be mentioned in the jaas configs in which case they are not updated and hence we still get ClassNotFound error

This PR adds a way to rename these classapth and also make them part of the table config since ovewriting jaas config file is not correct from security perspective.

if (updated) {
entry.setValue(String.join(" ", valueParts));
}
}

// Read the file specified by the -Djava.security.auth.login.config VM argument
String loginConfigFile = System.getProperty("java.security.auth.login.config");
Copy link
Collaborator

Choose a reason for hiding this comment

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

The config file is not in a well-known format like json ?

Copy link
Contributor

Choose a reason for hiding this comment

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

@xiangfu0 xiangfu0 merged commit ddce06f into apache:master Jun 19, 2024
19 of 20 checks passed
suyashpatel98 pushed a commit to suyashpatel98/pinot that referenced this pull request Jul 6, 2024
yashmayya pushed a commit to yashmayya/pinot that referenced this pull request Jul 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants