Repository navigation
Done
Labels
ecp-wp4: M4.4ELIXIR Compute Platform WP4 milestone/deliverable this issue contributes topriority: highHigh prioritystatus: in progressCurrently being worked ontype flag: breaking changeProposed change breaks current APItype: authRelated to authorization or authenticationworkload: daysLikely takes days to resolve
Milestone
Description
Part of elixir-cloud-aai/TESK#336 (the chart owns the auth.tokenClients schema; this issue is the tesk-api side). Both PRs are released together, before tesk-api 2.1.0 and the next chart.
Current behaviour
AuthorisationProperties.ServiceClients holds clientIds and one audience; ServiceClientTokenServices.java:170 and :410 check every listed client's token against that single value (or any audience with allowAnyAudience). So all service clients must carry the same audience, and a flat audience list would accept every client at every audience.
Proposal
- Per-client settings: a map from client ID to
{audiences: [...]}(room for more per-client settings later). - A token is accepted if its client claim names a listed client and its
audholds one of that client's audiences;requireAtJwt,requireClientSubject, issuer and signature checks stay unchanged. - The env/property format is this PR's choice (e.g. one JSON variable, since client IDs don't bind well to Spring map keys from env); the chart renders it (TESK#336).
- Clean break, no compatibility layer (the flat form has been out only since 2.0.0; the next chart release is breaking anyway). Upgrade notes say how to convert.
allowAnyAudience: per client (default false) or removed; decided in the PR together with TESK#336.
Acceptance criteria
- Client A's token with client B's audience is refused; each client's token with its own audience is accepted.
- A client without audiences is refused at startup (unless the PR keeps a per-client
allowAnyAudience). - Existing user-token paths unchanged.
-
ServiceClientTokenServicesTest(per-client audiences, cross-client refusal) andServiceClientAuthITcover the above. - Configuration reference and upgrade notes updated.
Long term, RFC 8693 token exchange (a token per backend audience) is the proper fix for gateways like proTES.
Metadata
Metadata
Assignees
Labels
ecp-wp4: M4.4ELIXIR Compute Platform WP4 milestone/deliverable this issue contributes topriority: highHigh prioritystatus: in progressCurrently being worked ontype flag: breaking changeProposed change breaks current APItype: authRelated to authorization or authenticationworkload: daysLikely takes days to resolve
Type
Projects
- StatusShow more project fieldsDone
Activity
build: set the 2.1.0 date and complete the notes