-
Notifications
You must be signed in to change notification settings - Fork 407
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
V3.16.0: dnscontrol check fail #1507
Comments
Thanks for reporting that. I fixed something similar a few weeks ago. This is definitely a bug. Can you help me reproduce the issue locally? Is there a minimal dnsconfig.js (or redacted file) that you can provide? |
Hi.
I changed Best regards. |
same issue here. var DNS_CLOUDFLARE = NewDnsProvider('cloudflare', {'manage_redirects': true});
var DNS_CLOUDFLARE = NewDnsProvider('cloudflare', 'CLOUDFLAREAPI', {'manage_redirects': true});
|
I've fixed the problem with #1508 but I'm not entirely happy with it. Cause of the bugThe "check" subcommand performs all validations that can be done without reading creds.json. The basic idea is that you have some users that aren't allowed to see creds.json (because it includes secrets) but are involved in submitting PRs. They should be able to do a basic syntax check without creds.json access. Testing that does require access to the creds.json file is done by Prior to v3.16, Starting in v3.16, if dnsconfig.js uses the new syntax for
I can think of a few ways to move forward: Path 1: "check" doesn't do per-provider AuditRecords().Simply skip tests that can't be done (as implemented in #1508)
Path 2: Opportunistically read creds.jsonChange
Path 3: Support the old syntax for users that want check to run AuditRecords()The code still runs AutoRecords() when the old syntax is used (the 2-parameter FYI: The message looks like this:
Path 4: Revert "plan A" and try Plan B or CThe original proposal (RFC: Include the provider type in creds.json, remove it from dnsconfig.js ) had 3 proposed ways to achieve this goal. Plan B and C would not have the problem described here. In particular, provider names would embed their type, thus the code would always know the type. For example,
Final thoughtsI'm probably over-thinking this. Having the TXT audit run on "preview" instead of "check" is no big loss. The check still runs, just shifted right a little. Therefore, Path 1 is probably good enough. CC @philpennock since he had strong feelings about the RFC. |
I had a wide-margin preference for not embedding structure inside string keys in JSON, that's it. Ultimately, with B or C you're saying "don't repeat information" and now also "but we should repeat information, just embed it inside one string" and then ... apparently repeat it in both files after all. My reading of #1457 was that the provider typing would only be in Cautiously: path 1 seems sane here. |
Thanks for the feedback. I think I'm over-thinking this (really? 4 paths forward?). I've implemented "path 1" and I think that's good enough. Thanks! |
Hello. Thank you for the release of V3.16.1. The error is as follows.
The contents of
Best regards. |
Hello. Thank you for the release of V3.16.2. Best regards. |
Hello.
I have updated from dnscontrol v3.15.0.
And I updated
creds.json
anddnsconfig.js
according to the instructions ofdnscontrol preview
, but I get the following error indnscontrol check
.When I specified the type in
NewDnsProvider
ofdnscontrol.js
as before V3.15.0, the check was successful.Isn't
dnscontrol check
compatible with the new method?Best regards.
The text was updated successfully, but these errors were encountered: