fix: local sandbox bring-up — DC↔AS introspection alignment + TP atomMarshaller (#146)#170
Merged
dfcoffin merged 1 commit intoJun 7, 2026
Conversation
…Marshaller bean
Surfaced by manually launching all three servers (AS+DC+TP) against a local MySQL.
1. DC↔AS opaque-token introspection (dev): DC defaulted to introspect at :8080 with a
`datacustodian` client that wasn't seeded on the AS → Connection refused → every customer/
admin token 401'd at the DC.
- AS: seed a dedicated `datacustodian`/`{noop}datacustodian-secret` introspection client
(client_secret_basic) — matches DC's default introspection client-id/secret so the sandbox
introspects out of the box. (Bumped MySqlTestcontainersIntegrationTest seeded-client count
5 -> 6.)
- DC application-dev-mysql.yml: point issuer-uri + introspection-endpoint at the local AS :9999.
Verified end-to-end: token mint -> introspection -> DC authorizes (request reaches the
controller; the subsequent 500 is the separate raw-List marshalling bug the #119 E-phase fixes).
2. TP #146: define the missing `atomMarshaller` Jaxb2Marshaller bean
(JaxbMarshallingConfiguration, scanning the common DTO/Atom packages) so the TP resource-fetch
layer wires. TP advances past this bean; full TP boot remains blocked on the deeper #146 chain
(the custom `ResourceRepository` interface has no implementation) — out of scope here.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Surfaced by manually launching all three servers (AS + DC + TP) against a local MySQL (the "test all three servers" exercise). Two dev-bring-up blockers fixed; findings recorded.
1. DC↔AS opaque-token introspection (dev was broken)
DC defaulted to introspect at
http://localhost:8080with clientdatacustodian/datacustodian-secret— but the AS runs on :9999 and had nodatacustodianclient seeded →Connection refused→ every token 401'd at the DC.datacustodian/{noop}datacustodian-secretintrospection client (client_secret_basic) — a confidential client any of whose role is just to let the DC resource-server introspect; matches DC's default introspection client-id/secret so the sandbox works out of the box. Seeded-client assertion inMySqlTestcontainersIntegrationTestbumped 5→6.application-dev-mysql.yml: pointissuer-uri+introspection-endpointat the local AS:9999.client_credentialstoken mint →/oauth2/introspect(active:true) → DC authorizes the request (reaches the controller). The subsequent 500 is a separate pre-existing bug — collection controllers marshal a rawListinstead of an Atom<feed>— which the Remediation: ESPI REST controller modernization (post-#116) #119 E-phase entry/feed assembly fixes.2. TP #146 — missing
atomMarshallerbeanResourceRESTRepositoryImplrequires aJaxb2Marshaller @Qualifier("atomMarshaller")that didn't exist → TPAPPLICATION FAILED TO START. AddedJaxbMarshallingConfigurationdefining it (scanning the sharedcommon.domain/common.dtopackages, same context the DC marshaller uses). TP now advances past this bean.Full TP boot remains blocked on the deeper #146 chain — the next gap is the custom
ResourceRepositoryinterface, which has no implementation anywhere (the resource-fetch layer was never built). That's substantive TP work ("TP last") and out of scope here; documented on #146.Bring-up status after this PR
No production behavior change (DC change is dev-profile only; AS adds one seeded client; TP adds a bean). TP has no
@SpringBootTestcontext test (its integration test's@SpringBootTestis commented out), so the new bean has no test impact.🤖 Generated with Claude Code