Change TO Golang 'no_auth' cfg key to 'insecure'

Project: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/commit/4ab5a3e2
Tree: 
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/tree/4ab5a3e2
Diff: 
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/diff/4ab5a3e2

Branch: refs/heads/master
Commit: 4ab5a3e2541abe19a83e32d7a86b11dacff9d996
Parents: 29c1593
Author: Robert Butts <robert.o.bu...@gmail.com>
Authored: Tue Jul 25 10:44:06 2017 -0600
Committer: Dewayne Richardson <dewr...@apache.org>
Committed: Thu Aug 10 09:46:03 2017 -0600

----------------------------------------------------------------------
 traffic_ops/traffic_ops_golang/config.go                 | 2 +-
 traffic_ops/traffic_ops_golang/routes.go                 | 2 +-
 traffic_ops/traffic_ops_golang/traffic_ops_golang.config | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/4ab5a3e2/traffic_ops/traffic_ops_golang/config.go
----------------------------------------------------------------------
diff --git a/traffic_ops/traffic_ops_golang/config.go 
b/traffic_ops/traffic_ops_golang/config.go
index 641c9f3..7595181 100644
--- a/traffic_ops/traffic_ops_golang/config.go
+++ b/traffic_ops/traffic_ops_golang/config.go
@@ -38,7 +38,7 @@ type Config struct {
        TOSecret           string   `json:"to_secret"`
        TOURLStr           string   `json:"to_url"`
        TOURL              *url.URL `json:"-"`
-       NoAuth             bool     `json:"no_auth"`
+       Insecure           bool     `json:"insecure"`
        CertPath           string   `json:"cert_path"`
        KeyPath            string   `json:"key_path"`
        LogLocationError   string   `json:"log_location_error"`

http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/4ab5a3e2/traffic_ops/traffic_ops_golang/routes.go
----------------------------------------------------------------------
diff --git a/traffic_ops/traffic_ops_golang/routes.go 
b/traffic_ops/traffic_ops_golang/routes.go
index 06f7bae..e744086 100644
--- a/traffic_ops/traffic_ops_golang/routes.go
+++ b/traffic_ops/traffic_ops_golang/routes.go
@@ -57,7 +57,7 @@ func GetRoutes(d ServerData) (map[string]RegexHandlerFunc, 
http.Handler, error)
        }
 
        return map[string]RegexHandlerFunc{
-               "api/1.2/cdns/{cdn}/configs/monitoring.json": 
wrapHeaders(wrapAuth(monitoringHandler(d.DB), d.NoAuth, d.TOSecret, 
privLevelStmt, MonitoringPrivLevel)),
+               "api/1.2/cdns/{cdn}/configs/monitoring.json": 
wrapHeaders(wrapAuth(monitoringHandler(d.DB), d.Insecure, d.TOSecret, 
privLevelStmt, MonitoringPrivLevel)),
        }, getRootHandler(d), nil
 }
 

http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/4ab5a3e2/traffic_ops/traffic_ops_golang/traffic_ops_golang.config
----------------------------------------------------------------------
diff --git a/traffic_ops/traffic_ops_golang/traffic_ops_golang.config 
b/traffic_ops/traffic_ops_golang/traffic_ops_golang.config
index 6bd9703..570b8b1 100644
--- a/traffic_ops/traffic_ops_golang/traffic_ops_golang.config
+++ b/traffic_ops/traffic_ops_golang/traffic_ops_golang.config
@@ -7,7 +7,7 @@
   "db_ssl": true,
   "to_secret": "walrus",
   "to_url": "https://trafficops.example.net:60443";,
-  "no_auth": false,
+  "insecure": false,
   "cert_path": "/opt/traffic_ops/cert",
   "key_path": "/opt/traffic_ops/key"
 }

Reply via email to