mirror of
https://github.com/kestra-io/kestra.git
synced 2025-12-19 18:05:41 -05:00
feat(executions): add support to ACL check inside the run context
Part-of: https://github.com/kestra-io/kestra-ee/issues/4228
This commit is contained in:
@@ -137,6 +137,9 @@ public class ExecutionController {
|
||||
@Inject
|
||||
private FlowService flowService;
|
||||
|
||||
@Inject
|
||||
private NamespaceService namespaceService;
|
||||
|
||||
@Inject
|
||||
protected ExecutionRepositoryInterface executionRepository;
|
||||
|
||||
@@ -871,7 +874,7 @@ public class ExecutionController {
|
||||
if (Namespace.NAMESPACE_FILE_SCHEME.equals(path.getScheme())) {
|
||||
// if there is an authority, it means the namespace file is for another namespace, so we check it
|
||||
if (path.getAuthority() != null) {
|
||||
flowService.checkAllowedNamespace(execution.getTenantId(), path.getAuthority(), execution.getTenantId(), execution.getNamespace());
|
||||
namespaceService.checkAllowedNamespace(execution.getTenantId(), path.getAuthority(), execution.getTenantId(), execution.getNamespace());
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user