Project

Profile

Help

Issue #926

closed

default value of server_name config is inconsistent between systems

Added by dkliban@redhat.com over 9 years ago. Updated over 5 years ago.

Status:
CLOSED - WONTFIX
Priority:
High
Assignee:
-
Category:
-
Sprint/Milestone:
-
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version:
Platform Release:
2.7.2
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Easy Fix, Pulp 2
Sprint:
Quarter:

Description

As you can see here [0] the default value for server_name is generated using socket module.

socket.gethostname()

It has come to my attention that the value returned by the above code could sometimes be a short hostname or an FQDN. In order to ensure consistency we should start using:

socket.getfqdn()

We should also change this line [1] in pulp-get-ca-certificate to:

CN=`hostname --fqdn`

[0] https://github.com/pulp/pulp/blob/master/server/pulp/server/config.py#L74
[1] https://github.com/pulp/pulp/blob/master/server/bin/pulp-gen-ca-certificate#L29

Also available in: Atom PDF