ferruzzi commented on code in PR #65269:
URL: https://github.com/apache/airflow/pull/65269#discussion_r3125638294


##########
task-sdk/src/airflow/sdk/execution_time/callback_supervisor.py:
##########
@@ -52,6 +72,15 @@ class _BundleInfoLike(Protocol):
 log: FilteringBoundLogger = 
structlog.get_logger(logger_name="callback_supervisor")
 
 
+# The set of messages that a callback subprocess can send to the supervisor.
+# This is a minimal subset of ToSupervisor: read-only access to Connections,
+# Variables, and Assets, plus MaskSecret for the secrets masker.
+CallbackToSupervisor = Annotated[
+    GetAssetByName | GetAssetByUri | GetConnection | GetVariable | MaskSecret,

Review Comment:
   Alright, I'll revert the Asset changes.  We can always add them back if 
there's a request, as you say.  My thought was to essentially give it ReadAll 
access as a safe option, but I see where you are coming from and of the thee 
other supervisors, only the main task instance supervisor has that one anyway.



-- 
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]

Reply via email to