Skip to content

Commit 02a4641

Browse files
TomOnTimetlimoncelli26claude
authored
AUTODNS: support init command (#4272)
## Summary Register `CredsMetadata` for AUTODNS so the provider is offered by the `dnscontrol init` wizard. Fields mirror the entries in `integrationTest/profiles.json`. CC: @arnoschoon ## Test plan - [ ] `go build ./...` passes - [ ] `dnscontrol init` lists AUTODNS as an option - [ ] Verify any `// TODO: Verify` annotations in the diff (e.g. `PortalURL`) 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: Tom Limoncelli <tlimoncelli@coreweave.com> Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent ff7b561 commit 02a4641

1 file changed

Lines changed: 32 additions & 0 deletions

File tree

providers/autodns/autoDnsProvider.go

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,38 @@ func init() {
5555
}, features)
5656
providers.RegisterDomainServiceProviderType(providerName, fns, features)
5757
providers.RegisterMaintainer(providerName, providerMaintainer)
58+
providers.RegisterCredsMetadata(providerName, providers.CredsMetadata{
59+
DisplayName: "AutoDNS",
60+
Kind: providers.KindDNS | providers.KindRegistrar,
61+
DocsURL: "https://docs.dnscontrol.org/provider/autodns",
62+
PortalURL: "https://login.autodns.com/", // TODO: Verify
63+
Fields: []providers.CredsField{
64+
{
65+
Key: "username",
66+
Label: "Username",
67+
Help: "AutoDNS / Domainrobot username.",
68+
Required: true,
69+
},
70+
{
71+
Key: "password",
72+
Label: "Password",
73+
Help: "AutoDNS / Domainrobot password.",
74+
Secret: true,
75+
Required: true,
76+
},
77+
{
78+
Key: "context",
79+
Label: "Context",
80+
Help: "Value for the X-Domainrobot-Context header.",
81+
Required: true,
82+
},
83+
{
84+
Key: "children",
85+
Label: "Include sub-user zones",
86+
Help: "Set to \"true\" so get-zones also lists zones owned by sub-users (master/admin accounts). Optional; defaults to off.",
87+
},
88+
},
89+
})
5890
}
5991

6092
func newAutoDNSProvider(settings map[string]string) *autoDNSProvider {

0 commit comments

Comments
 (0)