Skip to content

Use dashes in HTTP header names in SSL vhost config#492

Merged
ehelms merged 1 commit intotheforeman:masterfrom
ehelms:fix-httpd-headers
May 7, 2026
Merged

Use dashes in HTTP header names in SSL vhost config#492
ehelms merged 1 commit intotheforeman:masterfrom
ehelms:fix-httpd-headers

Conversation

@ehelms
Copy link
Copy Markdown
Member

@ehelms ehelms commented May 5, 2026

Why are you introducing these changes? (Problem description, related links)

Some backends reject headers with underscores before converting dashes to underscores for application processing. Use dashes in RequestHeader names to match the HTTP vhost and ensure headers pass through the full proxy chain.

Ref: theforeman/puppet-foreman@d92fea4

What are the changes introduced in this pull request?

  • Changes headers to use dashes
  • Adds test to check that headers use dashes

How to test this pull request

Steps to reproduce:

  • ./foremanctl deploy

Checklist

  • Tests added/updated (if applicable)
  • Documentation updated (if applicable)

Some backends reject headers with underscores before converting
dashes to underscores for application processing. Use dashes in
RequestHeader names to match the HTTP vhost and ensure headers
pass through the full proxy chain.

Add a test to catch underscore usage in httpd config headers.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@ehelms ehelms force-pushed the fix-httpd-headers branch from 4363d80 to c6af0cc Compare May 7, 2026 19:05
@ehelms ehelms merged commit cef4484 into theforeman:master May 7, 2026
12 checks passed
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.

2 participants