feat: configure ACL policies based on tags and hosts

This commit is contained in:
Johan Siebens
2022-05-12 20:32:01 +02:00
parent 22cccceca9
commit e5c7a118a8
21 changed files with 1249 additions and 89 deletions
+2 -2
View File
@@ -187,8 +187,8 @@ func (h *RegistrationHandlers) authenticateMachineWithAuthKey(c echo.Context, bi
if err != nil {
return err
}
m.IPv4 = ipv4.String()
m.IPv6 = ipv6.String()
m.IPv4 = domain.IP{IP: ipv4}
m.IPv6 = domain.IP{IP: ipv6}
} else {
registeredTags := authKey.Tags
advertisedTags := domain.SanitizeTags(req.Hostinfo.RequestTags)