Fix review comments.

This commit is contained in:
Mariano Cano 2021-04-26 18:45:46 -07:00
parent 50b9aaec57
commit 1328aa3e47
2 changed files with 5 additions and 5 deletions

View file

@ -186,7 +186,7 @@ func (i *Identity) Validate() error {
return fileExists(i.Key) return fileExists(i.Key)
case TunnelTLS: case TunnelTLS:
if i.Host == "" { if i.Host == "" {
return errors.New("tunnel.crt cannot be empty") return errors.New("tunnel.host cannot be empty")
} }
if i.Certificate != "" { if i.Certificate != "" {
if err := fileExists(i.Certificate); err != nil { if err := fileExists(i.Certificate); err != nil {

View file

@ -23,10 +23,10 @@ import (
var mTLSDialContext func() func(ctx context.Context, network, address string) (net.Conn, error) var mTLSDialContext func() func(ctx context.Context, network, address string) (net.Conn, error)
func init() { func init() {
// STEP_TLS_TUNNEL is an environment that can be set to do an TLS over // STEP_TLS_TUNNEL is an environment variable that can be set to do an TLS
// (m)TLS tunnel to step-ca using identity-like credentials. The value is a // over (m)TLS tunnel to step-ca using identity-like credentials. The value
// path to a json file with the tunnel host, certificate, key and root used // is a path to a json file with the tunnel host, certificate, key and root
// to create the (m)TLS tunnel. // used to create the (m)TLS tunnel.
// //
// The configuration should look like: // The configuration should look like:
// { // {