
Security News
curl Shuts Down Bug Bounty Program After Flood of AI Slop Reports
A surge of AI-generated vulnerability reports has pushed open source maintainers to rethink bug bounties and tighten security disclosure processes.
The HTTP server library helps to quickly create a consistent HTTP server with some useful middlewares, OpenAPI, Prometheus metrics and standard access controls.
The server is focused on serving REST style APIs and is based on the Gorilla Mux request router and dispatcher.
Add the module to your project:
$ go get southwinds.dev/http
Set up the server:
package main
import (
"github.com/gorilla/mux"
"net/http"
h "southwinds.dev/http"
)
func main() {
// create a new server
server := h.New("test")
// configure http handlers
server.Http = func(router *mux.Router) {
// add basic authentication
router.Use(server.AuthenticationMiddleware)
// add handler
router.HandleFunc("/", doSomething).Methods("GET")
}
server.Serve()
}
func doSomething(writer http.ResponseWriter, request *http.Request) {
writer.WriteHeader(http.StatusOK)
}
For a more complete example see here.
The server can be configured via the following environment variables:
| name | description | default |
|---|---|---|
HTTP_METRICS_ENABLED | enables Prometheus endpoint at /metrics | true |
HTTP_OPEN_API_ENABLED | enables Swagger enpoint at /api/ | true |
HTTP_PORT | port on which the server listen | 8080 |
HTTP_USER | basic authentication user name | admin |
HTTP_PASSWORD | basic authentication password | auto-generated |
HTTP_REALM | the realm name for browser WWW-Authenticate prompt | none |
FAQs
Unknown package
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
A surge of AI-generated vulnerability reports has pushed open source maintainers to rethink bug bounties and tighten security disclosure processes.

Product
Scan results now load faster and remain consistent over time, with stable URLs and on-demand rescans for fresh security data.

Product
Socket's new Alert Details page is designed to surface more context, with a clearer layout, reachability dependency chains, and structured review.