Skip to content

[RBSALSIS-697]: ALS NG CAP Java Plugin - Audit Logging for Support User Impersonation - #131

Merged
mtsvetanov071 merged 14 commits into
mainfrom
RBSALSIS-697
Aug 12, 2026
Merged

[RBSALSIS-697]: ALS NG CAP Java Plugin - Audit Logging for Support User Impersonation#131
mtsvetanov071 merged 14 commits into
mainfrom
RBSALSIS-697

Conversation

@georgi-shakev

Copy link
Copy Markdown
Collaborator

No description provided.

@hyperspace-pr-bot hyperspace-pr-bot Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The PR introduces v2 audit event format support with SAP support user impersonation context. The code is generally well-structured, but there are a few correctness issues: formatEventTypeToV2 can throw StringIndexOutOfBoundsException on short/empty event types, createGeneralEventDataNode can have framework-set fields silently overwritten by caller-supplied event data, and the test schema cache uses a non-thread-safe HashMap. The unnecessary two-line variable split in AuditLogNGCommunicator is also flagged for clarity.

PR Bot Information

Version: 1.29.2

  • LLM: anthropic--claude-4.6-sonnet
  • Experiment Variant: control
  • Event Trigger: issue_comment.created
  • File Content Strategy: Full file content
  • Correlation ID: f05052e0-89c3-11f1-9c72-3a6f8b5c94ed

@hyperspace-pr-bot hyperspace-pr-bot Bot deleted a comment from georgi-shakev Jul 27, 2026

@hyperspace-pr-bot hyperspace-pr-bot Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The PR introduces v2 audit logging with support-user impersonation, v2 CloudEvents envelope format, and a restructured JSON payload. The code is generally well-structured, but please address the previously raised issues — particularly the setAll field-overwrite bug in createGeneralEventDataNode, the StringIndexOutOfBoundsException in formatEventTypeToV2 for short strings, the silent "null" tenant fallback, and the HashMap thread-safety concern in the test schema cache.

PR Bot Information

Version: 1.29.18

  • LLM: anthropic--claude-4.6-sonnet
  • Event Trigger: issue_comment.created
  • Correlation ID: 04058e30-9519-11f1-9f52-441fea971bca
  • File Content Strategy: Full file content

@hyperspace-pr-bot hyperspace-pr-bot Bot deleted a comment from mtsvetanov071 Aug 11, 2026
mtsvetanov071
mtsvetanov071 previously approved these changes Aug 11, 2026

@StefanHenke StefanHenke left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm for AdminAs from a CAP perspective

@mtsvetanov071
mtsvetanov071 merged commit fc30ad2 into main Aug 12, 2026
4 checks passed
@mtsvetanov071
mtsvetanov071 deleted the RBSALSIS-697 branch August 12, 2026 14:45
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.

3 participants