Skip to content

Conversation

@evgeni
Copy link
Member

@evgeni evgeni commented Feb 19, 2025

underscores are not allowed in HTTP headers and some backends reject
headers using underscores before converting incoming dashes to
underscores to pass to the app

underscores are not allowed in HTTP headers and some backends reject
headers using underscores before converting incoming dashes to
underscores to pass to the app
'set SSL_CLIENT_S_DN "%{SSL_CLIENT_S_DN}s"',
'set SSL_CLIENT_CERT "%{SSL_CLIENT_CERT}s"',
'set SSL_CLIENT_VERIFY "%{SSL_CLIENT_VERIFY}s"',
'set X-FORWARDED-PROTO "https"',
Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Member Author

Choose a reason for hiding this comment

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

No, it will make it work!

My-Cool-Header gets translated to HTTP_MY_COOL_HEADER by gunicorn. It's just in the past it also allowed My_Cool_Header to become HTTP_MY_COOL_HEADER (you remember, huh?) and this used to work for us, and now it doesn't anymore.

Copy link
Member Author

Choose a reason for hiding this comment

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

Also, puppet-pulpcore should really not depend on puppet-foreman setting things up -- it can be deployed standalone after all :)

Copy link
Member

Choose a reason for hiding this comment

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

Ok, but I don't see us setting it in puppet-pulpcore nor puppet-foreman_proxy_content so on content proxies it's actually broken as well. Just in a different way.

Copy link
Member

Choose a reason for hiding this comment

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

I see you came to the same conclusion.

Copy link
Member Author

Choose a reason for hiding this comment

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

@ekohl ekohl merged commit d92fea4 into master Feb 20, 2025
13 checks passed
@ekohl ekohl deleted the http-headers branch February 20, 2025 15:25
@ekohl ekohl added the Bug label May 8, 2025
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.

3 participants