{"id":48653775,"url":"https://github.com/poweradmin/external-dns-poweradmin-webhook","last_synced_at":"2026-05-24T08:01:48.709Z","repository":{"id":341840038,"uuid":"1110990175","full_name":"poweradmin/external-dns-poweradmin-webhook","owner":"poweradmin","description":"ExternalDNS Webhook Provider for Poweradmin","archived":false,"fork":false,"pushed_at":"2026-05-24T06:12:35.000Z","size":235,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-05-24T07:22:49.253Z","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/poweradmin.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":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":"2025-12-06T03:51:13.000Z","updated_at":"2026-05-24T06:12:27.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/poweradmin/external-dns-poweradmin-webhook","commit_stats":null,"previous_names":["poweradmin/external-dns-poweradmin-webhook"],"tags_count":15,"template":false,"template_full_name":null,"purl":"pkg:github/poweradmin/external-dns-poweradmin-webhook","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/poweradmin%2Fexternal-dns-poweradmin-webhook","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/poweradmin%2Fexternal-dns-poweradmin-webhook/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/poweradmin%2Fexternal-dns-poweradmin-webhook/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/poweradmin%2Fexternal-dns-poweradmin-webhook/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/poweradmin","download_url":"https://codeload.github.com/poweradmin/external-dns-poweradmin-webhook/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/poweradmin%2Fexternal-dns-poweradmin-webhook/sbom","scorecard":{"id":1246619,"data":{"date":"2026-04-27T13:09:59Z","repo":{"name":"github.com/poweradmin/external-dns-poweradmin-webhook","commit":"691eaee0c21f2fc7e59af1653fad04b84de4cf36"},"scorecard":{"version":"v5.3.0","commit":"c22063e786c11f9dd714d777a687ff7c4599b600"},"score":7.4,"checks":[{"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/c22063e786c11f9dd714d777a687ff7c4599b600/docs/checks.md#binary-artifacts"}},{"name":"Code-Review","score":0,"reason":"Found 0/10 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/c22063e786c11f9dd714d777a687ff7c4599b600/docs/checks.md#code-review"}},{"name":"Dependency-Update-Tool","score":10,"reason":"update tool detected","details":["Info: detected update tool: Dependabot: .github/dependabot.yml:1"],"documentation":{"short":"Determines if the project uses a dependency update tool.","url":"https://github.com/ossf/scorecard/blob/c22063e786c11f9dd714d777a687ff7c4599b600/docs/checks.md#dependency-update-tool"}},{"name":"Maintained","score":10,"reason":"30 commit(s) and 1 issue activity found in the last 90 days -- score normalized to 10","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/c22063e786c11f9dd714d777a687ff7c4599b600/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/c22063e786c11f9dd714d777a687ff7c4599b600/docs/checks.md#dangerous-workflow"}},{"name":"Token-Permissions","score":10,"reason":"GitHub workflow tokens follow principle of least privilege","details":["Info: jobLevel 'contents' permission set to 'read': .github/workflows/scorecard.yaml:20","Info: jobLevel 'actions' permission set to 'read': .github/workflows/scorecard.yaml:21","Info: jobLevel 'contents' permission set to 'read': .github/workflows/security.yaml:62","Info: jobLevel 'actions' permission set to 'read': .github/workflows/security.yaml:23","Info: jobLevel 'contents' permission set to 'read': .github/workflows/security.yaml:24","Info: topLevel 'contents' permission set to 'read': .github/workflows/lint.yaml:13","Info: topLevel 'contents' permission set to 'read': .github/workflows/release.yaml:10","Info: topLevel permissions set to 'read-all': .github/workflows/scorecard.yaml:11","Info: topLevel 'contents' permission set to 'read': .github/workflows/security.yaml:15","Info: topLevel 'contents' permission set to 'read': .github/workflows/test.yaml:13","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/c22063e786c11f9dd714d777a687ff7c4599b600/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/c22063e786c11f9dd714d777a687ff7c4599b600/docs/checks.md#cii-best-practices"}},{"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/c22063e786c11f9dd714d777a687ff7c4599b600/docs/checks.md#vulnerabilities"}},{"name":"Signed-Releases","score":8,"reason":"2 out of the last 2 releases have a total of 2 signed artifacts.","details":["Info: signed release artifact: external-dns-poweradmin-webhook_1.2.3_checksums.txt.sig: https://github.com/poweradmin/external-dns-poweradmin-webhook/releases/tag/v1.2.3","Info: signed release artifact: external-dns-poweradmin-webhook_1.2.2_checksums.txt.sig: https://github.com/poweradmin/external-dns-poweradmin-webhook/releases/tag/v1.2.2","Warn: release artifact v1.2.3 does not have provenance: https://api.github.com/repos/poweradmin/external-dns-poweradmin-webhook/releases/308376269","Warn: release artifact v1.2.2 does not have provenance: https://api.github.com/repos/poweradmin/external-dns-poweradmin-webhook/releases/301162218"],"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/c22063e786c11f9dd714d777a687ff7c4599b600/docs/checks.md#signed-releases"}},{"name":"Pinned-Dependencies","score":8,"reason":"dependency not pinned by hash detected -- score normalized to 8","details":["Warn: containerImage not pinned by hash: Dockerfile:1: pin your Docker image by updating golang:1.26-alpine to golang:1.26-alpine@sha256:f85330846cde1e57ca9ec309382da3b8e6ae3ab943d2739500e08c86393a21b1","Warn: containerImage not pinned by hash: Dockerfile:19: pin your Docker image by updating gcr.io/distroless/static-debian12:nonroot to gcr.io/distroless/static-debian12:nonroot@sha256:a9329520abc449e3b14d5bc3a6ffae065bdde0f02667fa10880c49b35c109fd1","Warn: containerImage not pinned by hash: Dockerfile.goreleaser:1: pin your Docker image by updating gcr.io/distroless/static-debian12:nonroot to gcr.io/distroless/static-debian12:nonroot@sha256:a9329520abc449e3b14d5bc3a6ffae065bdde0f02667fa10880c49b35c109fd1","Info:  18 out of  18 GitHub-owned GitHubAction dependencies pinned","Info:  15 out of  15 third-party GitHubAction dependencies pinned","Info:   0 out of   3 containerImage 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/c22063e786c11f9dd714d777a687ff7c4599b600/docs/checks.md#pinned-dependencies"}},{"name":"Packaging","score":10,"reason":"packaging workflow detected","details":["Info: Project packages its releases by way of GitHub Actions.: .github/workflows/release.yaml:30"],"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/c22063e786c11f9dd714d777a687ff7c4599b600/docs/checks.md#packaging"}},{"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/c22063e786c11f9dd714d777a687ff7c4599b600/docs/checks.md#security-policy"}},{"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/c22063e786c11f9dd714d777a687ff7c4599b600/docs/checks.md#license"}},{"name":"SAST","score":9,"reason":"SAST tool detected but not run on all commits","details":["Info: SAST configuration detected: CodeQL","Warn: 16 commits out of 22 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/c22063e786c11f9dd714d777a687ff7c4599b600/docs/checks.md#sast"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: some github tokens can't read classic branch protection rules: https://github.com/ossf/scorecard-action/blob/main/docs/authentication/fine-grained-auth-token.md","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/c22063e786c11f9dd714d777a687ff7c4599b600/docs/checks.md#branch-protection"}},{"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/c22063e786c11f9dd714d777a687ff7c4599b600/docs/checks.md#fuzzing"}},{"name":"Contributors","score":3,"reason":"project has 1 contributing companies or organizations -- score normalized to 3","details":["Info: found contributions from: poweradmin"],"documentation":{"short":"Determines if the project has a set of contributors from multiple organizations (e.g., companies).","url":"https://github.com/ossf/scorecard/blob/c22063e786c11f9dd714d777a687ff7c4599b600/docs/checks.md#contributors"}},{"name":"CI-Tests","score":8,"reason":"9 out of 11 merged PRs checked by a CI test -- score normalized to 8","details":null,"documentation":{"short":"Determines if the project runs tests before pull requests are merged.","url":"https://github.com/ossf/scorecard/blob/c22063e786c11f9dd714d777a687ff7c4599b600/docs/checks.md#ci-tests"}}]},"last_synced_at":"2026-04-27T14:30:39.913Z","repository_id":341840038,"created_at":"2026-04-27T14:30:39.913Z","updated_at":"2026-04-27T14:30:39.913Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33426013,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-23T22:14:44.296Z","status":"online","status_checked_at":"2026-05-24T02:00:06.296Z","response_time":57,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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-04-10T08:58:13.636Z","updated_at":"2026-05-24T08:01:48.703Z","avatar_url":"https://github.com/poweradmin.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# external-dns-poweradmin-webhook\n\n[![CI](https://github.com/poweradmin/external-dns-poweradmin-webhook/actions/workflows/test.yaml/badge.svg)](https://github.com/poweradmin/external-dns-poweradmin-webhook/actions/workflows/test.yaml)\n[![Lint](https://github.com/poweradmin/external-dns-poweradmin-webhook/actions/workflows/lint.yaml/badge.svg)](https://github.com/poweradmin/external-dns-poweradmin-webhook/actions/workflows/lint.yaml)\n[![Go Report Card](https://goreportcard.com/badge/github.com/poweradmin/external-dns-poweradmin-webhook)](https://goreportcard.com/report/github.com/poweradmin/external-dns-poweradmin-webhook)\n[![GitHub Release](https://img.shields.io/github/v/release/poweradmin/external-dns-poweradmin-webhook)](https://github.com/poweradmin/external-dns-poweradmin-webhook/releases)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n\nA webhook provider for [ExternalDNS](https://github.com/kubernetes-sigs/external-dns) that integrates with [PowerAdmin](https://github.com/poweradmin/poweradmin) DNS management system.\n\n## Features\n\n- Full integration with PowerAdmin API (v1 and v2 supported)\n- Supports A, AAAA, CNAME, TXT, MX, NS, SRV, PTR, and CAA record types\n- Domain filtering support\n- Dry-run mode for testing\n- Prometheus metrics endpoint\n- Health check endpoints for Kubernetes probes\n\n## Requirements\n\n- PowerAdmin with API enabled (v1 or v2)\n- API key with appropriate permissions\n- Kubernetes cluster (for deployment)\n- ExternalDNS v0.20.0 or later\n\n## Compatibility\n\n| Webhook Version | PowerAdmin Version | Go | Notes |\n|---|---|---|---|\n| 1.2.6+ | 4.3.0+ (v2), 4.1.0+ (v1) | \u003e= 1.26.3 | Go bumped for GO-2026-4918 |\n| 1.2.0 - 1.2.5 | 4.3.0+ (v2), 4.1.0+ (v1) | \u003e= 1.23 | v2 wrapped API responses |\n| 1.0.0 - 1.1.2 | 4.1.0 - 4.2.x | \u003e= 1.23 | Initial release |\n\n## Configuration\n\nThe webhook is configured via environment variables:\n\n| Variable | Required | Default | Description |\n|----------|----------|---------|-------------|\n| `POWERADMIN_URL` | Yes | - | Base URL of your PowerAdmin instance |\n| `POWERADMIN_API_KEY` | Yes | - | API key for authentication |\n| `POWERADMIN_API_VERSION` | No | `v2` | API version to use (`v1` or `v2`) |\n| `DOMAIN_FILTER` | No | - | Comma-separated list of domains to manage |\n| `EXCLUDE_DOMAIN_FILTER` | No | - | Comma-separated list of domains to exclude |\n| `REGEXP_DOMAIN_FILTER` | No | - | Regex pattern for domain filtering |\n| `SERVER_HOST` | No | `localhost` | Webhook server bind address |\n| `SERVER_PORT` | No | `8888` | Webhook server port |\n| `METRICS_HOST` | No | `0.0.0.0` | Metrics/health server bind address |\n| `METRICS_PORT` | No | `8080` | Metrics/health server port |\n| `SERVER_READ_TIMEOUT` | No | `5s` | HTTP server read timeout |\n| `SERVER_WRITE_TIMEOUT` | No | `10s` | HTTP server write timeout |\n| `LOG_LEVEL` | No | `info` | Log level (debug, info, warn, error) |\n| `LOG_FORMAT` | No | `text` | Log format (text, json) |\n| `DRY_RUN` | No | `false` | Enable dry-run mode |\n\n## Building\n\n### From Source\n\n```bash\n# Build the binary\nmake build\n\n# Run tests\nmake test\n\n# Build Docker image\nmake docker-build\n```\n\n### Docker\n\nPre-built images are available from:\n- GitHub Container Registry: `ghcr.io/poweradmin/external-dns-poweradmin-webhook`\n- Docker Hub: `docker.io/poweradmin/external-dns-poweradmin-webhook`\n\n```bash\n# Pull from GitHub Container Registry\ndocker pull ghcr.io/poweradmin/external-dns-poweradmin-webhook:latest\n\n# Or pull from Docker Hub\ndocker pull poweradmin/external-dns-poweradmin-webhook:latest\n\n# Build locally\ndocker build -t poweradmin/external-dns-poweradmin-webhook:latest .\n```\n\n## Deployment\n\n### Helm\n\nThe recommended way to deploy is using the [ExternalDNS Helm chart](https://github.com/kubernetes-sigs/external-dns/tree/master/charts/external-dns).\n\nAdd the ExternalDNS Helm repository:\n\n```shell\nhelm repo add external-dns https://kubernetes-sigs.github.io/external-dns/\nhelm repo update\n```\n\nCreate a secret with your PowerAdmin credentials:\n\n```shell\nkubectl create namespace external-dns\n\nkubectl create secret generic poweradmin-credentials \\\n  --from-literal=POWERADMIN_URL=https://poweradmin.example.com \\\n  --from-literal=POWERADMIN_API_KEY=your-api-key \\\n  -n external-dns\n```\n\nCreate a Helm values file `external-dns-poweradmin-values.yaml`:\n\n```yaml\nnamespace: external-dns\npolicy: sync\nsources:\n  - service\n  - ingress\n\nprovider:\n  name: webhook\n  webhook:\n    image:\n      repository: ghcr.io/poweradmin/external-dns-poweradmin-webhook\n      tag: latest  # replace with a specific version\n    env:\n      - name: POWERADMIN_URL\n        valueFrom:\n          secretKeyRef:\n            name: poweradmin-credentials\n            key: POWERADMIN_URL\n      - name: POWERADMIN_API_KEY\n        valueFrom:\n          secretKeyRef:\n            name: poweradmin-credentials\n            key: POWERADMIN_API_KEY\n      - name: POWERADMIN_API_VERSION\n        value: \"v2\"\n      - name: DOMAIN_FILTER\n        value: \"example.com\"  # replace with your domain(s)\n      - name: SERVER_HOST\n        value: \"localhost\"\n    livenessProbe:\n      httpGet:\n        path: /healthz\n        port: http-webhook\n      initialDelaySeconds: 10\n      timeoutSeconds: 5\n    readinessProbe:\n      httpGet:\n        path: /readyz\n        port: http-webhook\n      initialDelaySeconds: 10\n      timeoutSeconds: 5\n```\n\nInstall ExternalDNS with Helm:\n\n```shell\nhelm install external-dns-poweradmin external-dns/external-dns \\\n  -f external-dns-poweradmin-values.yaml \\\n  -n external-dns\n```\n\n### Kubernetes (manual)\n\nAlternatively, you can deploy using raw manifests. The webhook runs as a sidecar container alongside ExternalDNS.\n\n1. Create a namespace:\n```bash\nkubectl create namespace external-dns\n```\n\n2. Create the secret with your PowerAdmin credentials:\n```bash\nkubectl create secret generic poweradmin-credentials \\\n  --from-literal=POWERADMIN_URL=https://poweradmin.example.com \\\n  --from-literal=POWERADMIN_API_KEY=your-api-key \\\n  -n external-dns\n```\n\n3. Apply the deployment:\n```bash\nkubectl apply -f deploy/kubernetes/deployment.yaml\n```\n\n### Local Testing\n\n```bash\nexport POWERADMIN_URL=https://poweradmin.example.com\nexport POWERADMIN_API_KEY=your-api-key\nexport DOMAIN_FILTER=example.com\n\n./external-dns-poweradmin-webhook\n```\n\n## API Endpoints\n\n### Webhook Endpoints (localhost:8888)\n\n| Endpoint | Method | Description |\n|----------|--------|-------------|\n| `/` | GET | Negotiate capabilities and return domain filter |\n| `/records` | GET | Get current DNS records |\n| `/records` | POST | Apply DNS record changes |\n| `/adjustendpoints` | POST | Adjust endpoints before applying |\n\n### Health/Metrics Endpoints (0.0.0.0:8080)\n\n| Endpoint | Method | Description |\n|----------|--------|-------------|\n| `/healthz` | GET | Liveness probe |\n| `/readyz` | GET | Readiness probe |\n| `/metrics` | GET | Prometheus metrics |\n\n## PowerAdmin API Requirements\n\nThe webhook supports both PowerAdmin API v1 and v2. By default, v2 is used. To use v1, set `POWERADMIN_API_VERSION=v1`.\n\nEnsure your PowerAdmin instance has:\n\n1. API enabled (v1 or v2)\n2. An API key created with permissions to:\n   - List zones\n   - List records\n   - Create records\n   - Update records\n   - Delete records\n\n## Development\n\n### Project Structure\n\n```\n.\n├── cmd/\n│   └── webhook/\n│       └── main.go           # Application entry point\n├── internal/\n│   └── poweradmin/\n│       ├── client.go         # PowerAdmin API client\n│       ├── provider.go       # ExternalDNS provider implementation\n│       └── provider_test.go  # Provider tests\n├── deploy/\n│   └── kubernetes/\n│       └── deployment.yaml   # Kubernetes deployment manifest\n├── Dockerfile\n├── Makefile\n├── go.mod\n└── README.md\n```\n\n### Running Tests\n\n```bash\nmake test\n```\n\n### Linting\n\n```bash\nmake lint\n```\n\n## License\n\nMIT License - see [LICENSE](LICENSE) for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpoweradmin%2Fexternal-dns-poweradmin-webhook","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpoweradmin%2Fexternal-dns-poweradmin-webhook","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpoweradmin%2Fexternal-dns-poweradmin-webhook/lists"}