From 955405d6aa7210982a79b9a9027df7646408e30d Mon Sep 17 00:00:00 2001 From: Mariano Cano Date: Fri, 8 Mar 2019 18:09:35 -0800 Subject: [PATCH] Add some comments added to master. --- authority/provisioner/sign_options.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/authority/provisioner/sign_options.go b/authority/provisioner/sign_options.go index d3448ef8..9f3f3efd 100644 --- a/authority/provisioner/sign_options.go +++ b/authority/provisioner/sign_options.go @@ -98,7 +98,8 @@ func (v commonNameValidator) Valid(req *x509.CertificateRequest) error { // dnsNamesValidator validates the DNS names SAN of a certificate request. type dnsNamesValidator []string -// Valid checks that certificate request DNSNames matches the one configured. +// Valid checks that certificate request DNS Names match those configured in +// the bootstrap (token) flow. func (v dnsNamesValidator) Valid(req *x509.CertificateRequest) error { want := make(map[string]bool) for _, s := range v { @@ -117,7 +118,8 @@ func (v dnsNamesValidator) Valid(req *x509.CertificateRequest) error { // ipAddressesValidator validates the IP addresses SAN of a certificate request. type ipAddressesValidator []net.IP -// Valid checks that certificate request IPAddresses matches the one configured. +// Valid checks that certificate request IP Addresses match those configured in +// the bootstrap (token) flow. func (v ipAddressesValidator) Valid(req *x509.CertificateRequest) error { want := make(map[string]bool) for _, ip := range v {