Skip to content

Commit fc5b21f

Browse files
committed
Temporarily add user-agent prefix which is required by the API server
Signed-off-by: Richard Wall <[email protected]>
1 parent db8a772 commit fc5b21f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

pkg/version/version.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,11 @@ var GoVersion string
2121

2222
// UserAgent return a standard user agent for use with all HTTP requests. This is implemented in one place so
2323
// it's uniform across the Kubernetes Agent.
24+
//
25+
// TODO(wallrj): Security settings on the CyberArk API currently require a
26+
// Mozilla/ user-agent prefix.
2427
func UserAgent() string {
25-
return fmt.Sprintf("venafi-kubernetes-agent/%s", PreflightVersion)
28+
return fmt.Sprintf("Mozilla/5.0 venafi-kubernetes-agent/%s", PreflightVersion)
2629
}
2730

2831
// SetUserAgent augments an http.Request with a standard user agent.

0 commit comments

Comments
 (0)