{"id":43379150,"url":"https://github.com/libdns/selectel","last_synced_at":"2026-05-31T02:04:53.249Z","repository":{"id":256511059,"uuid":"854665269","full_name":"libdns/selectel","owner":"libdns","description":null,"archived":false,"fork":false,"pushed_at":"2024-09-11T05:27:22.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-09-11T08:01:52.048Z","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/libdns.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":"2024-09-09T15:12:06.000Z","updated_at":"2024-09-11T05:20:39.000Z","dependencies_parsed_at":"2024-09-11T08:02:02.348Z","dependency_job_id":"0816973e-6aed-4792-9c3b-0680509f4247","html_url":"https://github.com/libdns/selectel","commit_stats":null,"previous_names":["libdns/selectel"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/libdns/selectel","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/libdns%2Fselectel","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/libdns%2Fselectel/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/libdns%2Fselectel/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/libdns%2Fselectel/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/libdns","download_url":"https://codeload.github.com/libdns/selectel/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/libdns%2Fselectel/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29007316,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-02T06:37:10.400Z","status":"ssl_error","status_checked_at":"2026-02-02T06:37:09.383Z","response_time":58,"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":"2026-02-02T07:45:35.765Z","updated_at":"2026-05-31T02:04:53.242Z","avatar_url":"https://github.com/libdns.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Selectel DNS v2 for [libdns](https://github.com/libdns/libdns)\n\n[![Go Reference](https://pkg.go.dev/badge/test.svg)](https://pkg.go.dev/github.com/libdns/selectel)\n\nThis package implements the [libdns interfaces](https://github.com/libdns/libdns) for the [Selectel DNS v2 API](https://developers.selectel.ru/docs/cloud-services/dns_api/dns_api_actual/), allowing you to manage DNS records in Selectel-hosted zones from any libdns-compatible tool.\n\n## Authorization\n\nThe provider authenticates against the Selectel Keystone identity service using a service-user login. See the [Selectel authorization documentation](https://developers.selectel.ru/docs/control-panel/authorization/#%D1%82%D0%BE%D0%BA%D0%B5%D0%BD-keystone) for how to create the required credentials.\n\nThe following fields on `Provider` are required:\n\n| Field         | Description                            |\n| ------------- | -------------------------------------- |\n| `User`        | Selectel service-user login.           |\n| `Password`    | Selectel service-user password.        |\n| `AccountId`   | Selectel account ID (domain name).     |\n| `ProjectName` | Selectel project name owning the zone. |\n\n## Optional features\n\n| Field                           | Description                                                                                                                              |\n| ------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------- |\n| `EnableDebugLogging`            | Emit verbose DEBUG-level messages on `OperationLogger`. When `OperationLogger` is nil, a logger writing to `os.Stderr` is created automatically. |\n| `OperationLogger`               | A `*log.Logger` that receives INFO, ERROR, and (when enabled) DEBUG messages from the provider.                                          |\n| `HTTPRequestRetryConfiguration` | Controls retry behaviour for transient HTTP failures (timeouts, 429, 5xx). A zero-value configuration enables sensible defaults.         |\n\n## Behaviour notes\n\n- The Selectel API rejects TTL values below 60. Records submitted with `TTL == 0` are silently clamped to 60 seconds.\n- `AppendRecords` automatically falls back to an in-place update when the API reports a 409 Conflict for a record that already exists.\n- Transient HTTP failures (timeouts, 429, 500, 502, 503, 504) are retried with exponential backoff. The default policy is 3 retries between 1s and 30s with a multiplier of 2.\n\n## Example\n\n```go\npackage main\n\nimport (\n\t\"context\"\n\t\"fmt\"\n\t\"os\"\n\n\t\"github.com/libdns/selectel\"\n)\n\nfunc main() {\n\tprovider := selectel.Provider{\n\t\tUser:        os.Getenv(\"SELECTEL_USER\"),\n\t\tPassword:    os.Getenv(\"SELECTEL_PASSWORD\"),\n\t\tAccountId:   os.Getenv(\"SELECTEL_ACCOUNT_ID\"),\n\t\tProjectName: os.Getenv(\"SELECTEL_PROJECT_NAME\"),\n\t}\n\tzone := os.Getenv(\"SELECTEL_ZONE\")\n\n\trecords, err := provider.GetRecords(context.Background(), zone)\n\tif err != nil {\n\t\tfmt.Printf(\"Error: %s\\n\", err)\n\t\treturn\n\t}\n\n\tfmt.Println(records)\n}\n```\n\nSee also: [provider_test.go](https://github.com/libdns/selectel/blob/master/provider_test.go)\n\nAlways yours [@jjazzme](https://github.com/jjazzme)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flibdns%2Fselectel","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flibdns%2Fselectel","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flibdns%2Fselectel/lists"}