-
Notifications
You must be signed in to change notification settings - Fork 20
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
Update to Kafka 2.13-2.7.0 #18
Conversation
if (superUsers.contains(session.principal.toString)) { | ||
logger.trace(s"User ${session.principal} is super user") | ||
return true | ||
override def authorize(requestContext: AuthorizableRequestContext, actions: ju.List[Action]): ju.List[AuthorizationResult] = { |
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.
Could you rename ju
to something more descriptive?
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.
Yeah, not sure if we even need to shorten it. I'll remove and use java.util
instead.
case class Request(input: Input) | ||
case class CachableRequest(principal: KafkaPrincipal, actions: ju.List[Action], connectionId: InetAddress) | ||
case class AzRequestContext( |
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.
Since it's only used in tests, I'd suggest moving it there.
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.
I moved it to a new file with the tests since it's used in both tests, benchmark and spec.
Codecov Report
@@ Coverage Diff @@
## master #18 +/- ##
============================================
+ Coverage 46.34% 52.72% +6.38%
- Complexity 14 20 +6
============================================
Files 1 1
Lines 41 55 +14
Branches 9 14 +5
============================================
+ Hits 19 29 +10
- Misses 7 10 +3
- Partials 15 16 +1
Continue to review full report at Codecov.
|
d03954e
to
4a0e144
Compare
Nice! 👍 |
Updating Scala to 2.13 and Kafka 2.7.0. This comes with big changes since Kafka has deprecated their old libraries and the new API is preferred.
The input to OPA will change after this change. More details are described in the proposed changelog update.
I'm suggesting this would be a major release.