[
https://issues.apache.org/jira/browse/AMBARI-17908?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Robert Levas updated AMBARI-17908:
----------------------------------
Attachment: AMBARI-17908_trunk_01.patch
AMBARI-17908_branch-2.4_01.patch
> 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
>
> Attachments: AMBARI-17908_branch-2.4_01.patch,
> AMBARI-17908_trunk_01.patch
>
>
> 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)