{"id":34140833,"url":"https://github.com/containeroo/cfop-generator","last_synced_at":"2026-06-09T07:31:06.587Z","repository":{"id":292536313,"uuid":"862997530","full_name":"containeroo/cfop-generator","owner":"containeroo","description":"CLI that generates cloudflare-operator DNSRecord objects based on Cloudflare zonefiles.","archived":false,"fork":false,"pushed_at":"2026-02-16T18:09:51.000Z","size":28,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-02-17T00:53:00.689Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/containeroo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2024-09-25T14:40:56.000Z","updated_at":"2026-02-16T18:09:51.000Z","dependencies_parsed_at":"2025-05-14T18:30:34.940Z","dependency_job_id":null,"html_url":"https://github.com/containeroo/cfop-generator","commit_stats":null,"previous_names":["containeroo/cfop-generator"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/containeroo/cfop-generator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/containeroo%2Fcfop-generator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/containeroo%2Fcfop-generator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/containeroo%2Fcfop-generator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/containeroo%2Fcfop-generator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/containeroo","download_url":"https://codeload.github.com/containeroo/cfop-generator/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/containeroo%2Fcfop-generator/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34096950,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-09T02:00:06.510Z","response_time":63,"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":"2025-12-15T02:58:23.763Z","updated_at":"2026-06-09T07:31:06.582Z","avatar_url":"https://github.com/containeroo.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cfop-generator\n\n`cfop-generator` converts a Cloudflare zone export file into Cloudflare Operator `DNSRecord` YAML manifests.\n\n## Requirements\n\n- Go `1.26.0+` if building from source.\n- A Cloudflare zone export file (plain text) as input.\n\n## Install\n\n### Build from source\n\n```bash\ngo install github.com/containeroo/cfop-generator@latest\n```\n\n### Run locally from this repository\n\n```bash\ngo run . -file ./testdata/example.com.txt\n```\n\n## Auth and setup\n\n- `cfop-generator` does not call Cloudflare APIs and does not require API credentials.\n- Authentication is handled later by the controller/operator that applies the generated YAML.\n- Export your zone file from Cloudflare first, then pass it with `-file`.\n\n## Usage\n\n```bash\ncfop-generator -file \u003czonefile\u003e [-proxied=true|false] [-output \u003cpath\u003e]\ncfop-generator completion bash|zsh\ncfop-generator version\n```\n\n### Important flags\n\n- `-file` (required): path to the exported zone file.\n- `-proxied` (default `true`): sets `spec.proxied` for generated records.\n- `-output` (optional): writes output to a file using file mode `0600`.\n\n### Examples\n\n```bash\n# Print YAML to stdout\ncfop-generator -file ./example.com.txt\n\n# Disable proxying in generated records\ncfop-generator -file ./example.com.txt -proxied=false\n\n# Write secure output file (mode 0600)\ncfop-generator -file ./example.com.txt -output ./records.yaml\n```\n\n## Shell completion\n\nCompletion scripts are generated by the CLI and are produced during release builds (they are not stored as static tracked assets in this repository).\n\n### Bash\n\n```bash\ncfop-generator completion bash \u003e /usr/local/etc/bash_completion.d/cfop-generator\nsource /usr/local/etc/bash_completion.d/cfop-generator\n```\n\n### Zsh\n\n```bash\nmkdir -p \"${fpath[1]}\"\ncfop-generator completion zsh \u003e \"${fpath[1]}/_cfop-generator\"\nautoload -Uz compinit \u0026\u0026 compinit\n```\n\n## Security notes\n\n- Zone files can contain infrastructure details; treat them as sensitive.\n- Prefer `-output` for local files so generated manifests are written with restrictive permissions (`0600`).\n- Review generated manifests before committing or sharing them.\n\n## Behavior notes\n\n- `SOA` and `NS` records are skipped.\n- `MX` and `SRV` records are validated for expected field counts.\n- Output order is deterministic for stable diffs and reproducible output.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcontaineroo%2Fcfop-generator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcontaineroo%2Fcfop-generator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcontaineroo%2Fcfop-generator/lists"}