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

Add class to handle creation of certs for advisor service on localhost #474

Merged
merged 2 commits into from
Jan 24, 2025

Conversation

ehelms
Copy link
Member

@ehelms ehelms commented Jan 14, 2025

No description provided.

@@ -0,0 +1,64 @@
# Contains certs specific configurations for advisor
class certs::iop_advisor_engine (
Stdlib::Fqdn $hostname = 'localhost',
Copy link
Member

Choose a reason for hiding this comment

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

I don't like certificates for localhost. I know we have it for candlepin, but is there a way we can avoid this?

Copy link
Member

Choose a reason for hiding this comment

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

I think it's conceptually the same problem as with candlepin: we run the service on localhost only so it's not reachable via the network (without us having to manage a firewall), but that means that the cert if it should validate be for localhost.

Copy link
Member Author

Choose a reason for hiding this comment

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

We can not use SSL? :) What would you propose?

Copy link
Member

@evgeni evgeni Jan 14, 2025

Choose a reason for hiding this comment

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

I guess the only reasonable no-SSL answer are unix sockets, but I am not sure I want to dive into that direction with containers just yet

(plus, that breaks on multi-node deployments, but so does localhost 🤷 )

Copy link
Member

Choose a reason for hiding this comment

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

I do think plain text http on localhost is fine (probably also for candlepin) if you don't use client certs. You want to be sure for multi-host TLS is supported in the client libs, but that's usually not hard

Copy link
Member Author

Choose a reason for hiding this comment

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

We opted for this route for consistency with our Candlepin deployment model. And to give the option to move off localhost if we ever needed to. I am wondering if we should stick with consistency here, and aim for changing how we handle localhost services in our container deployment.

Copy link
Member

Choose a reason for hiding this comment

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

I'm 👍 for consistency

Copy link
Member

Choose a reason for hiding this comment

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

@ekohl would you be OK with this as-is for now, so we have it at least working, and then re-consider when coming closer to a real release?

manifests/iop_advisor_engine.pp Outdated Show resolved Hide resolved
@ehelms
Copy link
Member Author

ehelms commented Jan 14, 2025

Ignore AlmaLinux failures, dropping EL8 here -- #475

Signed-off-by: Eric D. Helms <ericdhelms@gmail.com>
@evgeni evgeni merged commit 363a8b1 into theforeman:master Jan 24, 2025
9 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.

3 participants