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

create ssl cert per vhost, not one monster #2129

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

evgeni
Copy link
Member

@evgeni evgeni commented Sep 18, 2024

No description provided.

@evgeni evgeni marked this pull request as ready for review September 18, 2024 09:40
Copy link
Member

@ekohl ekohl left a comment

Choose a reason for hiding this comment

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

tl;dr: 👍 on the concept, some implementation notes inline.

I recently read there's some benefit in having all names on a certificate so browsers can reuse connections, but given we're mostly behind a CDN I think the benefit of that is really limited and the operational simplicity of one cert per vhost is way more important.

In the installer we use datacat to gather all values so you could do it that way per host, but it's complex. Also, the module is unmaintained and collections is a maintained alternative.

@@ -15,37 +15,6 @@
letsencrypt => $https,
Copy link
Member

Choose a reason for hiding this comment

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

I'd prefer to drop this parameter and move the inclusion into the vhost:

if $letsencrypt {
include web::letsencrypt
}

Copy link
Member Author

Choose a reason for hiding this comment

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

That will break using web::base with HTTPS directly, like it's done by redmine and profiles::jenkins::controller, as those do not use web::vhost.

Copy link
Member

Choose a reason for hiding this comment

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

Can we modify those to also include the base? I think b31f6de should work and makes it all more consistent.

@@ -52,6 +52,12 @@
}

if $web::https {
Copy link
Member

Choose a reason for hiding this comment

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

As noted above, let's include the prerequisite here

Suggested change
if $web::https {
if $web::https {
include web::letsencrypt

@ehelms
Copy link
Member

ehelms commented Sep 18, 2024

This solution works for me as an approach. Thanks for taking a look.

@@ -15,37 +15,6 @@
letsencrypt => $https,
}

if $https {
$letsencypt_domain = 'theforeman.org'
Copy link
Member

Choose a reason for hiding this comment

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

Looks like there was a typo here, but at least it was used consistently.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants