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

[Backport 7.57.x] [APM] Normalize X-Datadog-Container-Tags header #28699

Merged
merged 1 commit into from
Aug 23, 2024

Conversation

agent-platform-auto-pr[bot]
Copy link
Contributor

Backport 296ae23 from #28662.


HTTP header values cannot contain line breaks. This PR ensures that if Container Tags contain line breaks, the value is sanitized to replace those line breaks with underscores. It would otherwise result in an invalid header/request.

What does this PR do?

This is a fix for https://datadoghq.atlassian.net/browse/APMS-13035

HTTP header values cannot contain line breaks. This PR ensures that if Container Tags contain line breaks, the value is sanitized to replace those line breaks with underscores. It would otherwise result in an invalid header/request.

Motivation

https://datadoghq.atlassian.net/browse/APMS-13035

Additional Notes

Possible Drawbacks / Trade-offs

Describe how to test/QA your changes

@agent-platform-auto-pr agent-platform-auto-pr bot requested a review from a team as a code owner August 23, 2024 11:12
@agent-platform-auto-pr agent-platform-auto-pr bot added team/agent-apm trace-agent qa/done Skip QA week as QA was done before merge and regressions are covered by tests backport bot labels Aug 23, 2024
@FlorentClarret
Copy link
Member

/merge

@dd-devflow
Copy link

dd-devflow bot commented Aug 23, 2024

🚂 MergeQueue: pull request added to the queue

The median merge time in 7.57.x is 29m.

Use /merge -c to cancel this operation!

@pr-commenter
Copy link

pr-commenter bot commented Aug 23, 2024

Test changes on VM

Use this command from test-infra-definitions to manually test this PR changes on a VM:

inv create-vm --pipeline-id=42669564 --os-family=ubuntu

Note: This applies to commit cbd4830

@dd-mergequeue dd-mergequeue bot merged commit 150c5c7 into 7.57.x Aug 23, 2024
225 of 237 checks passed
@dd-mergequeue dd-mergequeue bot deleted the backport-28662-to-7.57.x branch August 23, 2024 11:46
@github-actions github-actions bot added this to the 7.57.0 milestone Aug 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport bot changelog/no-changelog qa/done Skip QA week as QA was done before merge and regressions are covered by tests team/agent-apm trace-agent
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants