Uh oh!
There was an error while loading. Please reload this page.
AVRO-3985: Add trusted packages support in SpecificData - #2934
Conversation
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
78142bb to
9991b78CompareUh oh!
There was an error while loading. Please reload this page.
jbonofre
commented
Jun 13, 2024
@Fokko@martin-g@KalleOlaviNiemitalo I updated the PR. Can you guys please take a look ? Thanks ! |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Co-authored-by: Martin Grigorov <martin-g@users.noreply.github.com>
Fokko
commented
Jun 24, 2024
Moving this forward, thanks @jbonofre for fixing this 🙌 and thanks @martin-g and @KalleOlaviNiemitalo for the reviews! |
jbonofre
commented
Jun 26, 2024
I'm creating the 1.11.x backport PR. |
| boolean found = false; | ||
| Package thePackage = clazz.getPackage(); | ||
| if (thePackage != null) { |
There was a problem hiding this comment.
There was a problem hiding this comment.
I can take a look on this too as I'm the original author
There was a problem hiding this comment.
Else I can work on a PR tomorrow
* AVRO-3985: Add trusted packages support in SpecificData * Apply suggestions from code review Co-authored-by: Martin Grigorov <martin-g@users.noreply.github.com> * Move to SecurityException * Remove redundant import --------- Co-authored-by: Fokko Driesprong <fokko@apache.org> Co-authored-by: Martin Grigorov <martin-g@users.noreply.github.com>
* AVRO-3985: Add trusted packages support in SpecificData * Apply suggestions from code review Co-authored-by: Martin Grigorov <martin-g@users.noreply.github.com> * Move to SecurityException * Remove redundant import --------- Co-authored-by: Fokko Driesprong <fokko@apache.org> Co-authored-by: Martin Grigorov <martin-g@users.noreply.github.com>
What is the purpose of the change
This change introduces the
org.apache.avro.SERIALIZABLE_PACKAGESsystem property to enforce the security aspect of usingjava-classin a schema.Verifying this change
This change is already covered by existing tests, using the default trusted packages. I can add an additional test specifically for non trusted packages.
Documentation
org.apache.avro.SERIALIZABLE_PACKAGESsystem property. Happy to add additional documentation if needed.