-
Notifications
You must be signed in to change notification settings - Fork 692
Document update - Added serialization to Security section #7923
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
Merged
Merged
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
6b46e2b
Document update - Added serialization to Security section
kaajaln2 d450b54
Document update - Added serialization to Security section
kaajaln2 9e810a7
Merge branch 'develop' of https://github.com/kaajaln2/Apache-geode in…
kaajaln2 33ce3a6
Document update: Removed java version in serialization section
kaajaln2 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,54 @@ | ||
| --- | ||
| title: Serialization | ||
| --- | ||
|
|
||
| <!-- | ||
| Licensed to the Apache Software Foundation (ASF) under one or more | ||
| contributor license agreements. See the NOTICE file distributed with | ||
| this work for additional information regarding copyright ownership. | ||
| The ASF licenses this file to You under the Apache License, Version 2.0 | ||
| (the "License"); you may not use this file except in compliance with | ||
| the License. You may obtain a copy of the License at | ||
|
|
||
| http://www.apache.org/licenses/LICENSE-2.0 | ||
|
|
||
| Unless required by applicable law or agreed to in writing, software | ||
| distributed under the License is distributed on an "AS IS" BASIS, | ||
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| See the License for the specific language governing permissions and | ||
| limitations under the License. | ||
| --> | ||
|
|
||
| Apache Geode offers mechanisms to control and filter object serialization, particularly | ||
| in the context of security and performance. This is primarily achieved through: | ||
|
|
||
|
|
||
| ## Global Serialization Filter (Java) | ||
|
|
||
| For deployments using Java, a global serialization filter can be enabled to restrict the types of objects that can be serialized and | ||
| deserialized within the Geode process. This helps mitigate risks associated with deserialization of untrusted data, a common vulnerability. | ||
|
|
||
| - To enable this, the Java system property `geode.enableGlobalSerialFilter` is set to true when starting Geode locators and servers. | ||
|
|
||
| - Additionally, the `serializable-object-filter` configuration option, used in conjunction with `validate-serializable-objects,` is used to | ||
| specify a whitelist of user-defined classes that are allowed to be serialized/deserialized, in addition to standard JDK and Geode classes. | ||
| This allows for fine-grained control over which custom objects are permitted in the system. | ||
|
|
||
| ## PDX Serialization | ||
|
|
||
| Apache Geode's Portable Data eXchange (PDX) serialization offers a more robust and flexible approach to data serialization, providing features | ||
| like schema evolution and language independence. While not a "filter" in the same sense as the global serialization filter, PDX provides control | ||
| over how objects are serialized and deserialized. | ||
|
|
||
| - **PdxSerializer:** You can implement a custom `PdxSerializer` to define how specific domain objects are serialized and deserialized, allowing | ||
| for selective handling of fields or transformations during the process. | ||
|
|
||
| - **Reflection-Based Auto-Serialization:** PDX also supports automatic reflection-based serialization, where Geode can serialize objects without | ||
| requiring explicit implementation of `PdxSerializable` in your domain classes. This can be configured to include or exclude specific types based | ||
| on criteria like package names, providing a form of type filtering. | ||
|
|
||
|
|
||
|
|
||
|
|
||
| In conclusion, Apache Geode provides serialization filtering capabilities through a global filter for security hardening in Java 8 environments and | ||
| through the flexible configurations of PDX serialization for fine-grained control over data handling and type inclusion/exclusion. | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
AFAIK all of Geode is in Java, so
(Java)is also not necessary :)