Sqreen's Security Agent for Go
Sqreen monitors your application security and helps you easily protect it from common vulnerabilities or advanced attacks.
- Gain visibility into your application security.
- One-click protection from common vulnerabilities.
- Easily enforce custom protection rules into your app.
- Identify malicious users before they cause harm.
- Integrate with your workflow.
Sqreen also protects applications against common security threats such as database injections, cross-site scripting attacks, scans, or authentication activity inside the application to detect and block account takeover attacks. It monitors functions in the application (I/O, authentication, network, command execution, etc.) and provides dedicated security logic at run-time.
For more details, visit sqreen.com
-
Download the Go agent and the SDK using
go get
:$ go get github.com/sqreen/go-agent/...
-
Import the package
agent
in yourmain
package of your app:import _ "github.com/sqreen/go-agent/agent"
-
Signup to Sqreen to get a token for your app, and store it in the agent's configuration file
sqreen.yaml
:token: your token app_name: Your App Name
This file can be stored in your current working directory when starting the executable, the same directory as your app's executable file, or in any other path by defining the configuration file location into the environment variable
SQREEN_CONFIG_FILE
. -
Set up Sqreen's middleware functions according to the web framework you use:
- sqhttp for the standard net/http package.
- Gin
- Echo
- Coming soon: Iris, gRPC (please upvote if interested ;)).
If your framework is not in the list, it is usually possible to use the standard
net/http
middleware. If not, please open an issue in this repository to start a discussion about it. -
Optionally, use the SDK to send security events related to users (eg. signing-in) or completely custom security-related events you would like to track (eg. password changes).
Sqreen for Go is free-to-use, proprietary software.
Copyright (c) 2019 Sqreen. All Rights Reserved. Please refer to our terms for more information: https://www.sqreen.com/terms.html