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, }