Skip to content
This repository was archived by the owner on Mar 1, 2026. It is now read-only.

Fixes #4813 - Fix Jakarta REST TCK requestcontext security test failures - #4814

Merged
mnriem merged 4 commits into
piranhacloud:currentfrom
mnriem:fix/security-tck-requestcontext
Feb 28, 2026
Merged

Fixes #4813 - Fix Jakarta REST TCK requestcontext security test failures#4814
mnriem merged 4 commits into
piranhacloud:currentfrom
mnriem:fix/security-tck-requestcontext

Conversation

@mnriem

@mnriem mnriem commented Feb 28, 2026

Copy link
Copy Markdown
Collaborator

Problem

The Jakarta REST TCK requestcontext.security.JAXRSClientIT tests fail because the coreprofile extension lacks security extensions and the Arquillian container cannot seed identity store credentials.

Solution

  • Add piranha-extension-policy and piranha-extension-security-servlet to the coreprofile extension.
  • Add callerName/callerPassword/callerGroups to ManagedPiranhaContainerConfiguration to inject io.piranha.identitystore.callers into the Piranha JVM.
  • Wire callerName=j2ee, callerPassword=j2ee, callerGroups=DIRECTOR in the REST TCK arquillian.xml.

mnriem and others added 4 commits February 28, 2026 12:39
- Add piranha-extension-policy and piranha-extension-security-servlet
  to extension/coreprofile so security-constraint and login-config in
  web.xml are enforced (Basic auth, 401 challenges, principal).
- Add callerName/callerPassword/callerGroups to
  ManagedPiranhaContainerConfiguration so the Arquillian managed
  container can inject -Dio.piranha.identitystore.callers into the
  Piranha JVM, seeding the in-memory identity store.
- Wire callerName=j2ee, callerPassword=j2ee, callerGroups=DIRECTOR in
  the REST TCK arquillian.xml.
@mnriem
mnriem merged commit 829ac45 into piranhacloud:current Feb 28, 2026
6 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant