Skip to content

ZOOKEEPER-5082: Remove special characters from audit logs - #2448

Merged
anmolnar merged 3 commits into
apache:masterfrom
anmolnar:ZOOKEEPER-5082
Sep 1, 2026
Merged

ZOOKEEPER-5082: Remove special characters from audit logs#2448
anmolnar merged 3 commits into
apache:masterfrom
anmolnar:ZOOKEEPER-5082

Conversation

@anmolnar

@anmolnar anmolnar commented Aug 31, 2026

Copy link
Copy Markdown
Contributor

@tisonkun tisonkun left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I must lose some context but why whitespace characters be sensitive or should be removed from the audit log?

@anmolnar

anmolnar commented Aug 31, 2026

Copy link
Copy Markdown
Contributor Author

I must lose some context but why whitespace characters be sensitive or should be removed from the audit log?

It gives ability to the client to inject fake lines to the audit log. e.g. Add a '\n' to value and insert your forged line after it which will appear as a valid entry.

See the attached Jira tickets for more context.

@anmolnar

Copy link
Copy Markdown
Contributor Author

Added a commit to consolidate with what we already have in EnsembleAuthenticationProvider.

@tisonkun tisonkun left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks!

@phunt phunt left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

lgtm +1

@PDavid PDavid left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Many thanks for fixing this. 👍

@anmolnar
anmolnar merged commit e4f0cd4 into apache:master Sep 1, 2026
17 checks passed
asf-gitbox-commits pushed a commit that referenced this pull request Sep 1, 2026
Reviewers: tisonkun, phunt, PDavid
Author: anmolnar
Closes #2448 from anmolnar/ZOOKEEPER-5082

(cherry picked from commit e4f0cd4)
Signed-off-by: Andor Molnar <andor@cloudera.com>
asf-gitbox-commits pushed a commit that referenced this pull request Sep 1, 2026
Reviewers: tisonkun, phunt, PDavid
Author: anmolnar
Closes #2448 from anmolnar/ZOOKEEPER-5082

(cherry picked from commit e4f0cd4)
Signed-off-by: Andor Molnar <andor@cloudera.com>
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.

4 participants