pan3793 commented on code in PR #49880:
URL: https://github.com/apache/spark/pull/49880#discussion_r1961229623
##########
python/pyspark/sql/connect/session.py:
##########
@@ -1060,6 +1068,9 @@ def _start_connect_server(master: str, opts: Dict[str,
Any]) -> None:
overwrite_conf["spark.connect.grpc.binding.port"] = "0"
origin_remote = os.environ.get("SPARK_REMOTE", None)
+ local_auth_token = str(uuid.uuid4())
+ SparkConnectClient._local_auth_token = local_auth_token
+ os.environ["SPARK_CONNECT_LOCAL_AUTH_TOKEN"] = local_auth_token
Review Comment:
hmm... should it be enabled unconditionally?
currently, there are many spark services have no authN by default, this
looks like an exception
--
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]