-
Notifications
You must be signed in to change notification settings - Fork 1k
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
feat: perform SchemaRegistry permissions on C*AS sink subjects #8039
Conversation
keyFormat.supportsFeature(SerdeFeature.SCHEMA_INFERENCE) | ||
? SerdeFeatures.of(SerdeFeature.SCHEMA_INFERENCE) | ||
: SerdeFeatures.of(), |
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.
keyFormat
has a supportedFeatures()
method that returns a set of features. I could call SerdeFeatures.from(keyFormat.supportedFeatures())
here, but SerdeFeatures.from
throws an exception because of incompatible features returned. Because I just need SCHEMA_INFERENCE, then I just added this condition here.
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.
IIUC, the only way to hit the incompatible features exception is if UNWRAP_SINGLES and WRAP_SINGLES are both included. Why is that happening?
a3aed56
to
665422d
Compare
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.
lgtm, just one question
keyFormat.supportsFeature(SerdeFeature.SCHEMA_INFERENCE) | ||
? SerdeFeatures.of(SerdeFeature.SCHEMA_INFERENCE) | ||
: SerdeFeatures.of(), |
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.
IIUC, the only way to hit the incompatible features exception is if UNWRAP_SINGLES and WRAP_SINGLES are both included. Why is that happening?
665422d
to
2e2ba6a
Compare
2e2ba6a
to
8630967
Compare
Description
Added SchemaRegistry permission checks to the sink subjects used by C*AS commands.
Testing done
Describe the testing strategy. Unit and integration tests are expected for any behavior changes.
Reviewer checklist