icode opened a new issue, #12006:
URL: https://github.com/apache/ignite/issues/12006

   
   
   ```kotlin
   // this service deployed by all permission subject server node
   class DeploySyncServiceImpl : DeploySyncService {
       override fun execute() {
   // listen client node joined
           ignite.events().localListen(object : IgnitePredicate<DiscoveryEvent> 
{
               override fun apply(e: DiscoveryEvent): Boolean {
   // this not local node security context, and
   
ignite.context().security().withContext(ignite.cluster().localNode().id()).use {
                       // must use `withContext` switch to local node security 
context
                   }
                   return true
               }
           }, EventType.EVT_NODE_JOINED)
   }
   
   }
   ```


-- 
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: notifications-unsubscr...@ignite.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to