admin.conf default for host value in [server] does not contain an accurate default
The admin.conf contains this section:
We tell our users that the commented out values are the defaults so I expect host to be set to '' by default. This is especially true after fixing .
In looking in pulp/client_admin/pulp/client/admin/config.py I see this code:
This causes 'host' to unexpectedly default to socket.gethostname(). I expect defaults are not looked up dynamically at runtime, and that the values commented out in the admin.conf file to be the actual default. I think using localhost as a static default, and removing the socket.gethostname() would be the best.
+ This bug was cloned from Bugzilla Bug #1165346 +
#3 Updated by bmbouter over 6 years ago
Handling this in docs makes it consistent so that will resolve it. To satisfy my own curiosity, why is FQDN a better choice than localhost? Is it because apache defaults to FQDN and we want the SSL to verify by hostname?
+ This comment was cloned from Bugzilla #1165346 comment 3 +
#4 Updated by rbarlow over 6 years ago
By default, the installation of the Apache package will generate a self-signed certificate that uses the FQDN as the CN. Using localhost will cause an SSL error even if the user sets verify_ssl to False since the CN won't match the name of the requested host. Also, nobody would really ever make an SSL certificate that has "localhost" as the CN, so there's not a real world case where that makes a good default.
+ This comment was cloned from Bugzilla #1165346 comment 4 +
Please register to edit this issue