Skip to content

Remove mod_log_forensic from apache::default_mods (#2573) - #2601

Merged
span786 merged 1 commit into
puppetlabs:mainfrom
stdietrich:rm_mod_log_forensic
Oct 26, 2026
Merged

span786 merged 1 commit into
puppetlabs:mainfrom
stdietrich:rm_mod_log_forensic

Conversation

@stdietrich

@stdietrich stdietrich commented Jul 25, 2025 •

Copy link
Copy Markdown
Contributor

Summary

mod_log_forensic should not be included by default, as the module has security implications and might leak sensitive information from headers incl. passwords.

Upstream documentation also warns about this:
https://httpd.apache.org/docs/2.4/mod/mod_log_forensic.html#security

Additional Context

The default installation through this module should be secure, mod_log_forensics weakens this.

Related Issues (if any)

Fixes #2573

Checklist

  • 🟢 Spec tests.
  • 🟢 Acceptance tests.
  • Manually verified. (For example puppet apply)

@stdietrich
stdietrich requested review from a team, bastelfreak, ekohl and smortex as code owners July 25, 2025 19:19
@CLAassistant

CLAassistant commented Jul 25, 2025 •

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@TheMeier

Copy link
Copy Markdown

Wa added in stdietrich@0f06f1b

@stdietrich
stdietrich force-pushed the rm_mod_log_forensic branch from 6b11236 to c708877 Compare May 5, 2026 12:58
@stdietrich
stdietrich force-pushed the rm_mod_log_forensic branch from c708877 to 81c3eb2 Compare June 9, 2026 19:43
@stdietrich

Copy link
Copy Markdown
Contributor Author

@SugatD @skyamgarp: As you've merged & reviewed some code recently, any chance to get this merged? As outlined in #2573, this module has security implications and the reason for adding it was never explained.

@jst-cyr

jst-cyr commented Jun 10, 2026

Copy link
Copy Markdown
Member

Thank you for flagging this @stdietrich . I'm going to add this to my list of PRs to review with the engineering team.

@SugatD

SugatD commented Jun 11, 2026

Copy link
Copy Markdown
Contributor

Created a CI test PR for this change: #2634

@jst-cyr

jst-cyr commented Jul 27, 2026

Copy link
Copy Markdown
Member

@SugatD : Any update on results of the acceptance testing?

@jst-cyr
jst-cyr force-pushed the rm_mod_log_forensic branch from 81c3eb2 to 076fc72 Compare August 25, 2026 22:00
@jst-cyr

jst-cyr commented Aug 25, 2026 •

Copy link
Copy Markdown
Member

Acceptance Test Results: https://github.com/puppetlabs/puppetlabs-apache/actions/runs/32885615288?pr=2634

I have rebased this PR and the acceptance tests have completed. Mostly green, all failures in PR acceptance testing match existing failures in the Nightly build against main.

  • SLES-15: pre-existing mod_ssl/apache2ctl config failure on main, same as nightly.
  • Debian-13: pre-existing acceptance test failures on main, same as nightly.
  • SLES-12: pre-existing provisioning/SSH connectivity flakiness on main, same as nightly.

So testing looks pretty solid. Next step is engineering review of the changes.

@jst-cyr
jst-cyr force-pushed the rm_mod_log_forensic branch from 076fc72 to 4bdbc0b Compare September 23, 2026 15:35
@jst-cyr
jst-cyr force-pushed the rm_mod_log_forensic branch from 4bdbc0b to 717b8f4 Compare October 20, 2026 12:39
@jst-cyr

jst-cyr commented Oct 20, 2026

Copy link
Copy Markdown
Member

Rebasing and will re-run the acceptance tests against latest from main.

@jst-cyr

jst-cyr commented Oct 20, 2026

Copy link
Copy Markdown
Member

A CI test run for this PR has been created: #2658

@jst-cyr

jst-cyr commented Oct 20, 2026

Copy link
Copy Markdown
Member

Acceptance Test Results: https://github.com/puppetlabs/puppetlabs-apache/actions/runs/39425014213?pr=2658

All tests are green! ✅ Still requires an engineering review.

mod_log_forensic should not be included by default, as the module has
security implications and might leak sensitive information from headers
incl. passwords.

Upstream documentation also warns about this:
https://httpd.apache.org/docs/2.4/mod/mod_log_forensic.html#security
@span786
span786 force-pushed the rm_mod_log_forensic branch from 717b8f4 to ad370f8 Compare October 26, 2026 18:09
@span786
span786 merged commit 77765a9 into puppetlabs:main Oct 26, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

forensics module should not installed by default

7 participants