diff --git a/agent/consul/acl_endpoint.go b/agent/consul/acl_endpoint.go index 6f13909a8c90..bf0c899210a7 100644 --- a/agent/consul/acl_endpoint.go +++ b/agent/consul/acl_endpoint.go @@ -28,11 +28,11 @@ var validPolicyName = regexp.MustCompile(`^[A-Za-z0-9\-_]{1,128}$`) const ( // maxTokenExpirationDuration is the maximum difference allowed between - // ACLToken CreateTime and ExpirationTime values. + // ACLToken CreateTime and ExpirationTime values if ExpirationTime is set. maxTokenExpirationDuration = 24 * time.Hour // minTokenExpirationDuration is the minimum difference allowed between - // ACLToken CreateTime and ExpirationTime values. + // ACLToken CreateTime and ExpirationTime values if ExpirationTime is set. minTokenExpirationDuration = 1 * time.Minute )