|
@@ -178,7 +178,7 @@ func Authorize(
|
|
// check if host instead of user
|
|
// check if host instead of user
|
|
if hostAllowed {
|
|
if hostAllowed {
|
|
// TODO --- should ensure that node is only operating on itself
|
|
// TODO --- should ensure that node is only operating on itself
|
|
- if hostID, macAddr, _, err := logic.VerifyHostToken(authToken); err == nil && macAddr != "" {
|
|
|
|
|
|
+ if hostID, _, _, err := logic.VerifyHostToken(authToken); err == nil {
|
|
r.Header.Set(hostIDHeader, hostID)
|
|
r.Header.Set(hostIDHeader, hostID)
|
|
// this indicates request is from a node
|
|
// this indicates request is from a node
|
|
// used for failover - if a getNode comes from node, this will trigger a metrics wipe
|
|
// used for failover - if a getNode comes from node, this will trigger a metrics wipe
|