Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sanitize user-agent in access logs #1063

Merged
merged 1 commit into from
Jan 25, 2024

Conversation

Wonshtrum
Copy link
Member

Due to how access logs are parsed inside CleverCloud, we can't have spaces in tags nor can a tag value end with a comma. This commit sanitizes the user-agent which is the only tag with client data. This is a temporary fix necessary until we make the logs binary.

Due to how access logs are parsed inside CleverCloud, we can't have
spaces in tags nor can a tag value end with a comma. This commit
sanitizes the user-agent which is the only tag with client data. This is
a temporary fix necessary until we make the logs binary.

Signed-off-by: Eloi DEMOLIS <[email protected]>
Copy link
Contributor

@Keksoj Keksoj left a comment

Choose a reason for hiding this comment

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

looks great to me. Maybe take the opportunity to take ownership of a session's elements when creating the RequestRecord that makes an access_log ?

@FlorentinDUBOIS FlorentinDUBOIS merged commit 7278c8f into main Jan 25, 2024
13 checks passed
@FlorentinDUBOIS FlorentinDUBOIS deleted the devel/edemolis/fix/access-logs-spaces branch January 25, 2024 14:53
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