From c4b362d5d27bbf6e14bd78df33944a0d0d209654 Mon Sep 17 00:00:00 2001 From: Nathan Zadoks Date: Tue, 17 May 2016 13:16:33 -0400 Subject: [PATCH] Parse ACL tokens for the catalog register/deregister endpoints Fix #1738 --- command/agent/catalog_endpoint.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/command/agent/catalog_endpoint.go b/command/agent/catalog_endpoint.go index 3a5bd98134..e8df2ee17b 100644 --- a/command/agent/catalog_endpoint.go +++ b/command/agent/catalog_endpoint.go @@ -19,6 +19,7 @@ func (s *HTTPServer) CatalogRegister(resp http.ResponseWriter, req *http.Request if args.Datacenter == "" { args.Datacenter = s.agent.config.Datacenter } + s.parseToken(req, &args.Token) // Forward to the servers var out struct{} @@ -40,6 +41,7 @@ func (s *HTTPServer) CatalogDeregister(resp http.ResponseWriter, req *http.Reque if args.Datacenter == "" { args.Datacenter = s.agent.config.Datacenter } + s.parseToken(req, &args.Token) // Forward to the servers var out struct{}