From 788ff71fa7e8f0f6942aead9848482fe980a011f Mon Sep 17 00:00:00 2001 From: Basha Mougamadou Date: Mon, 17 Jun 2024 17:07:17 +0200 Subject: [PATCH] fix: validate messages against all authenticators In commit fb08c99bc0e8a51bed500468e272748494b65925 where we've migrated the haproxy-spoe-go library, a regression has been introduced: indeed, for given received messages, all the associated authenticator should have been validated against before continuing. Fix consists on iterating on all the messages and associated authenticator. --- internal/agent/agent.go | 1 - 1 file changed, 1 deletion(-) diff --git a/internal/agent/agent.go b/internal/agent/agent.go index 187d0f3..ba91ebf 100644 --- a/internal/agent/agent.go +++ b/internal/agent/agent.go @@ -41,7 +41,6 @@ func StartAgent(interfaceAddr string, authenticators map[string]auth.Authenticat if isAuthenticated { authenticated = true } - break } }