Robert Levas created AMBARI-17908:
-------------------------------------

             Summary: Ensure the supplied hostname is a valid hostname when 
signing agent-side host certs
                 Key: AMBARI-17908
                 URL: https://issues.apache.org/jira/browse/AMBARI-17908
             Project: Ambari
          Issue Type: Bug
          Components: ambari-server
    Affects Versions: 1.2.0
            Reporter: Robert Levas
            Assignee: Robert Levas
             Fix For: 2.4.0


Ensure the supplied hostname is a valid hostname when signing agent-side host 
certs via the following REST API call:

{noformat}
POST /certs/:HOSTNAME
{noformat}

This is a validity check to make sure only valid hostname are handled. 

The following industry accepted regular expression maybe use to validate 
hostnames: 
{noformat}
^(?:(?:[a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9\-\_]*[a-zA-Z0-9])\.)*(?:[A-Za-z0-9]|[A-Za-z0-9][A-Za-z0-9\-\_]*[A-Za-z0-9])$
{noformat}





--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to