zhangstar333 opened a new pull request, #71291:
URL: https://github.com/apache/doris/pull/71291

   ### Background
   
   Java UDFs execute inside the BE JVM alongside trusted JNI and scanner 
components. Operators need to limit user-code resource access without imposing 
the same permissions on independent trusted components.
   
   ### What problem does this PR solve?
   
   Add BE-local Java UDF permission settings backed by JDK 17 SecurityManager 
checks. Preserve unrestricted resource permissions by default and let operators 
switch to explicit grants for files, networking, reflection and other supported 
capabilities. Keep user business dependencies in the function jar and report 
dependency and initialization failures with their original causes.
   
   ### Notes for Reviewers
   
   The common-pool factory only privileges worker construction; it does not 
wrap user tasks. The BE-wide policy is installed even when AllPermission is 
selected. Runtime permission enforcement, asynchronous contexts, existing UDF 
tests and real scanner compatibility require validation before merging. 
Fine-grained network destinations, per-function policies and legacy draft 
configuration formats are not supported.
   
   ### Release note
   
   Operators can restrict Java UDF resource access using 
conf/java_udf_security.properties. Permissions remain unrestricted by default; 
explicit grants take effect after BE restart.


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