func ExcludedRoute(route string) bool {
	for _, r := range excludedRoutes {
		if strings.Contains(route, r) {
			return true
		}
	}
	return false
}
ExcludedRoute returns whether a given route should be excluded from a token check.
package security
import (
	"os"
	"strings"
)
const (
	APITokenEnvVar    = "DAPR_API_TOKEN"
	AppAPITokenEnvVar = "APP_API_TOKEN"
	APITokenHeader = "dapr-api-token"
)
var excludedRoutes = []string{"/healthz"}
func GetAPIToken() string {
	return os.Getenv(APITokenEnvVar)
}
func GetAppToken() string {
	return os.Getenv(AppAPITokenEnvVar)
}