Install the Go agent without the Contrast Service
Important
If you did not opt-in to install the Go agent without the service, then follow the install the Go agent (legacy) instructions.
You can opt-in to configure the agent to report directly to Contrast by installing the Go agent without the Contrast service.
The executable must be built using contrast-go to instrument the application with the agent. A basic installation of the Go agent consists of two parts: producing an executable and running the executable. An installation overview looks like this:
Download the following and place in the proper path:
Go agent
contrast_security.yamlEnsure your yaml or environment variables are set to
bypass:true.agent: service: bypass: trueAlternatively, the same feature can be enabled using environment variables:
CONTRAST__AGENT__SERVICE__BYPASS=true
Set up appropriate permissions.
Build the Go application, replacing
gowithcontrast-goto get a final application artifact which contains the Go agent.Run the executable.
Exercise and test your application.
Verify that Contrast sees your application.
Tip
To see a list of available flags with command line arguments for contrast-go, type contrast-go -h.
For specific installation instructions, select one of the following options: