GET /api/resource now accepts CUSTOMER_USER and returns only JS_MODULE
resources for them; any other requested type, or a request without
resourceType, is rejected with 403.
GET /api/resource/{type}/{scope}/{key}/info now accepts CUSTOMER_USER;
the existing per-resource check already handles customer access.
Customer TB_RESOURCE permission checker grants generic READ to any
non-public customer user, mirroring its per-resource READ rule.
Edge 4.4.0.1 moves to license client 3.0.x, which talks /api/v2/license/*.
Restores the proxy from #4306 and forwards clusterId (required by the
portal's V2 activateInstance) and protocolVersion.
* Remove IoT Hub Dashboard item type
The IoT Hub no longer has Dashboard items, so drop the DASHBOARD item type
from the platform: install/update/checksum/delete handling and the
DashboardInstalledItemDescriptor on the backend, and the item type, the
/iot-hub/dashboards page and route, deep links, translations and styles in
the UI. Dashboards created by device packages and solution templates are
not affected.
* Keep DashboardInstalledItemDescriptor for existing installed items
Installed-item rows with a DASHBOARD descriptor may still exist on
instances that were connected to the QA Hub. Without the subtype Jackson
fails on such a row and the whole Installed items page breaks, so keep the
descriptor and the delete branch to let those rows be read and removed.
* Revert "Keep DashboardInstalledItemDescriptor for existing installed items"
This reverts commit 61246776fa. A DASHBOARD installed-item row can only
exist on instances connected to the QA Hub; production and official
releases never had Dashboard items, so the legacy descriptor is not kept.
Phase 6 of the TB AI WebSocket channel. TB talks to TB AI only over the
pooled channel: SseTbAiTransport, TbAiTransportSelector, the channel
availability back-off, the HTTP fallbacks of every operation, the
TbAiClient bean and the localhost callback-origin check are removed, along
with ai.channel.enabled and ai.channel.fallback_backoff_minutes. Channel
failures are now plain errors. Requires TB AI with api.v1 and mux.v1.
Phase 5 of the TB AI WebSocket channel, TB part. TbAiChannelPool keeps one
multiplexed channel per user and client origin on each tb-core node, with
single-flight handshakes, a node-wide cap with idle eviction and transient
overflow, idle and max-age sweeping, and transient channels for background
work. Chat turns and operations run on it as exchanges keyed by op; the
remaining TB AI calls (solution creator, chat management, remote approvals,
usage, housekeeper deletions) become typed operations with the HTTP call as
fallback. An operation is retried once only when the channel did not start
it. TB_AI_* settings are now documented under ai.* in thingsboard.yml.
- Restamp ten files whose header does not match their CE provenance:
EntityDatabaseSchemaService.java, js-resource.component.ts and
DataValidationException.java are identical to CE and take the Apache
header; the 4.3.1.6 cluster migration, TbClusterStore and their tests exist
in CE lts-4.3 and common/transport/snmp/pom.xml lost a CE dependency, so they
take the ce-modified header.
- Remove the DataValidationException.java curation: CE has had an identical
file at the same path since December 2025.
- Remove 29 curations that repeat the header the check decides by itself.
- Delete trendz-settings.component.html and comparison-keys-table.component.html
at their old locations: their components moved and no longer reference them,
and the relicensing commit left only a license header in them.
- Restamp ten files whose header does not match their CE provenance:
EntityDatabaseSchemaService.java, js-resource.component.ts and
DataValidationException.java are identical to CE and take the Apache
header; the 4.3.1.6 cluster migration, TbClusterStore and their tests exist
in CE lts-4.3 and common/transport/snmp/pom.xml lost a CE dependency, so they
take the ce-modified header.
- Remove the DataValidationException.java curation: CE has had an identical
file at the same path since December 2025.
- Remove 29 curations that repeat the header the check decides by itself.
- Delete trendz-settings.component.html and comparison-keys-table.component.html
at their old locations: their components moved and no longer reference them,
and the relicensing commit left only a license header in them.
- Restamp ten files whose header does not match their CE provenance:
EntityDatabaseSchemaService.java, js-resource.component.ts and
DataValidationException.java are identical to CE and take the Apache
header; the 4.3.1.6 cluster migration, TbClusterStore and their tests exist
in CE lts-4.3 and common/transport/snmp/pom.xml lost a CE dependency, so they
take the ce-modified header.
- Remove the DataValidationException.java curation: CE has had an identical
file at the same path since December 2025.
- Remove 29 curations that repeat the header the check decides by itself.
- Delete trendz-settings.component.html and comparison-keys-table.component.html
at their old locations: their components moved and no longer reference them,
and the relicensing commit left only a license header in them.
The on-prem token provider rejected a localhost origin on every TB AI call,
so usage info, the solution creator and the WebSocket channel failed without
a configured base URL. TB AI only calls TB back at that origin on the legacy
HTTP paths, so the check now runs only before SSE chat and the HTTP fallback
of solution and dashboard operations.
Phase 4 of the TB AI WebSocket channel. Operations run over the channel
when TB AI advertises operations.v1 and fall back to the legacy HTTP
calls otherwise. TbAiChannelAvailability shares the fallback back-off
between chat and operations; TbAiClientRequestFactory resolves the
client origin for all AI controllers.
Phase 2 of the AI WebSocket channel: ChannelTbAiTransport over TbAiChannelClient,
TbAiRequestExecutor running tb.request frames on loopback as the user, TbAiTransportSelector
with SSE fallback and back-off (TB_AI_CHANNEL_ENABLED, TB_AI_CHANNEL_FALLBACK_BACKOFF_MINUTES),
approvals over the channel via TbAiChannelRegistry, clientOrigin from SystemSecurityService.
Uses thingsboard-ai common 2.1.8-SNAPSHOT.
Phase 1 of the AI WebSocket channel: TbAiTransport, TbAiTurnContext and SseTbAiTransport,
used by DefaultAiChatService inside processStream. No behavior change.
The enrollment now collects its license key from the portal when the grant is
done, and keeps it in tb_cluster.license_secret. A claim that has nothing to
hand over yet leaves the flow for the next poll; a refused claim ends the flow
registered without a key; a transport failure is left to the existing backoff.
Addresses review feedback on the activity-state guard:
- sessionEdgeEventChecks is keyed by edgeId, so a stale disconnect callback
cancelled the check scheduled by the session that replaced it. The loop only
reschedules from inside the task, so the connected edge stopped receiving
downlinks with nothing to restart it. Cancel only when no live session holds
the edge on this node.
- Document that the EDGE_CONNECTION notification is raised from inside
pushRuleEngineMessage on this branch and is therefore suppressed together
with the DISCONNECT_EVENT.
- Pin the LAST_DISCONNECT_TIME write and the zombie compare-and-remove with
tests, both of which were previously unguarded by the suite.