[
https://issues.apache.org/jira/browse/UNOMI-1019?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18137117#comment-18137117
]
Serge Huber commented on UNOMI-1019:
------------------------------------
Status on 2026-11-03:
Merged:
* Tracker: apiKey sent as X-Unomi-Api-Key, tested against each Unomi version:
https://github.com/apache/unomi-tracker/pull/27
* Tracker: built when installed from git, so Unomi can bundle a commit before
the 2.0.0 release: https://github.com/apache/unomi-tracker/pull/31
* Manual: https://github.com/apache/unomi/pull/925
Still open:
* Tracker README, which deployments keep the visitor profile:
https://github.com/apache/unomi-tracker/pull/38
* Unomi: bundle the tracker from its 2.0 development line:
https://github.com/apache/unomi/pull/934
To resolve once both are merged.
> Make unomi-tracker compatible with both V2/V3 and V4
> ----------------------------------------------------
>
> Key: UNOMI-1019
> URL: https://issues.apache.org/jira/browse/UNOMI-1019
> Project: Apache Unomi
> Issue Type: Improvement
> Components: unomi-tracker
> Affects Versions: unomi-tracker-1.5.0
> Reporter: Serge Huber
> Assignee: Serge Huber
> Priority: Major
> Fix For: unomi-4.0.0, unomi-tracker-2.0.0
>
> Time Spent: 0.5h
> Remaining Estimate: 0h
>
> h3. Summary
> Unomi 4 can host several separate customers (tenants) on one server, but the
> web tracker cannot say which customer a website belongs to, so it cannot be
> used with a multi-tenant Unomi 4 server. The goal is one tracker for all
> Unomi versions, chosen by configuration.
> Technical detail: Unomi 4 needs the tenant public API key in the
> X-Unomi-Api-Key header on context.json and eventcollector, unless
> compatibility mode is on.
> h3. Approach
> * New optional wemInitConfig.apiKey, sent as X-Unomi-Api-Key; without it,
> requests are unchanged. Public key only, as visitors can see it.
> * No tenant ID setting: the public key identifies the tenant.
> * Older servers ignore the header. It adds a CORS preflight per request.
> * Released as tracker 2.0.0, a drop-in for 1.x; 1.x stays for Unomi 2.x and
> 3.x, fixes only.
> h3. Changes
> * Tracker: https://github.com/apache/unomi-tracker/pull/27
> * Manual: https://github.com/apache/unomi/pull/925
> * Follow-up: update the tracker bundled in Unomi from 1.4.0 to 2.0.0.
> h3. How to test
> * Unit tests for the header, set and not set.
> * yarn test:servers against Unomi 2.x, 3.x and 4.x.
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)