{"id":28570083,"url":"https://github.com/wallarm/wallarm-go","last_synced_at":"2026-04-28T11:03:30.594Z","repository":{"id":48230813,"uuid":"327723733","full_name":"wallarm/wallarm-go","owner":"wallarm","description":null,"archived":false,"fork":false,"pushed_at":"2026-04-27T21:31:59.000Z","size":1484,"stargazers_count":1,"open_issues_count":1,"forks_count":4,"subscribers_count":6,"default_branch":"master","last_synced_at":"2026-04-27T23:22:09.704Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wallarm.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"security_issues_test.go","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2021-01-07T20:59:55.000Z","updated_at":"2026-04-24T09:38:56.000Z","dependencies_parsed_at":"2024-01-08T12:27:10.449Z","dependency_job_id":"e9786024-e1f5-4b72-9aa4-e982ce697167","html_url":"https://github.com/wallarm/wallarm-go","commit_stats":null,"previous_names":[],"tags_count":53,"template":false,"template_full_name":null,"purl":"pkg:github/wallarm/wallarm-go","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wallarm%2Fwallarm-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wallarm%2Fwallarm-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wallarm%2Fwallarm-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wallarm%2Fwallarm-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wallarm","download_url":"https://codeload.github.com/wallarm/wallarm-go/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wallarm%2Fwallarm-go/sbom","scorecard":{"id":1240054,"data":{"date":"2025-11-24","repo":{"name":"github.com/wallarm/wallarm-go","commit":"1962c94e8170e4e80551f001fee6e896f652b4f8"},"scorecard":{"version":"v5.4.1-0.20251125161513-488797dbe611","commit":"488797dbe611ab7e16f12d88185cde5e8dc28aca"},"score":3.6,"checks":[{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/test.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/488797dbe611ab7e16f12d88185cde5e8dc28aca/docs/checks.md#token-permissions"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/488797dbe611ab7e16f12d88185cde5e8dc28aca/docs/checks.md#binary-artifacts"}},{"name":"Code-Review","score":3,"reason":"Found 6/16 approved changesets -- score normalized to 3","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/488797dbe611ab7e16f12d88185cde5e8dc28aca/docs/checks.md#code-review"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/488797dbe611ab7e16f12d88185cde5e8dc28aca/docs/checks.md#maintained"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/488797dbe611ab7e16f12d88185cde5e8dc28aca/docs/checks.md#dangerous-workflow"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/488797dbe611ab7e16f12d88185cde5e8dc28aca/docs/checks.md#packaging"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:12: update your workflow using https://app.stepsecurity.io/secureworkflow/wallarm/wallarm-go/test.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/wallarm/wallarm-go/test.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/test.yml:28: update your workflow using https://app.stepsecurity.io/secureworkflow/wallarm/wallarm-go/test.yml/master?enable=pin","Warn: goCommand not pinned by hash: .github/workflows/test.yml:20","Info:   0 out of   2 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   1 third-party GitHubAction dependencies pinned","Info:   0 out of   1 goCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/488797dbe611ab7e16f12d88185cde5e8dc28aca/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/488797dbe611ab7e16f12d88185cde5e8dc28aca/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/488797dbe611ab7e16f12d88185cde5e8dc28aca/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/488797dbe611ab7e16f12d88185cde5e8dc28aca/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/488797dbe611ab7e16f12d88185cde5e8dc28aca/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/488797dbe611ab7e16f12d88185cde5e8dc28aca/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/488797dbe611ab7e16f12d88185cde5e8dc28aca/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":9,"reason":"1 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: https://osv.dev/GO-2022-0603"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/488797dbe611ab7e16f12d88185cde5e8dc28aca/docs/checks.md#vulnerabilities"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 30 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/488797dbe611ab7e16f12d88185cde5e8dc28aca/docs/checks.md#sast"}}]},"last_synced_at":"2025-11-29T10:11:11.695Z","repository_id":48230813,"created_at":"2025-11-29T10:11:11.696Z","updated_at":"2025-11-29T10:11:11.696Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32377599,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-28T09:24:15.638Z","status":"ssl_error","status_checked_at":"2026-04-28T09:24:15.071Z","response_time":56,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-06-10T17:40:03.892Z","updated_at":"2026-04-28T11:03:30.573Z","avatar_url":"https://github.com/wallarm.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# wallarm-go\n\n[![build](https://github.com/wallarm/wallarm-go/workflows/Go/badge.svg)](https://github.com/wallarm/wallarm-go/actions?query=workflow%3AGo)\n[![PkgGoDev](https://pkg.go.dev/badge/github.com/wallarm/wallarm-go)](https://pkg.go.dev/github.com/wallarm/wallarm-go)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://github.com/wallarm/wallarm-go/blob/master/LICENSE)\n\nA Go client library for the [Wallarm API](https://docs.wallarm.com/api/overview/). Used by the [Terraform provider for Wallarm](https://github.com/wallarm/terraform-provider-wallarm).\n\n## Capabilities\n\n* Rules — create, read, update, delete rules (hints) with paginated bulk fetch\n* IP lists — manage allowlist, denylist, and graylist entries (subnets, countries, datacenters, proxy types)\n* Integrations — email, Slack, Splunk, PagerDuty, OpsGenie, Datadog, and more\n* Triggers — threshold-based alerting and reaction rules\n* Applications — create and manage application pools\n* Nodes — filtering node lifecycle management\n* Tenants — multi-tenant account management\n* Users — user CRUD and role management\n* Actions — rule scope management (action conditions)\n* Hits — fetch detected hits for false positive analysis\n* Attacks — fetch detected attacks, hit details, and raw hit payloads\n* Activity log — audit-log access with object-type filtering\n* Security issues — detected vulnerabilities and attack-surface issues grouped by type and severity\n* API specs — specification CRUD (`APISpecCreate`, `APISpecReadByID`, `APISpecUpdate`, `APISpecList` with pagination, `APISpecDelete`), auth headers for URL-based fetch, and per-spec enforcement policies via `APISpecPolicyPut` with per-violation action modes\n* Credential stuffing — credential stuffing detection configs\n* Global mode — filtration mode (monitoring/blocking) management\n\n## Features\n\n* **Automatic retry** — transient errors are retried automatically:\n\n  | Status | Delay | Max retries |\n  |--------|-------|-------------|\n  | 423 (Rules locked) | 5s fixed | 12 |\n  | 5xx (Server error) | 10s fixed | 12 |\n  | 429 (Rate limit) | Exponential backoff | 12 |\n\n* **Gzip compression** — requests include `Accept-Encoding: gzip` for reduced response sizes\n* **Structured errors** — `APIError` type with `StatusCode` and `Body` fields, compatible with `errors.As()`\n* **Configurable** — custom HTTP client, base URL, retry policy, user agent, and headers via functional options\n\n## Install\n\n```sh\ngo get github.com/wallarm/wallarm-go\n```\n\n## Getting Started\n\n```go\npackage main\n\nimport (\n\t\"log\"\n\t\"net/http\"\n\t\"os\"\n\n\twallarm \"github.com/wallarm/wallarm-go\"\n)\n\nfunc main() {\n\thost := os.Getenv(\"WALLARM_API_HOST\")\n\tif host == \"\" {\n\t\thost = \"https://api.wallarm.com\"\n\t}\n\ttoken := os.Getenv(\"WALLARM_API_TOKEN\")\n\tif token == \"\" {\n\t\tlog.Fatal(\"WALLARM_API_TOKEN is required\")\n\t}\n\n\theaders := http.Header{}\n\theaders.Set(\"X-WallarmAPI-Token\", token)\n\n\t// Create client with token auth, retry policy, and custom base URL.\n\tapi, err := wallarm.New(\n\t\twallarm.UsingBaseURL(host),\n\t\twallarm.Headers(headers),\n\t\twallarm.UsingRetryPolicy(12, 1, 30),\n\t)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\t// Fetch user details\n\tuser, err := api.UserDetails()\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\tlog.Printf(\"Authenticated as client %d\", user.Body.ClientID)\n\n\t// Read all rules for a client\n\tresp, err := api.HintRead(\u0026wallarm.HintRead{\n\t\tLimit:   500,\n\t\tOrderBy: \"updated_at\",\n\t\tFilter:  \u0026wallarm.HintFilter{Clientid: []int{user.Body.ClientID}},\n\t})\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\tlog.Printf(\"Found %d rules\", len(*resp.Body))\n}\n```\n\n## Error Handling\n\nAPI errors are returned as `*wallarm.APIError` with status code and response body:\n\n```go\nimport \"errors\"\n\nvar apiErr *wallarm.APIError\nif errors.As(err, \u0026apiErr) {\n\tlog.Printf(\"API error %d: %s\", apiErr.StatusCode, apiErr.Body)\n}\n```\n\n## License\n\n[MIT](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwallarm%2Fwallarm-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwallarm%2Fwallarm-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwallarm%2Fwallarm-go/lists"}