Skip to content

DAR-115 — Align Kafka configuration across kyc, thirdweb-wallet, and wallet-ledger services

Kayouh Salaheddine a demandé de fusionner fix/DAR-115-align-kafka-local-dev-config vers develop
  • Remapped Zookeeper (2181→2183) and Kafka (9092→9094) host ports in docker-compose.yml to prevent conflicts when all three local services run simultaneously.
  • Switched Kafka consumer value-deserializer to plain StringDeserializer in application-local.yml; deserialization is now handled by JsonMessageConverter with a shared ObjectMapper in KafkaConfig, consistent with the kyc and thirdweb-wallet services.
  • Added darvest.kafka.bootstrap-servers: localhost:9092 and darvest.wallet.chain-id: 80002 (Amoy testnet) to application-local.yml.
  • Disabled CORS at the service layer (AbstractHttpConfigurer::disable) and removed CorsConfig.java — CORS is delegated to the API Gateway.
  • Added FilterRegistrationBean<UserHeaderAuthenticationFilter> with setEnabled(false) to prevent the filter from running twice (as a servlet filter and inside the Spring Security chain), which was silently wiping X-User-Id authentication in local dev.
  • Broadened local-profile security permit to /api/wallet/** and /api/v1/wallet/**.
  • extractUserId in WalletController now throws InsufficientAuthenticationException (proper 401 mapping) and rejects AnonymousAuthenticationToken.
  • WalletMapper chain ID is now configurable via darvest.wallet.chain-id (default 137, overridden to 80002 locally).

Closes DAR-115

Rapports de requête de fusion