test coverage improvements; mTLS enforcement; agent broke :(
This commit is contained in:
1 parent
921b760f80
commit
31b726b439
43 files changed
+3343
-80
No files matched your search
@@ -48,9 +48,6 @@ func New(cfg *config.Config) (*Client, error) {
|
||||
return nil, errors.New("server url is required")
|
||||
}
|
||||
agentToken := normalizeAgentToken(cfg.AgentAPIToken)
|
||||
if agentToken == "" {
|
||||
return nil, errors.New("agent api token is required (set agent_api_token or KEYWARDEN_AGENT_API_TOKEN)")
|
||||
}
|
||||
cert, err := tls.LoadX509KeyPair(cfg.ClientCertPath(), cfg.ClientKeyPath())
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("load client cert: %w", err)
|
||||
|
||||
Reference in new issue
Block a user