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

Fixes #29664 - Change default Candlepin port to 23443 #156

Closed
wants to merge 1 commit into from

Conversation

ehelms
Copy link
Member

@ehelms ehelms commented Jun 5, 2020

No description provided.

@evgeni
Copy link
Member

evgeni commented Jun 5, 2020

According to IANA 9443 is "Tungsten HTTPS". I'd prefer if we'd use an unassigned port (or get one assigned? ;))

@ehelms
Copy link
Member Author

ehelms commented Jun 5, 2020

Every port has somebody using it. I'm open to suggestions. My goal is just move it off of 8443.

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.

I don't really see the benefit of this. IMHO the katello change is sufficient. If anything, the puppet-katello change should be Fixes and this a Refs at most.

@ehelms
Copy link
Member Author

ehelms commented Jun 5, 2020

I can flip the refs/fixes. The biggest benefit to this is reducing confusion when someone comes to debug an issue and sees conflicting data. Aligning the defaults helps.

@ekohl
Copy link
Member

ekohl commented Jun 5, 2020

There's some value in that, but I always consider changing defaults a breaking change which has a lot of churn.

@ehelms
Copy link
Member Author

ehelms commented Jun 5, 2020

I'll take churn over confusion :) We just need to label this a breaking change? And then merge and do a release and update puppet-katello metadata?

@evgeni
Copy link
Member

evgeni commented Jun 5, 2020

Every port has somebody using it. I'm open to suggestions. My goal is just move it off of 8443.

Well, yeah, but the IANA has a list of users and IMHO we should try not to conflict with that list. How does 23443 sound to you? That's unassigned.

@ekohl
Copy link
Member

ekohl commented Jun 5, 2020

I'll take churn over confusion :) We just need to label this a breaking change? And then merge and do a release and update puppet-katello metadata?

Yes.

@ekohl
Copy link
Member

ekohl commented Jun 5, 2020

Since we have the discussion about the exact ports, cc @lzap for the SELinux policy. Will that need a change?

@ehelms
Copy link
Member Author

ehelms commented Jun 5, 2020

23443 works for me, the right amount of 3's and 4's.

@ekohl
Copy link
Member

ekohl commented Jun 5, 2020

An additional benefit is that it's harder to fat finger 8443 and 23443 than 8443 and 9443.

@ehelms ehelms changed the title Fixes #29664 - Change default Candlepin port to 9443 Fixes #29664 - Change default Candlepin port to 23443 Jun 9, 2020
Copy link
Member

@evgeni evgeni left a comment

Choose a reason for hiding this comment

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

ACK

SElinux changes are required, so probably should't be merged until then

@lzap
Copy link
Member

lzap commented Jun 10, 2020

Lucky you.

 semanage port -l | grep 23443

Not used. SELinux changes:

  • You either ask Candlepin devs to define this port in their policy.
  • Or the port must be added into katello-selinux and assigned in katello-selinux-enabled script.

@evgeni
Copy link
Member

evgeni commented Jun 10, 2020

Given we diverge from candlepin defaults here, k-selinux feels more appropriate?

@lzap
Copy link
Member

lzap commented Jun 10, 2020

You know what, here you are:

theforeman/katello-selinux#23

In exchange, please file a PR into https://github.com/theforeman/foreman-documentation there might be some places which need a change:

[lzap@box guides]$ ag 8443
doc-Provisioning_Guide/topics/Introduction.adoc
66:If you use the discovery service, {Project} automatically detects the MAC address of the new host and restarts the host after you submit a request. Note that TCP port 8443 must be reachable by the {SmartProxy} to which the host is attached for {Project} to restart the host.

common/modules/ref_capsule-ports-and-firewalls-requirements.adoc
66:|8443 |TCP |HTTPS |Subscription Management Services and Telemetry Services
84:| 8443 | TCP |HTTP | {SmartProxy} to Client "reboot" command to a discovered host during provisioning (Optional)

common/modules/proc_enabling-connections-to-capsule.adoc
20:--add-port="8443/tcp" --add-port="9090/tcp"

common/attributes.adoc
67::smartproxy_port: 8443
159::smartproxy_port: 8443

@ehelms ehelms closed this Jun 30, 2020
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.

5 participants