Skip to content

GitHub Issue #1391: SignalData file watcher import task to check container permission for resolved path - #1061

Merged
cnathe merged 3 commits into
developfrom
fb_signalData1391
Aug 27, 2026
Merged

GitHub Issue #1391: SignalData file watcher import task to check container permission for resolved path#1061
cnathe merged 3 commits into
developfrom
fb_signalData1391

Conversation

@cnathe

@cnathe cnathe commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

Rationale

https://github.com/LabKey/internal-issues/issues/1391

SignalDataImportTask lets a metadata file's DataFile column name an arbitrary WebDAV path or absolute server path, and previously copied any such file into the trigger's container as long as it fell under some container's pipeline root — with no permission check. This PR adds a ReadPermission gate: the WebDAV branch now calls resource.canRead(job.getUser(), true), and the pipeline-root containment helper (isUnderAnyPipelineRoot → isReadableUnderAnyPipelineRoot) additionally requires root.hasPermission(container, user, ReadPermission.class). It also unifies the two resolution branches so WebDAV-resolved paths go through the containment check too.

Changes

  • SignalDataImportTask update to isUnderAnyPipelineRoot to check for job user ReadPermission in container

…Root to check for job user ReadPermission in container
@cnathe cnathe self-assigned this Aug 27, 2026
@cnathe
cnathe requested a review from labkey-klum August 27, 2026 15:23
@cnathe
cnathe merged commit f50c672 into develop Aug 27, 2026
6 checks passed
@cnathe
cnathe deleted the fb_signalData1391 branch August 27, 2026 20:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants