From 36a33c7529f911ec7779c76e1e0fd044999ce6f1 Mon Sep 17 00:00:00 2001 From: jannfis Date: Wed, 28 Feb 2024 19:53:09 -0500 Subject: [PATCH] fix: Fix lint and test issues (#18) Signed-off-by: jannfis --- principal/options.go | 1 + principal/server.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/principal/options.go b/principal/options.go index 37da576..18a756b 100644 --- a/principal/options.go +++ b/principal/options.go @@ -164,6 +164,7 @@ func WithTLSRootCaFromFile(caPath string) ServerOption { if !ok { return fmt.Errorf("invalid certificate data in %s", caPath) } + //nolint:staticcheck log().Infof("Loaded %d cert(s) into the root CA pool", len(o.options.rootCa.Subjects())) return nil } diff --git a/principal/server.go b/principal/server.go index 5dcec18..46e131a 100644 --- a/principal/server.go +++ b/principal/server.go @@ -49,7 +49,7 @@ type Server struct { // noAuthEndpoints is a list of endpoints that are available without the need // for the request to be authenticated. var noAuthEndpoints = map[string]bool{ - // "/versionapi.Version/Version": true, + "/versionapi.Version/Version": true, "/authapi.Authentication/Authenticate": true, }