{"id":42261865,"url":"https://github.com/aellwein/netcup-dns-api","last_synced_at":"2026-01-27T06:07:03.827Z","repository":{"id":57691301,"uuid":"480879641","full_name":"aellwein/netcup-dns-api","owner":"aellwein","description":"Implementation of Netcup DNS API in Golang","archived":false,"fork":false,"pushed_at":"2026-01-01T11:51:57.000Z","size":51,"stargazers_count":15,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-06T10:17:11.027Z","etag":null,"topics":["dns","dns-api","golang","netcup","netcup-api"],"latest_commit_sha":null,"homepage":"","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/aellwein.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2022-04-12T16:01:21.000Z","updated_at":"2026-01-01T11:52:00.000Z","dependencies_parsed_at":"2023-11-13T22:23:10.033Z","dependency_job_id":"bd42beac-49dc-4cab-ba96-56e7c0c3c282","html_url":"https://github.com/aellwein/netcup-dns-api","commit_stats":null,"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"purl":"pkg:github/aellwein/netcup-dns-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aellwein%2Fnetcup-dns-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aellwein%2Fnetcup-dns-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aellwein%2Fnetcup-dns-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aellwein%2Fnetcup-dns-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aellwein","download_url":"https://codeload.github.com/aellwein/netcup-dns-api/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aellwein%2Fnetcup-dns-api/sbom","scorecard":{"id":110382,"data":{"date":"2025-08-11","repo":{"name":"github.com/aellwein/netcup-dns-api","commit":"43898bbccaf4e98bbdf83e6286cebc9d446a8f78"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":4.9,"checks":[{"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/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Code-Review","score":0,"reason":"Found 1/30 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":"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":"Pinned-Dependencies","score":10,"reason":"all dependencies are pinned","details":["Info:   4 out of   4 GitHub-owned GitHubAction dependencies pinned","Info:   1 out of   1 third-party GitHubAction 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":"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":"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":"Token-Permissions","score":9,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Info: jobLevel 'contents' permission set to 'read': .github/workflows/go.yml:12","Info: jobLevel 'contents' permission set to 'read': .github/workflows/go.yml:37","Warn: no topLevel permission defined: .github/workflows/go.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/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"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":"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: MIT 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":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'main'"],"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":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 1 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"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-15T12:05:11.322Z","repository_id":57691301,"created_at":"2025-08-15T12:05:11.327Z","updated_at":"2025-08-15T12:05:11.327Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28805369,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-27T05:43:52.625Z","status":"ssl_error","status_checked_at":"2026-01-27T05:43:48.957Z","response_time":168,"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":["dns","dns-api","golang","netcup","netcup-api"],"created_at":"2026-01-27T06:07:03.177Z","updated_at":"2026-01-27T06:07:03.821Z","avatar_url":"https://github.com/aellwein.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/aellwein/netcup-dns-api/go.yml?branch=main)\n[![Go Report Card](https://goreportcard.com/badge/github.com/aellwein/netcup-dns-api)](https://goreportcard.com/report/github.com/aellwein/netcup-dns-api)\n[![Codecov branch](https://img.shields.io/codecov/c/github/aellwein/netcup-dns-api/main)](https://app.codecov.io/gh/aellwein/netcup-dns-api)\n![GitHub](https://img.shields.io/github/license/aellwein/netcup-dns-api)\n![GitHub release (latest SemVer)](https://img.shields.io/github/v/release/aellwein/netcup-dns-api)\n\nnetcup-dns-api\n==============\n\nImplementation for [netcup DNS API](https://www.netcup-wiki.de/wiki/DNS_API) in Golang.\n\nAll DNS API is implemented:\n* ``login``\n* ``logout``\n* ``infoDnsZone``\n* ``infoDnsRecords``\n* ``updateDnsZone``\n* ``updateDnsRecords``\n\n\nExample Usage\n-------------\n\n```golang\nimport (\n\t\"log\"\n\n\tnetcup \"github.com/aellwein/netcup-dns-api/pkg/v1\"\n)\n\nfunc main() {\n\tclient := netcup.NewNetcupDnsClient(12345, \"myApiKey\", \"mySecretApiPassword\")\n\n\t// Login to the API\n\tsession, err := client.Login()\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tdefer session.Logout()\n\n\tif zone, err := session.InfoDnsZone(\"myowndomain.org\"); err != nil {\n\t\tpanic(err)\n\t} else {\n\t\tlog.Println(\"DNS zone:\", zone)\n\t}\n}\n```\nThis should give you an output like:\n```\nDNS zone: { \"DomainName\": \"myowndomain.org\", \"Ttl\": \"...\", \"Serial\": \"...\", \"Refresh\": \"...\", \"Retry\": \"...\", \"Expire\": \"...\", \"DnsSecStatus\": false\n```\n\nError Handling\n--------------\n\nUsually one would expect an ``err`` set only in case of a \"hard\" or _non-recoverable_ error. This is true \nfor a technical type of error, like failed REST API call or a broken network connection, but the \nNetcup API may set status to \"error\" in some cases, where you would rather \n[assume a warning](https://github.com/mrueg/external-dns-netcup-webhook/issues/5#issuecomment-1913528766).\nIn such case, the last response from Netcup API is preserved inside the ``NetcupSession`` and can be examined: \n\n```golang\nrecs, err := session.InfoDnsRecords(\"myowndomain.org\")\nif err != nil {\n\tif session.LastResponse != nil \u0026\u0026 \n\t\tsess.LastResponse.Status == string(netcup.StatusError) \u0026\u0026\n\t\tsess.LastResponse.StatusCode == 5029 {\n\t\t\t// no records are found in the DNS zone - Netcup indicates an error here.\n\t\t\tprintln(\"no error\")\n\t\t} else {\n\t\t\treturn fmt.Errorf(\"non-recoverable error on InfoDnsRecords: %v\", err)\n\t\t}\n}\n```\n\nLicense\n-------\n\n[MIT License](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faellwein%2Fnetcup-dns-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faellwein%2Fnetcup-dns-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faellwein%2Fnetcup-dns-api/lists"}