You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@unomi.apache.org by "sergehuber (via GitHub)" <gi...@apache.org> on 2026/07/13 07:21:18 UTC

[PR] [UNOMI-875] Fix V2 compat Karaf admin permissions on private endpoints [unomi]

sergehuber opened a new pull request, #822:
URL: https://github.com/apache/unomi/pull/822

   ## Plain-language summary
   
   In V2 compatibility mode, admin users who sign in with Karaf credentials could not use some private REST endpoints. For example, `GET /cxs/privacy/info` returned a server error instead of server version information. This blocked health checks and admin tools during migration from Unomi 2.x to 3.1.
   
   This PR fixes that auth path. V3 authentication behavior is not changed.
   
   ## What changed
   
   * In V2 compatibility mode, merge Karaf JAAS principals with tenant admin roles for the configured default tenant.
   * Build the execution context from the merged subject so AGGREGATE and other tenant permissions apply.
   * Add an integration test for `GET /cxs/privacy/info` with Karaf auth in V2 compatibility mode.
   
   ## Test plan
   
   - [x] `V2CompatibilityModeIT` passes locally (including `testV2CompatibilityModeSwitch` and privacy/info check in `testV2ModeBehavior`)
   - [ ] `mvn clean install -P integration-tests` on CI
   
   ## References
   
   UNOMI-875, UNOMI-904


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@unomi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [UNOMI-962] Harden 3.1 REST API: V2 compat auth, missing-resource 404s, and export validation [unomi]

Posted by "sergehuber (via GitHub)" <gi...@apache.org>.
sergehuber closed pull request #822: [UNOMI-962] Harden 3.1 REST API: V2 compat auth, missing-resource 404s, and export validation
URL: https://github.com/apache/unomi/pull/822


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@unomi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [UNOMI-962] Harden 3.1 REST API: V2 compat auth, missing-resource 404s, and export validation [unomi]

Posted by "sergehuber (via GitHub)" <gi...@apache.org>.
sergehuber commented on PR #822:
URL: https://github.com/apache/unomi/pull/822#issuecomment-4957661721

   Superseded by #823 after branch rename to `fix/UNOMI-962-rest-api-hardening` and widened scope for UNOMI-962.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@unomi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org