{"id":15517552,"url":"https://github.com/bodgit/tsig","last_synced_at":"2026-02-28T10:06:46.005Z","repository":{"id":37270239,"uuid":"117382795","full_name":"bodgit/tsig","owner":"bodgit","description":"Golang library to support additional TSIG methods for DNS queries","archived":false,"fork":false,"pushed_at":"2025-04-07T23:02:36.000Z","size":542,"stargazers_count":12,"open_issues_count":8,"forks_count":9,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-10T01:09:56.192Z","etag":null,"topics":["diffie-hellman","dns","golang","golang-library","gssapi","kerberos","rfc-2845","rfc-2930","rfc-3645","rfc-4635","rfc-8945","sspi","tsig"],"latest_commit_sha":null,"homepage":"https://godoc.org/github.com/bodgit/tsig","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bodgit.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-01-13T22:17:34.000Z","updated_at":"2024-12-14T00:40:34.000Z","dependencies_parsed_at":"2024-02-13T12:38:45.308Z","dependency_job_id":"02b9804a-3df9-4e65-a008-9ad4e1792c93","html_url":"https://github.com/bodgit/tsig","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/bodgit/tsig","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bodgit%2Ftsig","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bodgit%2Ftsig/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bodgit%2Ftsig/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bodgit%2Ftsig/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bodgit","download_url":"https://codeload.github.com/bodgit/tsig/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bodgit%2Ftsig/sbom","scorecard":{"id":246637,"data":{"date":"2025-08-11","repo":{"name":"github.com/bodgit/tsig","commit":"bf8183d237e5179039a352cda12633f906f0ce3e"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.8,"checks":[{"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/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Code-Review","score":0,"reason":"Found 0/8 approved changesets -- score normalized to 0","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/f6ed084d17c9236477efd66e5b258b9d4cc7b389/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/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"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/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"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/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: jobLevel 'actions' permission set to 'write': .github/workflows/cleanup.yml:14","Info: jobLevel 'contents' permission set to 'read': .github/workflows/cleanup.yml:15","Warn: no topLevel permission defined: .github/workflows/build.yml:1","Warn: no topLevel permission defined: .github/workflows/cleanup.yml:1","Warn: no topLevel permission defined: .github/workflows/pr-lint.yml:1","Warn: no topLevel permission defined: .github/workflows/release.yml:1"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"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/build.yml:36: update your workflow using https://app.stepsecurity.io/secureworkflow/bodgit/tsig/build.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build.yml:39: update your workflow using https://app.stepsecurity.io/secureworkflow/bodgit/tsig/build.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/build.yml:49: update your workflow using https://app.stepsecurity.io/secureworkflow/bodgit/tsig/build.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/build.yml:55: update your workflow using https://app.stepsecurity.io/secureworkflow/bodgit/tsig/build.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/build.yml:62: update your workflow using https://app.stepsecurity.io/secureworkflow/bodgit/tsig/build.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/build.yml:84: update your workflow using https://app.stepsecurity.io/secureworkflow/bodgit/tsig/build.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/build.yml:87: update your workflow using https://app.stepsecurity.io/secureworkflow/bodgit/tsig/build.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/build.yml:97: update your workflow using https://app.stepsecurity.io/secureworkflow/bodgit/tsig/build.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/build.yml:107: update your workflow using https://app.stepsecurity.io/secureworkflow/bodgit/tsig/build.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/cleanup.yml:19: update your workflow using https://app.stepsecurity.io/secureworkflow/bodgit/tsig/cleanup.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/pr-lint.yml:19: update your workflow using https://app.stepsecurity.io/secureworkflow/bodgit/tsig/pr-lint.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/pr-lint.yml:24: update your workflow using https://app.stepsecurity.io/secureworkflow/bodgit/tsig/pr-lint.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/pr-lint.yml:39: update your workflow using https://app.stepsecurity.io/secureworkflow/bodgit/tsig/pr-lint.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/release.yml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/bodgit/tsig/release.yml/main?enable=pin","Warn: goCommand not pinned by hash: .github/workflows/build.yml:148","Warn: goCommand not pinned by hash: .github/workflows/build.yml:149","Info:   0 out of   3 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of  11 third-party GitHubAction dependencies pinned","Info:   0 out of   2 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/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"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/f6ed084d17c9236477efd66e5b258b9d4cc7b389/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/f6ed084d17c9236477efd66e5b258b9d4cc7b389/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: BSD 3-Clause \"New\" or \"Revised\" License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/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/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Packaging","score":10,"reason":"packaging workflow detected","details":["Info: Project packages its releases by way of GitHub Actions.: .github/workflows/build.yml:14"],"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/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Vulnerabilities","score":6,"reason":"4 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GO-2025-3487 / GHSA-hcg3-q754-cr77","Warn: Project is vulnerable to: GO-2024-3333","Warn: Project is vulnerable to: GO-2025-3503 / GHSA-qxp5-gwg8-xv66","Warn: Project is vulnerable to: GO-2025-3595 / GHSA-vvgc-356p-c3xw"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/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/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-17T07:43:46.292Z","repository_id":37270239,"created_at":"2025-08-17T07:43:46.292Z","updated_at":"2025-08-17T07:43:46.292Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29929672,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-28T09:58:13.507Z","status":"ssl_error","status_checked_at":"2026-02-28T09:57:57.047Z","response_time":90,"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":["diffie-hellman","dns","golang","golang-library","gssapi","kerberos","rfc-2845","rfc-2930","rfc-3645","rfc-4635","rfc-8945","sspi","tsig"],"created_at":"2024-10-02T10:13:45.967Z","updated_at":"2026-02-28T10:06:45.987Z","avatar_url":"https://github.com/bodgit.png","language":"Go","readme":"[![GitHub release](https://img.shields.io/github/v/release/bodgit/tsig)](https://github.com/bodgit/tsig/releases)\n[![Build Status](https://img.shields.io/github/actions/workflow/status/bodgit/tsig/build.yml?branch=main)](https://github.com/bodgit/tsig/actions?query=workflow%3ABuild)\n[![Coverage Status](https://coveralls.io/repos/github/bodgit/tsig/badge.svg?branch=main)](https://coveralls.io/github/bodgit/tsig?branch=main)\n[![Go Report Card](https://goreportcard.com/badge/github.com/bodgit/tsig)](https://goreportcard.com/report/github.com/bodgit/tsig)\n[![GoDoc](https://godoc.org/github.com/bodgit/tsig?status.svg)](https://godoc.org/github.com/bodgit/tsig)\n![Go version](https://img.shields.io/badge/Go-1.22-brightgreen.svg)\n![Go version](https://img.shields.io/badge/Go-1.21-brightgreen.svg)\n\n# Additional TSIG methods\n\nThe [github.com/bodgit/tsig](https://godoc.org/github.com/bodgit/tsig) package\nadds support for additional TSIG methods used in DNS queries. It is designed\nto be used alongside the [github.com/miekg/dns](https://github.com/miekg/dns)\npackage which is used to construct and parse DNS queries and responses.\n\nThis is most useful for allowing\n[RFC 3645 GSS-TSIG](https://www.ietf.org/rfc/rfc3645.txt) which is necessary\nfor dealing with Windows DNS servers that require 'Secure only' updates or\nBIND if it has been configured to use Kerberos.\n\n\u003e :warning: Windows DNS servers don't accept wildcard resource names in dynamic updates.\n\nHere is an example client, it is necessary that your Kerberos or Active\nDirectory environment is configured and functional:\n\n```golang\npackage main\n\nimport (\n        \"fmt\"\n        \"time\"\n\n        \"github.com/bodgit/tsig\"\n        \"github.com/bodgit/tsig/gss\"\n        \"github.com/miekg/dns\"\n)\n\nfunc main() {\n        dnsClient := new(dns.Client)\n        dnsClient.Net = \"tcp\"\n\n        gssClient, err := gss.NewClient(dnsClient)\n        if err != nil {\n                panic(err)\n        }\n        defer gssClient.Close()\n\n        host := \"ns.example.com:53\"\n\n        // Negotiate a context with the chosen server using the\n        // current user. See also gssClient.NegotiateContextWithCredentials()\n        // and gssClient.NegotiateContextWithKeytab() for alternatives\n        keyname, _, err := gssClient.NegotiateContext(host)\n        if err != nil {\n                panic(err)\n        }\n\n        dnsClient.TsigProvider = gssClient\n\n        // Use the DNS client as normal\n\n        msg := new(dns.Msg)\n        msg.SetUpdate(dns.Fqdn(\"example.com\"))\n\n        insert, err := dns.NewRR(\"test.example.com. 300 A 192.0.2.1\")\n        if err != nil {\n                panic(err)\n        }\n        msg.Insert([]dns.RR{insert})\n\n        msg.SetTsig(keyname, tsig.GSS, 300, time.Now().Unix())\n\n        rr, _, err := dnsClient.Exchange(msg, host)\n        if err != nil {\n                panic(err)\n        }\n\n        if rr.Rcode != dns.RcodeSuccess {\n                fmt.Printf(\"DNS error: %s (%d)\\n\", dns.RcodeToString[rr.Rcode], rr.Rcode)\n        }\n\n        // Cleanup the context\n        err = gssClient.DeleteContext(keyname)\n        if err != nil {\n                panic(err)\n        }\n}\n```\n\nIf you need to deal with both regular TSIG and GSS-TSIG together then this\npackage also exports an HMAC TSIG implementation. To use both together set\nyour client up something like this:\n\n```golang\npackage main\n\nimport (\n        \"github.com/bodgit/tsig\"\n        \"github.com/bodgit/tsig/gss\"\n        \"github.com/miekg/dns\"\n)\n\nfunc main() {\n        dnsClient := new(dns.Client)\n        dnsClient.Net = \"tcp\"\n\n        // Create HMAC TSIG provider\n        hmac := tsig.HMAC{\"axfr.\": \"so6ZGir4GPAqINNh9U5c3A==\"}\n\n        // Create GSS-TSIG provider\n        gssClient, err := gss.NewClient(dnsClient)\n        if err != nil {\n                panic(err)\n        }\n        defer gssClient.Close()\n\n        // Configure DNS client with both providers\n        dnsClient.TsigProvider = tsig.MultiProvider(hmac, gssClient)\n\n        // Use the DNS client as normal\n}\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbodgit%2Ftsig","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbodgit%2Ftsig","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbodgit%2Ftsig/lists"}