[
https://issues.apache.org/jira/browse/IGNITE-29319?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Ignite TC Bot updated IGNITE-29319:
-----------------------------------
Release Note: Security: Fixed service lifecycle methods to run using the
local node's security context.
"Security: Fixed service lifecycle methods to run using the local node's
security context."
The Release Note field has been filled with the wording above. Please review it
and edit it if needed.
> 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: 1h
> 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)