[ 
https://issues.apache.org/jira/browse/IGNITE-29319?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18147976#comment-18147976
 ] 

Ignite TC Bot commented on IGNITE-29319:
----------------------------------------

{panel:title=Branch: [pull/13858/head] Base: [master] : Possible Blockers 
(1)|borderStyle=dashed|borderColor=#ccc|titleBGColor=#F7D6C1}
{color:#d04437}Platform .NET (Core Linux){color} [[tests 0 TIMEOUT , 
TC_SERVICE_MESSAGE |https://ci2.ignite.apache.org/viewLog.html?buildId=9514271]]

{panel}
{panel:title=Branch: [pull/13858/head] Base: [master] : New Tests 
(5)|borderStyle=dashed|borderColor=#ccc|titleBGColor=#D6F7C1}
{color:#00008b}Security{color} [[tests 
5|https://ci2.ignite.apache.org/viewLog.html?buildId=9513824]]
* {color:#013220}SecurityTestSuite: 
ServiceLifecycleSecurityContextTest.testServiceMethodRunsAsInvoker - 
PASSED{color}
* {color:#013220}SecurityTestSuite: service.ServiceLifecycleSecurityContextTest 
- PASSED{color}
* {color:#013220}SecurityTestSuite: 
ServiceLifecycleSecurityContextTest.testDynamicServiceRedeployedAfterDeployerLeft
 - PASSED{color}
* {color:#013220}SecurityTestSuite: 
ServiceLifecycleSecurityContextTest.testServiceStaticallyConfiguredOnClient - 
PASSED{color}
* {color:#013220}SecurityTestSuite: 
ServiceLifecycleSecurityContextTest.testStaticallyConfiguredService - 
PASSED{color}

{panel}
[TeamCity *--> Run :: All* 
Results|https://ci2.ignite.apache.org/viewLog.html?buildId=9513892&buildTypeId=IgniteTests24Java8_RunAll]
{color:#ffffff}tcbot-analysis-comment chainBuildId=9513892 
rerunBuildIds=none{color}

> Make service init/execute/close method code to be executed on behalf of local 
> node
> ----------------------------------------------------------------------------------
>
>                 Key: IGNITE-29319
>                 URL: https://issues.apache.org/jira/browse/IGNITE-29319
>             Project: Ignite
>          Issue Type: Bug
>            Reporter: Mikhail Petrov
>            Assignee: Mikhail Petrov
>            Priority: Major
>             Fix For: 2.20
>
>          Time Spent: 50m
>  Remaining Estimate: 0h
>
> Service lifecycle methods run under the security context of whoever triggered 
> the deployment event.
> Problem
> Since IGNITE-28681, the services deployment worker restores the operation 
> context of the event that queued the deployment task. As a result, 
> Service.init(), execute() and cancel() run under the security context of 
> whoever caused that cluster event.
> Example
> - Server node has a service in its static configuration. The service's init() 
> creates a cache. The server node has CACHE_CREATE; the cluster starts 
> inactive.
> - An administrator whose only permission is ADMIN_CLUSTER_STATE activates the 
> cluster
> - During activation the service is deployed, and its init() runs under the 
> administrator's security context. Cache creation fails.
> The same mechanism applies to other triggers:
> - Node join or failover: a service is redeployed under the security context 
> of the node that joined or left.
> - Deactivation and cache destruction: cancel() runs as whoever deactivated 
> the cluster or destroyed the cache.
> - execute(): keeps the triggering subject's context for the whole lifetime of 
> the service.



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to