Skip to content

Add caller IP recording for security-sensitive methods, logged-test m… - #5

Merged
Fayupable merged 1 commit into
mainfrom
dev/v1.3.0
Aug 14, 2026
Merged

Add caller IP recording for security-sensitive methods, logged-test m…#5
Fayupable merged 1 commit into
mainfrom
dev/v1.3.0

Conversation

@Fayupable

Copy link
Copy Markdown
Owner

…odule, and JSON emitter

  • Add @Logged(includeIp = true): records the caller's IP address alongside callerIdentity, instead of only as its fallback tier, for security-sensitive operations (login, password reset, TOTP verification, admin mutations) where IP remains valuable for audit/rate-limiting even on a failed attempt. Adds MethodInvocationEvent#callerIp(), IClientInfoPort#resolveCallerIp() (a default method, source-compatible with existing implementations), real IP resolution in SpringSecurityClientInfoAdapter/HttpRequestClientInfoAdapter, LoggedMdcKeys.CALLER_IP, callerIp output in both emitters, and IP support in logged-test's InMemoryClientInfoPort.
  • Add logged-test module: in-memory test doubles for all three output ports.
  • Add JsonInvocationEventEmitter for structured JSON log output.

Bumps version to 1.3.0.

…odule, and JSON emitter

- Add @Logged(includeIp = true): records the caller's IP address alongside
  callerIdentity, instead of only as its fallback tier, for security-sensitive
  operations (login, password reset, TOTP verification, admin mutations)
  where IP remains valuable for audit/rate-limiting even on a failed attempt.
  Adds MethodInvocationEvent#callerIp(), IClientInfoPort#resolveCallerIp()
  (a default method, source-compatible with existing implementations), real
  IP resolution in SpringSecurityClientInfoAdapter/HttpRequestClientInfoAdapter,
  LoggedMdcKeys.CALLER_IP, callerIp output in both emitters, and IP support
  in logged-test's InMemoryClientInfoPort.
- Add logged-test module: in-memory test doubles for all three output ports.
- Add JsonInvocationEventEmitter for structured JSON log output.

Bumps version to 1.3.0.
@Fayupable
Fayupable merged commit 169cb16 into main Aug 14, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant