holdenk commented on code in PR #58620:
URL: https://github.com/apache/spark/pull/58620#discussion_r4042475647


##########
core/src/main/scala/org/apache/spark/internal/config/Deploy.scala:
##########
@@ -51,6 +51,20 @@ private[spark] object Deploy {
     .checkValue(_ > 0, "spark.deploy.recoveryTimeout must be positive.")
     .createOptional
 
+  val RECOVERY_SERIALIZATION_FILTER =
+    ConfigBuilder("spark.deploy.recoverySerializationFilter")
+      .doc("JEP-290 serialization filter pattern applied when the master 
deserializes " +
+        "recovery state written by the built-in JavaSerializer (currently 
enforced for " +
+        "the ZOOKEEPER recovery mode). The default allows only JDK, Scala and 
Spark " +
+        "classes, which covers everything the master persists 
(ApplicationInfo, " +
+        "DriverInfo, WorkerInfo and their fields); znodes containing anything 
else are " +
+        "treated as corrupt and dropped during recovery. Set to '*' to disable 
filtering. " +

Review Comment:
   Good point, ZK ACLs are the "real" security here but the filtering is just 
an extra layer to avoid some accidental mishaps.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to