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

HTTPD instrumentation: Safe modification of httpd.conf #3395

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

CostisC
Copy link

@CostisC CostisC commented Oct 26, 2024

Description:
The Include /usr/local/apache2/conf/opentemetry_agent.conf may be appended on the same line with the last httpd.conf statement, if there is not a blank last line in httpd.conf. This results in a corrupted httpd configuration, and the service will not start.

It is safer that an empty line comes before the addition of Include ...opentemetry_agent.conf, as a protection measure against such cases.

Link to tracking Issue(s): N/A

Testing: Change httpd.conf to not have an blank last line, and then restart the instrumented httpd pod. It fails to start up.

Documentation: N/A

@CostisC CostisC requested a review from a team as a code owner October 26, 2024 16:11
Copy link

linux-foundation-easycla bot commented Oct 26, 2024

CLA Signed

The committers listed above are authorized under a signed CLA.

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