tenant cleanup #2681
No reviewers
Labels
No labels
1week
2weeks
Failed compliance check
IP cameras
NATS
Possible security concern
Review effort 1/5
Review effort 2/5
Review effort 3/5
Review effort 4/5
Review effort 5/5
UI
aardvark
accessibility
amd64
api
arm64
auth
back-end
bgp
blog
bug
build
checkers
ci-cd
cleanup
cnpg
codex
core
dependencies
device-management
documentation
duplicate
dusk
ebpf
enhancement
eta 1d
eta 1hr
eta 3d
eta 3hr
feature
fieldsurvey
github_actions
go
good first issue
help wanted
invalid
javascript
k8s
log-collector
mapper
mtr
needs-triage
netflow
network-sweep
observability
oracle
otel
plug-in
proton
python
question
reddit
redhat
research
rperf
rperf-checker
rust
sdk
security
serviceradar-agent
serviceradar-agent-gateway
serviceradar-web
serviceradar-web-ng
siem
snmp
sysmon
topology
ubiquiti
wasm
wontfix
zen-engine
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
carverauto/serviceradar!2681
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "refs/pull/2681/head"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from GitHub pull request.
Original GitHub pull request: #2320
Original author: @mfreeman451
Original URL: https://github.com/carverauto/serviceradar/pull/2320
Original created: 2026-01-15T20:46:48Z
Original updated: 2026-01-17T07:00:18Z
Original head: carverauto/serviceradar:update/tenant-cleanup-separation-work
Original base: staging
Original merged: 2026-01-17T07:00:16Z by @mfreeman451
User description
IMPORTANT: Please sign the Developer Certificate of Origin
Thank you for your contribution to ServiceRadar. Please note, when contributing, the developer must include
a DCO sign-off statement indicating the DCO acceptance in one commit message. Here
is an example DCO Signed-off-by line in a commit message:
Describe your changes
Issue ticket number and link
Code checklist before requesting a review
PR Type
Enhancement
Description
Add
TENANT_AWARE_MODEfeature flag to support tenant-unaware architectureCreate
TenantModemodule with helpers for conditional tenant context handlingAdd
SystemActor.system/1for tenant-unaware mode operationsUpdate controllers and auth to use mode-conditional tenant options
Implement cross-tenant search with mode-aware branching logic
Diagram Walkthrough
File Walkthrough
1 files
Add TENANT_AWARE_MODE environment variable configuration11 files
Add system/1 function for tenant-unaware mode actorsCreate TenantMode module with conditional tenant helpersUpdate all_tenants to check tenant mode configurationUse TenantMode for conditional actor and tenant contextUpdate to use TenantMode helpers for tenant contextUpdate to use TenantMode helpers and mode-aware searchUpdate to use TenantMode helpers and conditional actorsUse TenantMode for JWT token generation optionsUpdate API token validation with mode-aware cross-tenant searchUse TenantMode for conditional tenant loading actorUse TenantMode for JWT verification and tenant options2 files
Add comprehensive migration guide for TenantMode adoptionUpdate task checklist with completed implementation itemsImported GitHub PR comment.
Original author: @qodo-code-review[bot]
Original URL: https://github.com/carverauto/serviceradar/pull/2320#issuecomment-3756796121
Original created: 2026-01-15T20:47:44Z
PR Compliance Guide 🔍
Below is a summary of compliance checks for this PR:
Authorization bypass
Description:
TenantMode.system_actor/2can returnSystemActor.system/1(notenant_id,role: :system)whenever
tenant_idis nil or tenant-aware mode is off, which may unintentionally bypassauthorization policies that rely on an actor
tenant_idmatch or assume:systemimpliestrusted platform-only behavior; review all call sites passing
nil(e.g., auth/scope/tenantloading) to ensure
:systemwithout tenant scoping cannot be used to access or mutatecross-tenant data.
tenant_mode.ex [104-134]
Referred Code
🎫 No ticket provided
Codebase context is not defined
Follow the guide to enable codebase context checks.
Generic: Comprehensive Audit Trails
Objective: To create a detailed and reliable record of critical system actions for security analysis
and compliance.
Status: Passed
Generic: Meaningful Naming and Self-Documenting Code
Objective: Ensure all identifiers clearly express their purpose and intent, making code
self-documenting
Status: Passed
Generic: Secure Logging Practices
Objective: To ensure logs are useful for debugging and auditing without exposing sensitive
information like PII, PHI, or cardholder data.
Status: Passed
Generic: Robust Error Handling and Edge Case Management
Objective: Ensure comprehensive error handling that provides meaningful context and graceful
degradation
Status:
Swallowed auth errors: The new
find_api_token/2logic collapses all read errors into{:error, :not_found}withoutlogging/context, which may hinder debugging and detection of real backend failures.
Referred Code
Generic: Secure Error Handling
Objective: To prevent the leakage of sensitive system information through error messages while
providing sufficient detail for internal debugging.
Status:
Error passthrough risk: Several new code paths continue to return
{:error, error}directly from Ash calls, whichmay surface internal details to clients depending on the controller/endpoint error
rendering behavior.
Referred Code
Generic: Security-First Input Validation and Data Handling
Objective: Ensure all data inputs are validated, sanitized, and handled securely to prevent
vulnerabilities
Status:
Unvalidated schema input: In tenant-unaware mode,
DB_SCHEMAis accepted from the environment and stored as:tenant_schemawithout validation/allowlisting, so correctness and injection resistancedepend on external controls not visible in the diff.
Referred Code
Compliance status legend
🟢 - Fully Compliant🟡 - Partial Compliant
🔴 - Not Compliant
⚪ - Requires Further Human Verification
🏷️ - Compliance label
Imported GitHub PR comment.
Original author: @qodo-code-review[bot]
Original URL: https://github.com/carverauto/serviceradar/pull/2320#issuecomment-3756800775
Original created: 2026-01-15T20:49:10Z
PR Code Suggestions ✨
Explore these optional code suggestions:
✅
Use platform actor for correct permissionsSuggestion Impact:
The commit removed the TenantMode alias and replaced TenantMode.system_actor(:scope, nil) with SystemActor.platform(:scope) for scope-building and tenant fetching, aligning actor permissions with cross-tenant/global resource access.code diff:
To prevent authorization failures when accessing global resources, use
SystemActor.platform(:scope)instead ofTenantMode.system_actor(:scope, nil)toensure the actor has the required
:super_adminrole.web-ng/lib/serviceradar_web_ng/accounts/scope.ex [44-47]
[To ensure code accuracy, apply this suggestion manually]Suggestion importance[1-10]: 9
__
Why: The suggestion correctly identifies a potential authorization bug where a
:systemrole actor is used for an operation that requires:super_adminprivileges to access global resources likeTenant.✅
Add actor to OnboardingPackages.listSuggestion Impact:
The commit changed the `OnboardingPackages.list/2` invocation in the suggested location to pass explicit tenant context (`tenant: schema`) instead of using `TenantMode.tenant_opts(schema)`. While it did not add the proposed `actor` option, it did address the underlying tenant-context issue by altering the options passed to `list/2`.code diff:
Add the
actoroption to theOnboardingPackages.list/2call to prevent queryfailures in tenant-specific contexts.
web-ng/lib/serviceradar_web_ng_web/controllers/api/edge_controller.ex [56-61]
[Suggestion processed]Suggestion importance[1-10]: 9
__
Why: The suggestion correctly identifies a missing
actorin an Ash query, which would cause requests to fail. This is a critical bug fix.✅
Include implicit schema in all_tenantsSuggestion Impact:
The commit modified the same all_tenants function and its surrounding documentation, but it did the opposite of the suggestion: it removed tenant-aware logic and hard-coded all_tenants to always return [] with comments asserting enumeration is unnecessary. No implicit schema lookup was added, so the suggested migration fix was not implemented.code diff:
Modify
all_tenantsto return the configured schema in tenant-unaware mode,ensuring that database migrations can run against the current tenant's schema.
elixir/serviceradar_core/lib/serviceradar/repo.ex [50-58]
[Suggestion processed]Suggestion importance[1-10]: 8
__
Why: The suggestion correctly points out that migrations would not run in tenant-unaware mode because
all_tenantsreturns an empty list, which is a significant bug.✅
The PR introduces an incomplete abstractionSuggestion Impact:
The commit removed `TenantMode` usage and eliminated multiple `if TenantMode.tenant_aware?()` branches (including `find_package_across_tenants/1` in both controllers), replacing them with a single control-plane code path that always uses the platform actor and explicitly passes `tenant: schema` while iterating schemas. This reduces the duplicated conditional logic the suggestion called out, though it does not implement the proposed `TenantMode.read_across_tenants/2` helper abstraction.code diff:
The
TenantModeabstraction is incomplete because many files still use manualifTenantMode.tenant_aware?()checks with duplicated logic for tenant-aware andtenant-unaware modes, increasing complexity.
Examples:
web-ng/lib/serviceradar_web_ng_web/controllers/api/collector_controller.ex [630-669]
web-ng/lib/serviceradar_web_ng_web/controllers/api/edge_controller.ex [525-564]
Solution Walkthrough:
Before:
After:
Suggestion importance[1-10]: 8
__
Why: The suggestion correctly identifies that while the
TenantModemodule provides useful helpers, several key functions likefind_package_across_tenantsstill contain large, duplicatedif/elseblocks based onTenantMode.tenant_aware?(), which could be further abstracted to improve maintainability.✅
Error on missing DB_SCHEMASuggestion Impact:
Instead of adding a raise when DB_SCHEMA is missing, the commit removed the entire tenant-aware/tenant-unaware configuration block (including the DB_SCHEMA lookup/config). This touches the same code region but does not implement the suggested error; it effectively eliminates the scenario the suggestion targeted rather than hardening it.code diff:
In tenant-unaware mode, raise an error if the
DB_SCHEMAenvironment variable isnot set to prevent silent failures and ensure proper configuration.
elixir/serviceradar_core/config/runtime.exs [162-168]
[Suggestion processed]Suggestion importance[1-10]: 7
__
Why: The suggestion correctly identifies that a missing
DB_SCHEMAin tenant-unaware mode can lead to silent failures, and proposing to raise an error improves robustness against misconfiguration.Imported GitHub PR review comment.
Original author: @mfreeman451
Original URL: https://github.com/carverauto/serviceradar/pull/2320#discussion_r2695943300
Original created: 2026-01-15T21:00:30Z
Original path: elixir/serviceradar_core/config/runtime.exs
Original line: 151
not sure why this is still in here
Imported GitHub PR review comment.
Original author: @mfreeman451
Original URL: https://github.com/carverauto/serviceradar/pull/2320#discussion_r2695944566
Original created: 2026-01-15T21:01:01Z
Original path: elixir/serviceradar_core/lib/serviceradar/actors/system_actor.ex
Original line: 41
not sure why we need this anymore at all
Imported GitHub PR review comment.
Original author: @mfreeman451
Original URL: https://github.com/carverauto/serviceradar/pull/2320#discussion_r2695945686
Original created: 2026-01-15T21:01:29Z
Original path: elixir/serviceradar_core/lib/serviceradar/agent_config/config_server.ex
Original line: 29
why do we need this?
Imported GitHub PR review comment.
Original author: @mfreeman451
Original URL: https://github.com/carverauto/serviceradar/pull/2320#discussion_r2695946250
Original created: 2026-01-15T21:01:46Z
Original path: elixir/serviceradar_core/lib/serviceradar/cluster/tenant_mode.ex
Original line: 1
this file shouldnt even exist
Imported GitHub PR review comment.
Original author: @mfreeman451
Original URL: https://github.com/carverauto/serviceradar/pull/2320#discussion_r2695948788
Original created: 2026-01-15T21:02:44Z
Original path: elixir/serviceradar_core/lib/serviceradar/edge/workers/provision_collector_worker.ex
Original line: 34
not sure why this exists in here anymore
Imported GitHub PR review comment.
Original author: @mfreeman451
Original URL: https://github.com/carverauto/serviceradar/pull/2320#discussion_r2695949555
Original created: 2026-01-15T21:03:03Z
Original path: elixir/serviceradar_core/lib/serviceradar/edge/workers/provision_leaf_worker.ex
Original line: 30
more tenant crap
Imported GitHub PR review comment.
Original author: @mfreeman451
Original URL: https://github.com/carverauto/serviceradar/pull/2320#discussion_r2696209995
Original created: 2026-01-15T22:37:20Z
Original path: elixir/serviceradar_core/lib/serviceradar/agent_config/compilers/snmp_compiler.ex
Original line: 56
do we still need SystemActor in here as well?
Imported GitHub PR review comment.
Original author: @mfreeman451
Original URL: https://github.com/carverauto/serviceradar/pull/2320#discussion_r2696210785
Original created: 2026-01-15T22:37:44Z
Original path: elixir/serviceradar_core/lib/serviceradar/agent_config/compilers/sweep_compiler.ex
Original line: 39
do we still need systemactor stuff in here?
Imported GitHub PR review comment.
Original author: @mfreeman451
Original URL: https://github.com/carverauto/serviceradar/pull/2320#discussion_r2696212570
Original created: 2026-01-15T22:38:39Z
Original path: elixir/serviceradar_core/lib/serviceradar/agent_config/compilers/sysmon_compiler.ex
Original line: 47
systomactor usage still necessary?
Imported GitHub PR review comment.
Original author: @mfreeman451
Original URL: https://github.com/carverauto/serviceradar/pull/2320#discussion_r2696214146
Original created: 2026-01-15T22:39:22Z
Original path: elixir/serviceradar_core/lib/serviceradar/agent_config/config_server.ex
Original line: 172
why are we still passing tenant ID here? database isnt supposed to be tenant aware at all anymore
Imported GitHub PR review comment.
Original author: @mfreeman451
Original URL: https://github.com/carverauto/serviceradar/pull/2320#discussion_r2696221123
Original created: 2026-01-15T22:42:28Z
Original path: elixir/serviceradar_core/lib/serviceradar/edge/workers/provision_collector_worker.ex
Original line: 71
why do we do get_tenant here? SR isn't going to be tenant aware anymore, multi-tenancy is basically our control plane provisioning separate resources, with a shared database as a service (cnpg) and NATS
Imported GitHub PR review comment.
Original author: @mfreeman451
Original URL: https://github.com/carverauto/serviceradar/pull/2320#discussion_r2696221823
Original created: 2026-01-15T22:42:48Z
Original path: elixir/serviceradar_core/lib/serviceradar/edge/workers/provision_collector_worker.ex
Original line: 91
not sure why we care aboute tenants here
Imported GitHub PR review comment.
Original author: @mfreeman451
Original URL: https://github.com/carverauto/serviceradar/pull/2320#discussion_r2696224729
Original created: 2026-01-15T22:44:14Z
Original path: elixir/serviceradar_core/lib/serviceradar/edge/workers/provision_collector_worker.ex
Original line: 105
more tenant aware stuff, we might need some of this provisioning code so users can provision collectors, but it doesnt really need to be tenant aware anymore, provisioners will just generate NATS credentials that talk to their NATS account, or mTLS credentials and they'll talk to their own agent-gateway and so on -- every tenant gets their own resources, there is no more shared agent-gateway.
Imported GitHub PR review comment.
Original author: @mfreeman451
Original URL: https://github.com/carverauto/serviceradar/pull/2320#discussion_r2696227112
Original created: 2026-01-15T22:45:27Z
Original path: elixir/serviceradar_core/lib/serviceradar/edge/workers/provision_collector_worker.ex
Original line: 182
do we still need get_tenant anymore? every tenant will get their own credentials into CNPG and their own schema, their search path should just be the default schema, and we dump everything in there?
Imported GitHub PR review comment.
Original author: @mfreeman451
Original URL: https://github.com/carverauto/serviceradar/pull/2320#discussion_r2696227407
Original created: 2026-01-15T22:45:37Z
Original path: elixir/serviceradar_core/lib/serviceradar/edge/workers/provision_collector_worker.ex
Original line: 183
do we still need to use this systemactor stuff anymore??
Imported GitHub PR review comment.
Original author: @mfreeman451
Original URL: https://github.com/carverauto/serviceradar/pull/2320#discussion_r2696230080
Original created: 2026-01-15T22:47:01Z
Original path: elixir/serviceradar_core/lib/serviceradar/edge/workers/provision_collector_worker.ex
Original line: 219
not clear if we should be using systemactor stuff anymore, nats tenant credentials should live in each tenant's database, platform/system nats level credentials live in the public schema or some schema where only the control plane has access to
Imported GitHub PR review comment.
Original author: @mfreeman451
Original URL: https://github.com/carverauto/serviceradar/pull/2320#discussion_r2696233253
Original created: 2026-01-15T22:48:19Z
Original path: elixir/serviceradar_core/lib/serviceradar/edge/workers/provision_collector_worker.ex
Original line: 252
dont think this should be necessary anymore
Imported GitHub PR review comment.
Original author: @mfreeman451
Original URL: https://github.com/carverauto/serviceradar/pull/2320#discussion_r2696233943
Original created: 2026-01-15T22:48:38Z
Original path: elixir/serviceradar_core/lib/serviceradar/edge/workers/provision_leaf_worker.ex
Original line: 39
why do we need to load tenant anymore?
Imported GitHub PR review comment.
Original author: @mfreeman451
Original URL: https://github.com/carverauto/serviceradar/pull/2320#discussion_r2696234603
Original created: 2026-01-15T22:48:59Z
Original path: elixir/serviceradar_core/lib/serviceradar/edge/workers/provision_leaf_worker.ex
Original line: 65
why do we need this systemactor stuff
Imported GitHub PR review comment.
Original author: @mfreeman451
Original URL: https://github.com/carverauto/serviceradar/pull/2320#discussion_r2696234900
Original created: 2026-01-15T22:49:08Z
Original path: elixir/serviceradar_core/lib/serviceradar/edge/workers/provision_leaf_worker.ex
Original line: 94
why are we still doing load_tenant?
Imported GitHub PR review comment.
Original author: @mfreeman451
Original URL: https://github.com/carverauto/serviceradar/pull/2320#discussion_r2696237236
Original created: 2026-01-15T22:50:13Z
Original path: elixir/serviceradar_core/lib/serviceradar/edge/workers/provision_leaf_worker.ex
Original line: 105
dont know why this stuff needs to be tenant aware anymore.. we might need to provision leaf workers but it doesnt need to be tenant aware
Imported GitHub PR review comment.
Original author: @mfreeman451
Original URL: https://github.com/carverauto/serviceradar/pull/2320#discussion_r2696237788
Original created: 2026-01-15T22:50:30Z
Original path: elixir/serviceradar_core/lib/serviceradar/edge/workers/record_event_worker.ex
Original line: 15
do we still need to use systemactor stuff here
Imported GitHub PR review comment.
Original author: @mfreeman451
Original URL: https://github.com/carverauto/serviceradar/pull/2320#discussion_r2696239179
Original created: 2026-01-15T22:51:17Z
Original path: elixir/serviceradar_core/lib/serviceradar/edge/agent_gateway_sync.ex
Original line: 77
dont think this still needs to be tenant aware anymore
Imported GitHub PR review comment.
Original author: @mfreeman451
Original URL: https://github.com/carverauto/serviceradar/pull/2320#discussion_r2696239595
Original created: 2026-01-15T22:51:29Z
Original path: elixir/serviceradar_core/lib/serviceradar/edge/agent_gateway_sync.ex
Original line: 96
still tenant aware
Imported GitHub PR review comment.
Original author: @mfreeman451
Original URL: https://github.com/carverauto/serviceradar/pull/2320#discussion_r2696240412
Original created: 2026-01-15T22:51:58Z
Original path: elixir/serviceradar_core/lib/serviceradar/edge/agent_gateway_sync.ex
Original line: 126
more tenant aware stuff that needs to get cleaned up
Imported GitHub PR review comment.
Original author: @mfreeman451
Original URL: https://github.com/carverauto/serviceradar/pull/2320#discussion_r2696241372
Original created: 2026-01-15T22:52:31Z
Original path: elixir/serviceradar_core/lib/serviceradar/edge/onboarding_events.ex
Original line: 17
more tenant aware stuff that needs to get cleaned up
Imported GitHub PR review comment.
Original author: @mfreeman451
Original URL: https://github.com/carverauto/serviceradar/pull/2320#discussion_r2696242241
Original created: 2026-01-15T22:52:56Z
Original path: elixir/serviceradar_core/lib/serviceradar/event_writer/tenant_context.ex
Original line: 13
more tenant aware stuff that needs to get cleaned up
Imported GitHub PR review comment.
Original author: @mfreeman451
Original URL: https://github.com/carverauto/serviceradar/pull/2320#discussion_r2696242645
Original created: 2026-01-15T22:53:09Z
Original path: elixir/serviceradar_core/lib/serviceradar/events/onboarding_writer.ex
Original line: 17
more tenant aware stuff that needs to get cleaned up
Imported GitHub PR review comment.
Original author: @mfreeman451
Original URL: https://github.com/carverauto/serviceradar/pull/2320#discussion_r2696243297
Original created: 2026-01-15T22:53:30Z
Original path: elixir/serviceradar_core/lib/serviceradar/identity/senders/send_magic_link_email.ex
Original line: 235
more tenant aware stuff that needs to get cleaned up
Imported GitHub PR review comment.
Original author: @mfreeman451
Original URL: https://github.com/carverauto/serviceradar/pull/2320#discussion_r2696243455
Original created: 2026-01-15T22:53:36Z
Original path: elixir/serviceradar_core/lib/serviceradar/infrastructure/health_event.ex
Original line: 325
more tenant aware stuff that needs to get cleaned up
Imported GitHub PR review comment.
Original author: @mfreeman451
Original URL: https://github.com/carverauto/serviceradar/pull/2320#discussion_r2696243681
Original created: 2026-01-15T22:53:43Z
Original path: elixir/serviceradar_core/lib/serviceradar/infrastructure/health_tracker.ex
Original line: 127
more tenant aware stuff that needs to get cleaned up
Imported GitHub PR review comment.
Original author: @mfreeman451
Original URL: https://github.com/carverauto/serviceradar/pull/2320#discussion_r2696244002
Original created: 2026-01-15T22:53:54Z
Original path: elixir/serviceradar_core/lib/serviceradar/infrastructure/health_tracker.ex
Original line: 287
more tenant aware stuff that needs to get cleaned up
Imported GitHub PR review comment.
Original author: @mfreeman451
Original URL: https://github.com/carverauto/serviceradar/pull/2320#discussion_r2696244077
Original created: 2026-01-15T22:53:56Z
Original path: elixir/serviceradar_core/lib/serviceradar/infrastructure/health_tracker.ex
Original line: 294
more tenant aware stuff that needs to get cleaned up
Imported GitHub PR review comment.
Original author: @mfreeman451
Original URL: https://github.com/carverauto/serviceradar/pull/2320#discussion_r2696244379
Original created: 2026-01-15T22:54:07Z
Original path: elixir/serviceradar_core/lib/serviceradar/infrastructure/health_tracker.ex
Original line: 338
more tenant aware stuff that needs to get cleaned up
Imported GitHub PR review comment.
Original author: @mfreeman451
Original URL: https://github.com/carverauto/serviceradar/pull/2320#discussion_r2696244730
Original created: 2026-01-15T22:54:17Z
Original path: elixir/serviceradar_core/lib/serviceradar/infrastructure/health_tracker.ex
Original line: 375
more tenant aware stuff that needs to get cleaned up
Imported GitHub PR review comment.
Original author: @mfreeman451
Original URL: https://github.com/carverauto/serviceradar/pull/2320#discussion_r2696244941
Original created: 2026-01-15T22:54:24Z
Original path: elixir/serviceradar_core/lib/serviceradar/infrastructure/health_tracker.ex
Original line: 416
more tenant aware stuff that needs to get cleaned up
Imported GitHub PR review comment.
Original author: @mfreeman451
Original URL: https://github.com/carverauto/serviceradar/pull/2320#discussion_r2696245228
Original created: 2026-01-15T22:54:35Z
Original path: elixir/serviceradar_core/lib/serviceradar/infrastructure/health_tracker.ex
Original line: 429
more tenant aware stuff that needs to get cleaned up
Imported GitHub PR review comment.
Original author: @mfreeman451
Original URL: https://github.com/carverauto/serviceradar/pull/2320#discussion_r2696245429
Original created: 2026-01-15T22:54:39Z
Original path: elixir/serviceradar_core/lib/serviceradar/infrastructure/health_tracker.ex
Original line: 420
more tenant aware stuff that needs to get cleaned up
Imported GitHub PR review comment.
Original author: @mfreeman451
Original URL: https://github.com/carverauto/serviceradar/pull/2320#discussion_r2696245661
Original created: 2026-01-15T22:54:48Z
Original path: elixir/serviceradar_core/lib/serviceradar/infrastructure/state_monitor.ex
Original line: 151
more tenant aware stuff that needs to get cleaned up
Imported GitHub PR review comment.
Original author: @mfreeman451
Original URL: https://github.com/carverauto/serviceradar/pull/2320#discussion_r2696246307
Original created: 2026-01-15T22:55:05Z
Original path: elixir/serviceradar_core/lib/serviceradar/infrastructure/state_monitor.ex
Original line: 200
more tenant aware stuff that needs to get cleaned up
Imported GitHub PR review comment.
Original author: @mfreeman451
Original URL: https://github.com/carverauto/serviceradar/pull/2320#discussion_r2696246652
Original created: 2026-01-15T22:55:11Z
Original path: elixir/serviceradar_core/lib/serviceradar/infrastructure/state_monitor.ex
Original line: 286
more tenant aware stuff that needs to get cleaned up
Imported GitHub PR review comment.
Original author: @mfreeman451
Original URL: https://github.com/carverauto/serviceradar/pull/2320#discussion_r2696247216
Original created: 2026-01-15T22:55:24Z
Original path: elixir/serviceradar_core/lib/serviceradar/infrastructure/state_monitor.ex
Original line: 345
more tenant aware stuff that needs to get cleaned up
Imported GitHub PR review comment.
Original author: @mfreeman451
Original URL: https://github.com/carverauto/serviceradar/pull/2320#discussion_r2696247351
Original created: 2026-01-15T22:55:27Z
Original path: elixir/serviceradar_core/lib/serviceradar/infrastructure/state_monitor.ex
Original line: 343
more tenant aware stuff that needs to get cleaned up
Imported GitHub PR review comment.
Original author: @mfreeman451
Original URL: https://github.com/carverauto/serviceradar/pull/2320#discussion_r2696247726
Original created: 2026-01-15T22:55:38Z
Original path: elixir/serviceradar_core/lib/serviceradar/infrastructure/state_monitor.ex
Original line: 301
more tenant aware stuff that needs to get cleaned up
Imported GitHub PR review comment.
Original author: @mfreeman451
Original URL: https://github.com/carverauto/serviceradar/pull/2320#discussion_r2696248227
Original created: 2026-01-15T22:55:48Z
Original path: elixir/serviceradar_core/lib/serviceradar/inventory/sync_ingestor.ex
Original line: 14
more tenant aware stuff that needs to get cleaned up
Imported GitHub PR review comment.
Original author: @mfreeman451
Original URL: https://github.com/carverauto/serviceradar/pull/2320#discussion_r2696250035
Original created: 2026-01-15T22:56:28Z
Original path: elixir/serviceradar_core/lib/serviceradar/inventory/sync_ingestor_queue.ex
Original line: 302
more tenant aware stuff that needs to get cleaned up
Imported GitHub PR review comment.
Original author: @mfreeman451
Original URL: https://github.com/carverauto/serviceradar/pull/2320#discussion_r2696250735
Original created: 2026-01-15T22:56:45Z
Original path: elixir/serviceradar_core/lib/serviceradar/monitoring/alert_generator.ex
Original line: 31
more tenant aware stuff that needs to get cleaned up
Imported GitHub PR review comment.
Original author: @mfreeman451
Original URL: https://github.com/carverauto/serviceradar/pull/2320#discussion_r2696251334
Original created: 2026-01-15T22:56:56Z
Original path: elixir/serviceradar_core/lib/serviceradar/monitoring/poll_orchestrator.ex
Original line: 67
more tenant aware stuff that needs to get cleaned up
Imported GitHub PR review comment.
Original author: @mfreeman451
Original URL: https://github.com/carverauto/serviceradar/pull/2320#discussion_r2696251917
Original created: 2026-01-15T22:57:02Z
Original path: elixir/serviceradar_core/lib/serviceradar/monitoring/poll_orchestrator.ex
Original line: 389
more tenant aware stuff that needs to get cleaned up
Imported GitHub PR review comment.
Original author: @mfreeman451
Original URL: https://github.com/carverauto/serviceradar/pull/2320#discussion_r2696252862
Original created: 2026-01-15T22:57:13Z
Original path: elixir/serviceradar_core/lib/serviceradar/observability/rule_seeder.ex
Original line: 17
more tenant aware stuff that needs to get cleaned up
Imported GitHub PR review comment.
Original author: @mfreeman451
Original URL: https://github.com/carverauto/serviceradar/pull/2320#discussion_r2696253282
Original created: 2026-01-15T22:57:17Z
Original path: elixir/serviceradar_core/lib/serviceradar/observability/rule_seeder.ex
Original line: 15
more tenant aware stuff that needs to get cleaned up
Imported GitHub PR review comment.
Original author: @mfreeman451
Original URL: https://github.com/carverauto/serviceradar/pull/2320#discussion_r2696253891
Original created: 2026-01-15T22:57:23Z
Original path: elixir/serviceradar_core/lib/serviceradar/observability/rule_seeder.ex
Original line: 45
more tenant aware stuff that needs to get cleaned up
Imported GitHub PR review comment.
Original author: @mfreeman451
Original URL: https://github.com/carverauto/serviceradar/pull/2320#discussion_r2696254882
Original created: 2026-01-15T22:57:36Z
Original path: elixir/serviceradar_core/lib/serviceradar/observability/stateful_alert_cleanup_worker.ex
Original line: 93
more tenant aware stuff that needs to get cleaned up
Imported GitHub PR review comment.
Original author: @mfreeman451
Original URL: https://github.com/carverauto/serviceradar/pull/2320#discussion_r2696255636
Original created: 2026-01-15T22:57:45Z
Original path: elixir/serviceradar_core/lib/serviceradar/observability/stateful_alert_cleanup_worker.ex
Original line: 103
more tenant aware stuff that needs to get cleaned up
Imported GitHub PR review comment.
Original author: @mfreeman451
Original URL: https://github.com/carverauto/serviceradar/pull/2320#discussion_r2696256087
Original created: 2026-01-15T22:57:50Z
Original path: elixir/serviceradar_core/lib/serviceradar/observability/stateful_alert_cleanup_worker.ex
Original line: 118
more tenant aware stuff that needs to get cleaned up
Imported GitHub PR review comment.
Original author: @mfreeman451
Original URL: https://github.com/carverauto/serviceradar/pull/2320#discussion_r2696257670
Original created: 2026-01-15T22:58:09Z
Original path: elixir/serviceradar_core/lib/serviceradar/observability/stateful_alert_engine.ex
Original line: 394
more tenant aware stuff that needs to get cleaned up
Imported GitHub PR review comment.
Original author: @mfreeman451
Original URL: https://github.com/carverauto/serviceradar/pull/2320#discussion_r2696258064
Original created: 2026-01-15T22:58:15Z
Original path: elixir/serviceradar_core/lib/serviceradar/observability/stateful_alert_engine.ex
Original line: 412
more tenant aware stuff that needs to get cleaned up
Imported GitHub PR review comment.
Original author: @mfreeman451
Original URL: https://github.com/carverauto/serviceradar/pull/2320#discussion_r2696259803
Original created: 2026-01-15T22:58:39Z
Original path: elixir/serviceradar_core/lib/serviceradar/observability/stateful_alert_engine.ex
Original line: 568
more tenant aware stuff that needs to get cleaned up
Imported GitHub PR review comment.
Original author: @mfreeman451
Original URL: https://github.com/carverauto/serviceradar/pull/2320#discussion_r2696260559
Original created: 2026-01-15T22:58:49Z
Original path: elixir/serviceradar_core/lib/serviceradar/observability/sync_log_writer.ex
Original line: 26
more tenant aware stuff that needs to get cleaned up
Imported GitHub PR review comment.
Original author: @mfreeman451
Original URL: https://github.com/carverauto/serviceradar/pull/2320#discussion_r2696261645
Original created: 2026-01-15T22:59:08Z
Original path: elixir/serviceradar_core/lib/serviceradar/observability/sysmon_metrics_ingestor.ex
Original line: 20
more tenant aware stuff that needs to get cleaned up
Imported GitHub PR review comment.
Original author: @mfreeman451
Original URL: https://github.com/carverauto/serviceradar/pull/2320#discussion_r2696263011
Original created: 2026-01-15T22:59:33Z
Original path: elixir/serviceradar_core/lib/serviceradar/observability/template_seeder.ex
Original line: 12
more tenant aware stuff that needs to get cleaned up
Imported GitHub PR review comment.
Original author: @mfreeman451
Original URL: https://github.com/carverauto/serviceradar/pull/2320#discussion_r2696263395
Original created: 2026-01-15T22:59:40Z
Original path: elixir/serviceradar_core/lib/serviceradar/observability/template_seeder.ex
Original line: 45
more tenant aware stuff that needs to get cleaned up
Imported GitHub PR review comment.
Original author: @mfreeman451
Original URL: https://github.com/carverauto/serviceradar/pull/2320#discussion_r2696263612
Original created: 2026-01-15T22:59:45Z
Original path: elixir/serviceradar_core/lib/serviceradar/observability/template_seeder.ex
Original line: 50
more tenant aware stuff that needs to get cleaned up
Imported GitHub PR review comment.
Original author: @mfreeman451
Original URL: https://github.com/carverauto/serviceradar/pull/2320#discussion_r2696263851
Original created: 2026-01-15T22:59:50Z
Original path: elixir/serviceradar_core/lib/serviceradar/observability/template_seeder.ex
Original line: 48
more tenant aware stuff that needs to get cleaned up
Imported GitHub PR review comment.
Original author: @mfreeman451
Original URL: https://github.com/carverauto/serviceradar/pull/2320#discussion_r2696264855
Original created: 2026-01-15T23:00:16Z
Original path: elixir/serviceradar_core/lib/serviceradar/observability/zen_rule_seeder.ex
Original line: 12
more tenant aware stuff that needs to get cleaned up
Imported GitHub PR review comment.
Original author: @mfreeman451
Original URL: https://github.com/carverauto/serviceradar/pull/2320#discussion_r2696265035
Original created: 2026-01-15T23:00:21Z
Original path: elixir/serviceradar_core/lib/serviceradar/observability/zen_rule_seeder.ex
Original line: 41
more tenant aware stuff that needs to get cleaned up
Imported GitHub PR review comment.
Original author: @mfreeman451
Original URL: https://github.com/carverauto/serviceradar/pull/2320#discussion_r2696265480
Original created: 2026-01-15T23:00:37Z
Original path: elixir/serviceradar_core/lib/serviceradar/observability/zen_rule_sync.ex
Original line: 168
more tenant aware stuff that needs to get cleaned up
Imported GitHub PR review comment.
Original author: @mfreeman451
Original URL: https://github.com/carverauto/serviceradar/pull/2320#discussion_r2696265731
Original created: 2026-01-15T23:00:48Z
Original path: elixir/serviceradar_core/lib/serviceradar/observability/zen_rule_sync.ex
Original line: 250
more tenant aware stuff that needs to get cleaned up
Imported GitHub PR review comment.
Original author: @mfreeman451
Original URL: https://github.com/carverauto/serviceradar/pull/2320#discussion_r2696266115
Original created: 2026-01-15T23:01:02Z
Original path: elixir/serviceradar_core/lib/serviceradar/sweep_jobs/sweep_results_ingestor.ex
Original line: 40
more tenant aware stuff that needs to get cleaned up
Imported GitHub PR review comment.
Original author: @mfreeman451
Original URL: https://github.com/carverauto/serviceradar/pull/2320#discussion_r2696266689
Original created: 2026-01-15T23:01:16Z
Original path: elixir/serviceradar_core/lib/serviceradar/sweep_jobs/sweep_results_ingestor.ex
Original line: 117
more tenant aware stuff that needs to get cleaned up
Imported GitHub PR review comment.
Original author: @mfreeman451
Original URL: https://github.com/carverauto/serviceradar/pull/2320#discussion_r2696268559
Original created: 2026-01-15T23:02:12Z
Original path: elixir/serviceradar_core/lib/serviceradar/sweep_jobs/sweep_results_ingestor.ex
Original line: 566
more tenant aware stuff that needs to get cleaned up
Imported GitHub PR review comment.
Original author: @mfreeman451
Original URL: https://github.com/carverauto/serviceradar/pull/2320#discussion_r2696268750
Original created: 2026-01-15T23:02:17Z
Original path: elixir/serviceradar_core/lib/serviceradar/sweep_jobs/sweep_results_ingestor.ex
Original line: 574
more tenant aware stuff that needs to get cleaned up
Imported GitHub PR review comment.
Original author: @mfreeman451
Original URL: https://github.com/carverauto/serviceradar/pull/2320#discussion_r2696268889
Original created: 2026-01-15T23:02:21Z
Original path: elixir/serviceradar_core/lib/serviceradar/sweep_jobs/sweep_results_ingestor.ex
Original line: 579
more tenant aware stuff that needs to get cleaned up
Imported GitHub PR review comment.
Original author: @mfreeman451
Original URL: https://github.com/carverauto/serviceradar/pull/2320#discussion_r2696269244
Original created: 2026-01-15T23:02:29Z
Original path: elixir/serviceradar_core/lib/serviceradar/sysmon_profiles/sysmon_profile_seeder.ex
Original line: 13
more tenant aware stuff that needs to get cleaned up
Imported GitHub PR review comment.
Original author: @mfreeman451
Original URL: https://github.com/carverauto/serviceradar/pull/2320#discussion_r2696269449
Original created: 2026-01-15T23:02:34Z
Original path: elixir/serviceradar_core/lib/serviceradar/sysmon_profiles/sysmon_profile_seeder.ex
Original line: 21
more tenant aware stuff that needs to get cleaned up
Imported GitHub PR review comment.
Original author: @mfreeman451
Original URL: https://github.com/carverauto/serviceradar/pull/2320#discussion_r2696269646
Original created: 2026-01-15T23:02:38Z
Original path: elixir/serviceradar_core/lib/serviceradar/sysmon_profiles/sysmon_profile_seeder.ex
Original line: 22
more tenant aware stuff that needs to get cleaned up
Imported GitHub PR review comment.
Original author: @mfreeman451
Original URL: https://github.com/carverauto/serviceradar/pull/2320#discussion_r2696269903
Original created: 2026-01-15T23:02:42Z
Original path: elixir/serviceradar_core/lib/serviceradar/sysmon_profiles/sysmon_profile_seeder.ex
Original line: 25
more tenant aware stuff that needs to get cleaned up
Imported GitHub PR review comment.
Original author: @mfreeman451
Original URL: https://github.com/carverauto/serviceradar/pull/2320#discussion_r2696270096
Original created: 2026-01-15T23:02:46Z
Original path: elixir/serviceradar_core/lib/serviceradar/sysmon_profiles/sysmon_profile_seeder.ex
Original line: 27
more tenant aware stuff that needs to get cleaned up
Imported GitHub PR review comment.
Original author: @mfreeman451
Original URL: https://github.com/carverauto/serviceradar/pull/2320#discussion_r2696270266
Original created: 2026-01-15T23:02:51Z
Original path: elixir/serviceradar_core/lib/serviceradar/sysmon_profiles/sysmon_profile_seeder.ex
Original line: 30
more tenant aware stuff that needs to get cleaned up
Imported GitHub PR review comment.
Original author: @mfreeman451
Original URL: https://github.com/carverauto/serviceradar/pull/2320#discussion_r2696270473
Original created: 2026-01-15T23:02:56Z
Original path: elixir/serviceradar_core/lib/serviceradar/sysmon_profiles/sysmon_profile_seeder.ex
Original line: 36
more tenant aware stuff that needs to get cleaned up
Imported GitHub PR review comment.
Original author: @mfreeman451
Original URL: https://github.com/carverauto/serviceradar/pull/2320#discussion_r2696270656
Original created: 2026-01-15T23:03:01Z
Original path: elixir/serviceradar_core/lib/serviceradar/sysmon_profiles/sysmon_profile_seeder.ex
Original line: 52
more tenant aware stuff that needs to get cleaned up
Imported GitHub PR review comment.
Original author: @mfreeman451
Original URL: https://github.com/carverauto/serviceradar/pull/2320#discussion_r2696270937
Original created: 2026-01-15T23:03:09Z
Original path: elixir/serviceradar_core/lib/serviceradar/repo.ex
Original line: 28
more tenant aware stuff that needs to get cleaned up
Imported GitHub PR review comment.
Original author: @mfreeman451
Original URL: https://github.com/carverauto/serviceradar/pull/2320#discussion_r2696271196
Original created: 2026-01-15T23:03:13Z
Original path: elixir/serviceradar_core/lib/serviceradar/repo.ex
Original line: 34
more tenant aware stuff that needs to get cleaned up
Imported GitHub PR review comment.
Original author: @mfreeman451
Original URL: https://github.com/carverauto/serviceradar/pull/2320#discussion_r2696271359
Original created: 2026-01-15T23:03:18Z
Original path: elixir/serviceradar_core/lib/serviceradar/results_router.ex
Original line: 86
more tenant aware stuff that needs to get cleaned up
Imported GitHub PR review comment.
Original author: @mfreeman451
Original URL: https://github.com/carverauto/serviceradar/pull/2320#discussion_r2696271959
Original created: 2026-01-15T23:03:36Z
Original path: web-ng/lib/serviceradar_web_ng/accounts/scope.ex
Original line: 20
more tenant aware stuff that needs to get cleaned up
Imported GitHub PR review comment.
Original author: @mfreeman451
Original URL: https://github.com/carverauto/serviceradar/pull/2320#discussion_r2696272213
Original created: 2026-01-15T23:03:42Z
Original path: web-ng/lib/serviceradar_web_ng/accounts/scope.ex
Original line: 40
more tenant aware stuff that needs to get cleaned up
Imported GitHub PR review comment.
Original author: @mfreeman451
Original URL: https://github.com/carverauto/serviceradar/pull/2320#discussion_r2696272517
Original created: 2026-01-15T23:03:49Z
Original path: web-ng/lib/serviceradar_web_ng/accounts/scope.ex
Original line: 47
more tenant aware stuff that needs to get cleaned up
Imported GitHub PR review comment.
Original author: @mfreeman451
Original URL: https://github.com/carverauto/serviceradar/pull/2320#discussion_r2696272700
Original created: 2026-01-15T23:03:52Z
Original path: web-ng/lib/serviceradar_web_ng/accounts/scope.ex
Original line: 137
more tenant aware stuff that needs to get cleaned up
Imported GitHub PR review comment.
Original author: @mfreeman451
Original URL: https://github.com/carverauto/serviceradar/pull/2320#discussion_r2696272878
Original created: 2026-01-15T23:03:57Z
Original path: web-ng/lib/serviceradar_web_ng/accounts/scope.ex
Original line: 141
more tenant aware stuff that needs to get cleaned up
Imported GitHub PR review comment.
Original author: @mfreeman451
Original URL: https://github.com/carverauto/serviceradar/pull/2320#discussion_r2696273242
Original created: 2026-01-15T23:04:03Z
Original path: web-ng/lib/serviceradar_web_ng_web/controllers/api/collector_controller.ex
Original line: 14
more tenant aware stuff that needs to get cleaned up
Imported GitHub PR review comment.
Original author: @mfreeman451
Original URL: https://github.com/carverauto/serviceradar/pull/2320#discussion_r2696273630
Original created: 2026-01-15T23:04:10Z
Original path: web-ng/lib/serviceradar_web_ng_web/controllers/api/collector_controller.ex
Original line: 55
more tenant aware stuff that needs to get cleaned up
Imported GitHub PR review comment.
Original author: @mfreeman451
Original URL: https://github.com/carverauto/serviceradar/pull/2320#discussion_r2696273843
Original created: 2026-01-15T23:04:15Z
Original path: web-ng/lib/serviceradar_web_ng_web/controllers/api/collector_controller.ex
Original line: 56
more tenant aware stuff that needs to get cleaned up
Imported GitHub PR review comment.
Original author: @mfreeman451
Original URL: https://github.com/carverauto/serviceradar/pull/2320#discussion_r2696274372
Original created: 2026-01-15T23:04:22Z
Original path: web-ng/lib/serviceradar_web_ng_web/controllers/api/collector_controller.ex
Original line: 89
more tenant aware stuff that needs to get cleaned up
Imported GitHub PR review comment.
Original author: @mfreeman451
Original URL: https://github.com/carverauto/serviceradar/pull/2320#discussion_r2696274760
Original created: 2026-01-15T23:04:29Z
Original path: web-ng/lib/serviceradar_web_ng_web/controllers/api/collector_controller.ex
Original line: 258
more tenant aware stuff that needs to get cleaned up
Imported GitHub PR review comment.
Original author: @mfreeman451
Original URL: https://github.com/carverauto/serviceradar/pull/2320#discussion_r2696274967
Original created: 2026-01-15T23:04:36Z
Original path: web-ng/lib/serviceradar_web_ng_web/controllers/api/collector_controller.ex
Original line: 343
more tenant aware stuff that needs to get cleaned up
Imported GitHub PR review comment.
Original author: @mfreeman451
Original URL: https://github.com/carverauto/serviceradar/pull/2320#discussion_r2696275146
Original created: 2026-01-15T23:04:40Z
Original path: web-ng/lib/serviceradar_web_ng_web/controllers/api/collector_controller.ex
Original line: 437
more tenant aware stuff that needs to get cleaned up
Imported GitHub PR review comment.
Original author: @mfreeman451
Original URL: https://github.com/carverauto/serviceradar/pull/2320#discussion_r2696275353
Original created: 2026-01-15T23:04:47Z
Original path: web-ng/lib/serviceradar_web_ng_web/controllers/api/collector_controller.ex
Original line: 443
more tenant aware stuff that needs to get cleaned up
Imported GitHub PR review comment.
Original author: @mfreeman451
Original URL: https://github.com/carverauto/serviceradar/pull/2320#discussion_r2696275486
Original created: 2026-01-15T23:04:52Z
Original path: web-ng/lib/serviceradar_web_ng_web/controllers/api/collector_controller.ex
Original line: 630
more tenant aware stuff that needs to get cleaned up
Imported GitHub PR review comment.
Original author: @mfreeman451
Original URL: https://github.com/carverauto/serviceradar/pull/2320#discussion_r2696275608
Original created: 2026-01-15T23:04:55Z
Original path: web-ng/lib/serviceradar_web_ng_web/controllers/api/collector_controller.ex
Original line: 634
more tenant aware stuff that needs to get cleaned up
Imported GitHub PR review comment.
Original author: @mfreeman451
Original URL: https://github.com/carverauto/serviceradar/pull/2320#discussion_r2696275754
Original created: 2026-01-15T23:05:00Z
Original path: web-ng/lib/serviceradar_web_ng_web/controllers/api/collector_controller.ex
Original line: 651
more tenant aware stuff that needs to get cleaned up
Imported GitHub PR review comment.
Original author: @mfreeman451
Original URL: https://github.com/carverauto/serviceradar/pull/2320#discussion_r2696276064
Original created: 2026-01-15T23:05:10Z
Original path: web-ng/lib/serviceradar_web_ng_web/controllers/api/edge_controller.ex
Original line: 14
more tenant aware stuff that needs to get cleaned up
Imported GitHub PR review comment.
Original author: @mfreeman451
Original URL: https://github.com/carverauto/serviceradar/pull/2320#discussion_r2696276242
Original created: 2026-01-15T23:05:16Z
Original path: web-ng/lib/serviceradar_web_ng_web/controllers/api/edge_controller.ex
Original line: 58
more tenant aware stuff that needs to get cleaned up
Imported GitHub PR review comment.
Original author: @mfreeman451
Original URL: https://github.com/carverauto/serviceradar/pull/2320#discussion_r2696276468
Original created: 2026-01-15T23:05:22Z
Original path: web-ng/lib/serviceradar_web_ng_web/controllers/api/edge_controller.ex
Original line: 126
more tenant aware stuff that needs to get cleaned up
Imported GitHub PR review comment.
Original author: @mfreeman451
Original URL: https://github.com/carverauto/serviceradar/pull/2320#discussion_r2696276637
Original created: 2026-01-15T23:05:28Z
Original path: web-ng/lib/serviceradar_web_ng_web/controllers/api/edge_controller.ex
Original line: 150
more tenant aware stuff that needs to get cleaned up
Imported GitHub PR review comment.
Original author: @mfreeman451
Original URL: https://github.com/carverauto/serviceradar/pull/2320#discussion_r2696276775
Original created: 2026-01-15T23:05:33Z
Original path: web-ng/lib/serviceradar_web_ng_web/controllers/api/edge_controller.ex
Original line: 178
more tenant aware stuff that needs to get cleaned up
Imported GitHub PR review comment.
Original author: @mfreeman451
Original URL: https://github.com/carverauto/serviceradar/pull/2320#discussion_r2696276909
Original created: 2026-01-15T23:05:37Z
Original path: web-ng/lib/serviceradar_web_ng_web/controllers/api/edge_controller.ex
Original line: 179
more tenant aware stuff that needs to get cleaned up
Imported GitHub PR review comment.
Original author: @mfreeman451
Original URL: https://github.com/carverauto/serviceradar/pull/2320#discussion_r2696277039
Original created: 2026-01-15T23:05:41Z
Original path: web-ng/lib/serviceradar_web_ng_web/controllers/api/edge_controller.ex
Original line: 350
more tenant aware stuff that needs to get cleaned up
Imported GitHub PR review comment.
Original author: @mfreeman451
Original URL: https://github.com/carverauto/serviceradar/pull/2320#discussion_r2696277151
Original created: 2026-01-15T23:05:45Z
Original path: web-ng/lib/serviceradar_web_ng_web/controllers/api/edge_controller.ex
Original line: 354
more tenant aware stuff that needs to get cleaned up
Imported GitHub PR review comment.
Original author: @mfreeman451
Original URL: https://github.com/carverauto/serviceradar/pull/2320#discussion_r2696277273
Original created: 2026-01-15T23:05:48Z
Original path: web-ng/lib/serviceradar_web_ng_web/controllers/api/edge_controller.ex
Original line: 492
more tenant aware stuff that needs to get cleaned up
Imported GitHub PR review comment.
Original author: @mfreeman451
Original URL: https://github.com/carverauto/serviceradar/pull/2320#discussion_r2696277378
Original created: 2026-01-15T23:05:51Z
Original path: web-ng/lib/serviceradar_web_ng_web/controllers/api/edge_controller.ex
Original line: 494
more tenant aware stuff that needs to get cleaned up
Imported GitHub PR review comment.
Original author: @mfreeman451
Original URL: https://github.com/carverauto/serviceradar/pull/2320#discussion_r2696277496
Original created: 2026-01-15T23:05:55Z
Original path: web-ng/lib/serviceradar_web_ng_web/controllers/api/edge_controller.ex
Original line: 497
more tenant aware stuff that needs to get cleaned up
Imported GitHub PR review comment.
Original author: @mfreeman451
Original URL: https://github.com/carverauto/serviceradar/pull/2320#discussion_r2696277595
Original created: 2026-01-15T23:05:59Z
Original path: web-ng/lib/serviceradar_web_ng_web/controllers/api/edge_controller.ex
Original line: 525
more tenant aware stuff that needs to get cleaned up
Imported GitHub PR review comment.
Original author: @mfreeman451
Original URL: https://github.com/carverauto/serviceradar/pull/2320#discussion_r2696277830
Original created: 2026-01-15T23:06:06Z
Original path: web-ng/lib/serviceradar_web_ng_web/controllers/api/edge_controller.ex
Original line: 548
more tenant aware stuff that needs to get cleaned up
Imported GitHub PR review comment.
Original author: @mfreeman451
Original URL: https://github.com/carverauto/serviceradar/pull/2320#discussion_r2696277983
Original created: 2026-01-15T23:06:12Z
Original path: web-ng/lib/serviceradar_web_ng_web/controllers/api/enroll_controller.ex
Original line: 21
more tenant aware stuff that needs to get cleaned up
Imported GitHub PR review comment.
Original author: @mfreeman451
Original URL: https://github.com/carverauto/serviceradar/pull/2320#discussion_r2696278133
Original created: 2026-01-15T23:06:17Z
Original path: web-ng/lib/serviceradar_web_ng_web/controllers/api/enroll_controller.ex
Original line: 188
more tenant aware stuff that needs to get cleaned up
Imported GitHub PR review comment.
Original author: @mfreeman451
Original URL: https://github.com/carverauto/serviceradar/pull/2320#discussion_r2696278230
Original created: 2026-01-15T23:06:21Z
Original path: web-ng/lib/serviceradar_web_ng_web/controllers/api/enroll_controller.ex
Original line: 194
more tenant aware stuff that needs to get cleaned up
Imported GitHub PR review comment.
Original author: @mfreeman451
Original URL: https://github.com/carverauto/serviceradar/pull/2320#discussion_r2696278347
Original created: 2026-01-15T23:06:25Z
Original path: web-ng/lib/serviceradar_web_ng_web/controllers/api/enroll_controller.ex
Original line: 253
more tenant aware stuff that needs to get cleaned up
Imported GitHub PR review comment.
Original author: @mfreeman451
Original URL: https://github.com/carverauto/serviceradar/pull/2320#discussion_r2696278625
Original created: 2026-01-15T23:06:33Z
Original path: web-ng/lib/serviceradar_web_ng_web/controllers/auth_controller.ex
Original line: 50
more tenant aware stuff that needs to get cleaned up
Imported GitHub PR review comment.
Original author: @mfreeman451
Original URL: https://github.com/carverauto/serviceradar/pull/2320#discussion_r2696278778
Original created: 2026-01-15T23:06:36Z
Original path: web-ng/lib/serviceradar_web_ng_web/controllers/auth_controller.ex
Original line: 18
more tenant aware stuff that needs to get cleaned up
Imported GitHub PR review comment.
Original author: @mfreeman451
Original URL: https://github.com/carverauto/serviceradar/pull/2320#discussion_r2696279142
Original created: 2026-01-15T23:06:42Z
Original path: web-ng/lib/serviceradar_web_ng_web/plugs/api_auth.ex
Original line: 43
more tenant aware stuff that needs to get cleaned up
Imported GitHub PR review comment.
Original author: @mfreeman451
Original URL: https://github.com/carverauto/serviceradar/pull/2320#discussion_r2696279450
Original created: 2026-01-15T23:06:47Z
Original path: web-ng/lib/serviceradar_web_ng_web/plugs/tenant_context.ex
Original line: 36
more tenant aware stuff that needs to get cleaned up
Imported GitHub PR review comment.
Original author: @mfreeman451
Original URL: https://github.com/carverauto/serviceradar/pull/2320#discussion_r2696280019
Original created: 2026-01-15T23:06:56Z
Original path: web-ng/lib/serviceradar_web_ng_web/plugs/tenant_context.ex
Original line: 1
this whole file should be removed
Imported GitHub PR review comment.
Original author: @mfreeman451
Original URL: https://github.com/carverauto/serviceradar/pull/2320#discussion_r2699774933
Original created: 2026-01-16T19:50:50Z
Original path: elixir/serviceradar_agent_gateway/config/runtime.exs
Original line: 179
why do we need this anymore
Imported GitHub PR review comment.
Original author: @mfreeman451
Original URL: https://github.com/carverauto/serviceradar/pull/2320#discussion_r2699780931
Original created: 2026-01-16T19:53:20Z
Original path: elixir/serviceradar_agent_gateway/lib/serviceradar_agent_gateway/agent_gateway_server.ex
Original line: 961
why are we still using tenantresolver here
Imported GitHub PR review comment.
Original author: @mfreeman451
Original URL: https://github.com/carverauto/serviceradar/pull/2320#discussion_r2699783383
Original created: 2026-01-16T19:54:25Z
Original path: elixir/serviceradar_agent_gateway/lib/serviceradar_agent_gateway/status_processor.ex
Original line: 145
needs to be cleaned up
Imported GitHub PR comment.
Original author: @qodo-code-review[bot]
Original URL: https://github.com/carverauto/serviceradar/pull/2320#issuecomment-3762801434
Original created: 2026-01-17T06:41:41Z
CI Feedback 🧐
A test triggered by this PR failed. Here is an AI-generated analysis of the failure:
Action: build
Failed stage: Configure SRQL fixture database for tests [❌]
Failed test name: ""
Failure summary:
The action failed because a required secret/environment variable was not configured:
- The workflow
reported
SRQL_TEST_DATABASE_CA_CERT secret must be configured to verify SRQL fixture TLS.and thenexited with code 1.
- The logs show
SRQL_TEST_DATABASE_CA_CERT:was empty in the environment, so thestep that validates TLS for the SRQL test/fixture aborted the job.
Relevant error logs:
Imported GitHub PR comment.
Original author: @qodo-code-review[bot]
Original URL: https://github.com/carverauto/serviceradar/pull/2320#issuecomment-3762801436
Original created: 2026-01-17T06:41:41Z
CI Feedback 🧐
A test triggered by this PR failed. Here is an AI-generated analysis of the failure:
Action: test-go
Failed stage: Run Go Tests [❌]
Failed test name: ""
Failure summary:
The action failed during
go testbecause the build did not compile:- Compilation error in vendored
dependency
golang.org/x/crypto/chacha20poly1305:-
vendor/golang.org/x/crypto/chacha20poly1305/chacha20poly1305.go:41:5: undefined: fips140Enforced-
vendor/golang.org/x/crypto/chacha20poly1305/xchacha20poly1305.go:25:5: undefined: fips140Enforced-
As a result, the package
github.com/carverauto/serviceradar/pkg/datasvcfailed with[build failed],causing
go testto exit with code 1.Relevant error logs: