DAR-115 — Align Kafka configuration across kyc, thirdweb-wallet, and wallet-ledger services
- Remapped Zookeeper (
2181→2183) and Kafka (9092→9094) host ports indocker-compose.ymlto prevent conflicts when all three local services run simultaneously. - Switched Kafka consumer
value-deserializerto plainStringDeserializerinapplication-local.yml; deserialization is now handled byJsonMessageConverterwith a sharedObjectMapperinKafkaConfig, consistent with the kyc and thirdweb-wallet services. - Added
darvest.kafka.bootstrap-servers: localhost:9092anddarvest.wallet.chain-id: 80002(Amoy testnet) toapplication-local.yml. - Disabled CORS at the service layer (
AbstractHttpConfigurer::disable) and removedCorsConfig.java— CORS is delegated to the API Gateway. - Added
FilterRegistrationBean<UserHeaderAuthenticationFilter>withsetEnabled(false)to prevent the filter from running twice (as a servlet filter and inside the Spring Security chain), which was silently wipingX-User-Idauthentication in local dev. - Broadened local-profile security permit to
/api/wallet/**and/api/v1/wallet/**. -
extractUserIdinWalletControllernow throwsInsufficientAuthenticationException(proper 401 mapping) and rejectsAnonymousAuthenticationToken. -
WalletMapperchain ID is now configurable viadarvest.wallet.chain-id(default137, overridden to80002locally).
Closes DAR-115