Bug
LogPipelineService.loadPipelines() fails with NotAuthenticatedException: A user should be logged in to read record of Log Pipeline. on every cache refresh (60s). This makes LogPipeline non-functional for ALL ingested data.
Root cause
PublicPermission.checkIfUserIsLoggedIn() checks userId and userType but NOT props.isRoot. The loadPipelines() call passes isRoot: true (because it's a system/internal operation during ingest), but this flag is ignored.
Where
Common/Server/Types/Database/Permissions/PublicPermission.ts line 32:
if (!this.isPublicPermissionAllowed(modelType, type) && !props.userId) {
Missing: props.isRoot and props.isMasterAdmin check.
Reproduction
- Deploy OneUptime v10.8.2 (Docker Compose)
- Create a LogPipeline + LogPipelineProcessor via UI or DB
- Send syslog data to
/syslog/v1/logs
- Check app logs:
docker logs oneuptime-app-1 | grep NotAuthenticated
- Every 60s:
NotAuthenticatedException: A user should be logged in to read record of Log Pipeline.
Fix
if (props.isRoot || props.isMasterAdmin) {
return;
}
if (!this.isPublicPermissionAllowed(modelType, type) && !props.userId) {
Impact
LogPipeline completely non-functional. All pipelines silently fail to load. No error surfaced to the user — just empty pipeline cache forever.
Environment
OneUptime v10.8.2 Community Edition, Docker Compose, syslog ingestion via /syslog/v1/logs.
Bug
LogPipelineService.loadPipelines()fails withNotAuthenticatedException: A user should be logged in to read record of Log Pipeline.on every cache refresh (60s). This makes LogPipeline non-functional for ALL ingested data.Root cause
PublicPermission.checkIfUserIsLoggedIn()checksuserIdanduserTypebut NOTprops.isRoot. TheloadPipelines()call passesisRoot: true(because it's a system/internal operation during ingest), but this flag is ignored.Where
Common/Server/Types/Database/Permissions/PublicPermission.tsline 32:Missing:
props.isRootandprops.isMasterAdmincheck.Reproduction
/syslog/v1/logsdocker logs oneuptime-app-1 | grep NotAuthenticatedNotAuthenticatedException: A user should be logged in to read record of Log Pipeline.Fix
Impact
LogPipeline completely non-functional. All pipelines silently fail to load. No error surfaced to the user — just empty pipeline cache forever.
Environment
OneUptime v10.8.2 Community Edition, Docker Compose, syslog ingestion via
/syslog/v1/logs.