Commit graph

1350 commits

Author SHA1 Message Date
Tom Limoncelli 30146e8642
CHORE: Update dependencies (#1718) 2022-08-15 18:37:59 -04:00
Tom Limoncelli d1a63abc0d
CLOUDFLARE: Increase retry limits (#1713)
* change policy to 20, 1, 120 (20 retries, min delay 1 sec, max delay 2 minutes)
2022-08-15 18:30:21 -04:00
Tom Limoncelli 7dfd664a94
CHORE: Decrease the dependabot docker frequency (#1714) 2022-08-15 17:39:23 -04:00
dependabot[bot] 70e08fe4b8
CHORE: Bump actions/setup-go from 2 to 3 (#1712)
Bumps [actions/setup-go](https://github.com/actions/setup-go) from 2 to 3.
- [Release notes](https://github.com/actions/setup-go/releases)
- [Commits](https://github.com/actions/setup-go/compare/v2...v3)

---
updated-dependencies:
- dependency-name: actions/setup-go
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-08-15 12:20:58 -04:00
Chris Hunt cfc82c8e13
DOCS: Update with new release process (#1707)
* Update with new release process

* Move major bump to its own section; split step 1 into 2 parts

* Remove version number from main.go

* Linting

* Add example `git tag` command

* Try a different regex pattern for release note generation

Co-authored-by: Tom Limoncelli <tlimoncelli@stackoverflow.com>
2022-08-15 10:41:45 -04:00
Tom Limoncelli 9eda756a1b
CHORE: Update AZUREDNS deps, (#1706)
* Update AZURE_DNS deps
* CHORE: Reduce test runtime for AZURE_DNS,GANDI_V5,CLOUDFLAREAPI
2022-08-15 10:14:10 -04:00
Tom Limoncelli 1010138fb6 gofmt -s -w 2022-08-14 20:49:57 -04:00
Tom Limoncelli ccb582b278
CHORE: Linting (#1704)
* Remove deprecated io/ioutil
* fixup!
* staticcheck and linting
* revert models/provider.go
* Fix imports to new style
* linting
2022-08-14 20:46:56 -04:00
Grant e1b6b163d7
DOCS: Revert jquery update to version supported by bootstrap (#1703)
In https://github.com/StackExchange/dnscontrol/pull/1637 jquery was updated to a version not supported by bootstrap version used.

This causes the docs to throw an exception and example expand elements not to work.
2022-08-14 20:03:20 -04:00
Tom Limoncelli 3d694956ca
CHORE: Update dependencies (#1697)
* CHORE: Update dependencies

* update cli
2022-08-14 13:15:07 -04:00
Tom Limoncelli cd61c2c766
CHORE: Remove deprecated io/ioutil (#1699)
* Remove deprecated io/ioutil

* fixup!

* fixup!
2022-08-14 12:50:15 -04:00
Vatsalya Goel 5e8bb6e461
AZURE_DNS: Adopt new "armdns" SDK (#1701)
* Switch to the new Azure sdk for go

* use codeql 1.18 as 1.17 doesn't work with azidentity

Co-authored-by: Tom Limoncelli <tlimoncelli@stackoverflow.com>
2022-08-14 07:42:41 -04:00
Tom Limoncelli 09a53b4d68
CLOUDFLAREAPI: Clarify source of error in message (#1700) 2022-08-14 07:33:05 -04:00
Chris Hunt b4ebe5b54b
maint: Update GoReleaser and CircleCI configs to publish multi-arch Docker image (#1682)
- Improve the filtering for the `release` job only on tag creation.
- Removes the dependency on `integration-tests` job from the `release` job. The flaky tests were frequently blocking the release.
  - Integration tests will now only run on PRs.
- Restores the Docker build/publish
  - Includes amd64, arm64, and i386 multi-arch manifest
- Uploads [artifacts](https://app.circleci.com/pipelines/github/StackExchange/dnscontrol/1285/workflows/b40ce89b-5a60-4ed2-874b-d47f383122b2/jobs/10051/artifacts) to CircleCI
- Fixes linting issues with README
- Add [CircleCI Insights badge](https://github.com/StackExchange/dnscontrol/tree/fix/cci#dnscontrol) to README
- Uploads deb and rpm packages to [CloudSmith](https://cloudsmith.io/~stackoverflow/repos/dnscontrol/packages/)
  - TODO: It looks like CloudSmith treats both formats as duplicates and appends a `-1` to the version.
  - TODO: Push the Docker images to CloudSmith as well (alternate to Docker Hub and their aggressive rate limits).
- TODO: The automated release notes regex patterns don't work for most of the commits. See [releases/tag/v3.18.2-pre013](https://github.com/StackExchange/dnscontrol/releases/tag/v3.18.2-pre013)
2022-08-12 16:08:16 -04:00
Jeffrey Cafferata bd048944a3
Make the Docker image build version DOCKER_IMAGE_VERSION aware of the configured version in main.go. (#1694)
Fixes #1687
2022-08-12 08:47:13 -04:00
Tom Limoncelli 31723ad146
PERFORMANCE: Refactor auditrecords.go to loop only once #1570 (#1658)
* stash

* Use rejectif idea

* rename

* wip!

* Convert old systems to new

* fixup!

* fix typo
2022-08-11 17:24:47 -04:00
Tom Limoncelli 443b99aa59
CHORE: Remove duplicate ToDiff code (#1684) 2022-08-11 16:13:24 -04:00
Tom Limoncelli d6f1575ae5
BUG: MSDNS and CSCGLOBAL get records twice (#1688) 2022-08-11 15:40:13 -04:00
Tom Limoncelli 619758a978
Create SECURITY.md (#1685)
Co-authored-by: Jeffrey Cafferata <jeffrey@jcid.nl>

* Update SECURITY.md
2022-08-11 13:18:11 -04:00
Patrik Kernstock fd96acbc06
Change INWX maintainer to patschi (#1692)
Co-authored-by: Tom Limoncelli <tlimoncelli@stackoverflow.com>
2022-08-11 13:17:42 -04:00
Tom Limoncelli 83a4b6a2f4
Remove ACTIVEDIRECTORY_PS (#1680) 2022-08-11 13:15:19 -04:00
Tom Limoncelli f24c250c46
CLOUDFLARE: Error messages should indicate which cred entry (#1690) 2022-08-11 13:10:06 -04:00
Tom Limoncelli e49f743846
CHORE: Remove convertzone (#1683) 2022-08-11 13:09:09 -04:00
Tom Limoncelli f3767f2f0c
Announce OctoDNS decomm. (#1679)
* Announce OctoDNS decomm.

* Update README.md
2022-08-11 11:49:49 -04:00
Jeffrey Cafferata 2673217e3c
Updated the Circle CI multi-arch environment variable. (#1686) 2022-08-11 09:14:28 -04:00
Jeffrey Cafferata 4990170663
CHORE: Fix Docker Hub from the Circle CI workflow. (#1681) 2022-08-11 09:00:19 -04:00
Tom Limoncelli ef5da756d6
Release v3.18.1 (#1678) 2022-08-10 13:40:55 -04:00
dependabot[bot] 55fbbf3355
CHORE: Bump golang from f8e128f to 0eb08c8 (#1676)
Bumps golang from `f8e128f` to `0eb08c8`.

---
updated-dependencies:
- dependency-name: golang
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Tom Limoncelli <tlimoncelli@stackoverflow.com>
2022-08-10 13:03:17 -04:00
dependabot[bot] f0aac108c4
CHORE: Bump alpine from 6c1b238 to bc41182 (#1677)
Bumps alpine from `6c1b238` to `bc41182`.

---
updated-dependencies:
- dependency-name: alpine
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-08-10 13:02:13 -04:00
dependabot[bot] 9756778281
CHORE: Bump alpine from 3.16.1 to 3.16.2 (#1670)
Bumps alpine from 3.16.1 to 3.16.2.

---
updated-dependencies:
- dependency-name: alpine
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Tom Limoncelli <tlimoncelli@stackoverflow.com>
2022-08-09 21:47:19 -04:00
Costas Drogos dbfd2b7cb4
ns1: workaround an issue with ns1 API (#1671)
NS1 api returns a different message these days, which breaks error handling.

Until a fix is merged upstream, work around the issue by attempting to match the
stray error ourselves.

relates to #1667.
2022-08-09 16:29:54 -04:00
Tom Limoncelli eba4155cb9
CSCGLOBAL: Improve performance by waiting less (#1669)
* Fix broken test
* Revert to the slow+safe CSC algorithm
* Instead of waiting for COMPLETED, wait for PROPAGATING to begin.
* improve error messages
* cleanup
2022-08-09 10:00:03 -04:00
Tom Limoncelli 9dba97135b
Release v3.18.0 (#1665) 2022-08-08 21:32:56 -04:00
Tom Limoncelli ec8bfe4b6d
CSCGLOBAL: Use slow and safe algorithm (#1663)
* Fix broken test

* CLOUDFLARE: Fix missing nameserver bug

* CSCGLOBAL: Catch more status states

* wip!

* remove extra print

* Revert to the slow+safe CSC algorithm
2022-08-08 13:23:47 -04:00
Tom Limoncelli dd3416674f
CLOUDFLARE: Fix domain list cache error (#1662)
* Fix broken test

* CLOUDFLARE: Fix missing nameserver bug

* CSCGLOBAL: Catch more status states

* wip!

* remove extra print
2022-08-08 13:00:58 -04:00
Tom Limoncelli 0a6fa677f3
Fix broken test (#1659) 2022-08-08 10:30:21 -04:00
Jeffrey Cafferata 1b3471835c
TRANSIP: Enable ALIAS-record (#1661)
- https://www.transip.nl/nieuws/alias-records/
2022-08-08 08:35:09 -04:00
MisterErwin 7865e37c8f
Add RWTH provider (#1629)
* Add RWTH provider

* fix Owners order

* Reorganize RWTH Provider

* Fix staticcheck and code style issues

Co-authored-by: Tom Limoncelli <tlimoncelli@stackoverflow.com>
2022-08-04 14:40:27 -04:00
dependabot[bot] ba747fa5a9
CHORE: Bump golang from f734a85 to f8e128f (#1657)
Bumps golang from `f734a85` to `f8e128f`.

---
updated-dependencies:
- dependency-name: golang
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-08-04 12:57:25 -04:00
dependabot[bot] 3673433f99
CHORE: Bump golang from 1.18.5-alpine3.16 to 1.19.0-alpine3.16 (#1654)
Bumps golang from 1.18.5-alpine3.16 to 1.19.0-alpine3.16.

---
updated-dependencies:
- dependency-name: golang
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Tom Limoncelli <tlimoncelli@stackoverflow.com>
2022-08-03 13:56:24 -04:00
Costas Drogos ac94f1f513
NS1: Update ns1 library to 2.6.5 (#1655)
Fixes #1565
2022-08-03 13:55:39 -04:00
dependabot[bot] 4f2a624ce6
CHORE: Bump golang from c722e06 to dda10a0 (#1652)
Bumps golang from `c722e06` to `dda10a0`.

---
updated-dependencies:
- dependency-name: golang
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-08-02 13:00:17 -04:00
Tom Limoncelli 623333aff1
CHORE: go mod tidy (#1651) 2022-08-01 19:59:42 -04:00
Jakob Ackermann a00572af4a
Create zone before use (#1642)
* preview/push: ensure zones exists before querying them

Signed-off-by: Jakob Ackermann <das7pad@outlook.com>

* HETZNER: reset zone cache when creating a new zone

Signed-off-by: Jakob Ackermann <das7pad@outlook.com>

* ROUTE53: reset zone cache when creating a new zone

Signed-off-by: Jakob Ackermann <das7pad@outlook.com>

Co-authored-by: Tom Limoncelli <tlimoncelli@stackoverflow.com>
2022-08-01 14:44:17 -04:00
Tom Limoncelli bd1a7f26dc
Update go command (#1650) 2022-08-01 14:43:00 -04:00
dependabot[bot] 358ca3917a
Bump golang from 1.18.4-alpine3.16 to 1.18.5-alpine3.16 (#1649)
Bumps golang from 1.18.4-alpine3.16 to 1.18.5-alpine3.16.

---
updated-dependencies:
- dependency-name: golang
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-08-01 13:17:04 -04:00
Tom Limoncelli 44622d6b0e
Upgrade many dependencies (#1648)
Updating github.com/akamai/AkamaiOPEN-edgegrid-golang to version 1.2.1...
Updating github.com/aws/aws-sdk-go-v2 to version 1.16.7...
Updating github.com/aws/aws-sdk-go-v2/config to version 1.15.14...
Updating github.com/aws/aws-sdk-go-v2/credentials to version 1.12.9...
Updating github.com/aws/aws-sdk-go-v2/service/route53 to version 1.21.3...
Updating github.com/aws/aws-sdk-go-v2/service/route53domains to version 1.12.8...
Updating github.com/cloudflare/cloudflare-go to version 0.45.0...
Updating github.com/mittwald/go-powerdns to version 0.6.0...
Updating github.com/tdewolff/minify/v2 to version 2.12.0...
Updating github.com/urfave/cli/v2 to version 2.11.1...
Updating golang.org/x/exp to version 0.0.0-20220722155223-a9213eeb770e...
Updating golang.org/x/net to version 0.0.0-20220728211354-c7608f3a8462...
Updating golang.org/x/oauth2 to version 0.0.0-20220722155238-128564f6959c...
Updating google.golang.org/api to version 0.90.0...
2022-08-01 12:59:33 -04:00
Simen Bai e9510da434
Domainnameshop provider (#1625)
* Added basic structure for domain name shop

* Finished proof of concept for domainnameshop

* Fixed handeling of IDNA for CNAME records

* Updated documentation notes

* Added docs

* Ran linter and vet

* Removed proxy config used for debugging

* Ran go generate

* Fixed issue with TTLs being restricted to a multiple of 60

* Ran tests, vet and linting and fixed flaws

* Fixed typo in docs

* Improved code based on feedback

* Fixed issues with TXT records not working properly

* Refactored according to new file layout proposed

* Updated documentation matrix

* Suggestions and corrections

* Corrected according to suggestions

Co-authored-by: Simen Bai <git@simenbai.no>
Co-authored-by: Tom Limoncelli <tlimoncelli@stackoverflow.com>
2022-08-01 12:01:37 -04:00
Amelia Aronsohn befb52be86
DNSIMPLE: Fix TXT Handling, Second Edition (#1624)
* Fix typo and add sandbox information

* Use SetTargetTXT in GetZoneRecords

This fixes the behavior documented in #1622

Also apply cleanup to GetZoneRecords

* Remove SetTargetTXT, does not work in all tests

* Set The most correct TXT handling

* Well, There's your problem

* Add an audit and test for unpaired quotes

* Add some commentary

Co-authored-by: Tom Limoncelli <tlimoncelli@stackoverflow.com>
2022-07-22 09:36:28 -04:00
Tom Limoncelli 15e6c95042
CSCGLOBAL: Lazy-check API results, saving 5-7 minutes per domain (#1638) 2022-07-21 14:35:37 -04:00