12 Commits

Author SHA1 Message Date
Kubernetes Prow Robot
0483ffde22
Merge pull request #3839 from matusf/fix/pdns-tls-on
Make TLS enabled by default for PowerDNS provider
2023-09-05 11:24:51 -07:00
Matúš Ferech
7aa9d25067
Align PDNS provider with other providers by removing MatchParent
PNDS provider is the only one which uses MatchParent functionality. The
MatchParent functionality breaks domain and regex domain filters. It
also makes PDNS provider behave differently than other providers while
having the same configuration. MatchParent can be replaced by using
multiple domain filters. After discussion with maintainers we concluded
that MatchParent should be removed.
2023-08-14 12:49:23 +02:00
Matúš Ferech
806209544c
Add test for regex domain filter
This test is expected to fail and aims to show that regex domain filter
is not working.
2023-08-14 11:14:18 +02:00
Matúš Ferech
721c4e2110
Make TLS enabled by default for PowerDNS provider
All of the providers have TLS enabled by default so this change will
make PDNS provider behave as exected. Additionally, enabling TLS
by default is a good practice and previous bahaviour was a bit
misleading. It was possible to pass `--tls-ca` without
`--pdns-tls-enabled` and the PDNS provider would ignore the tls and
instantiate client with disabled tls. This change adds a flag to disable
the tls: `--pdns-skip-tls-verify`. Similar flag is used by pihole and
bluecat providers.

Additionaly this change makes providing custom TLS CA optional. It if is
not provided. A system certificates will be used. This makes PDNS behave
the same as other providers.
2023-08-14 11:06:43 +02:00
Matúš Ferech
7f61bbae44
Remove redundant test
Omited TLS config is the same as empty TLS config. It will default to
the same value.
2023-08-14 10:56:27 +02:00
Matúš Ferech
2d34694860
Refactor PDNS provider TLS tests
Use factory function which creates new PDNS provider. The only
changing argument is TLSConfig, so we can default all of the rest.
2023-08-14 10:56:25 +02:00
Shchukin Konstantin
16b8192783 create an alias when creord in a zone other than the target 2023-01-24 12:10:28 +07:00
Andy Bursavich
74ffff6c26 gofumpt 2022-09-20 20:48:57 -07:00
Eugene Venter
e32daefbbc pdns: also match parent zones when partitioning zones 2021-05-31 10:03:06 +12:00
Dave Salisbury
f4a1b675a9 pdns_test: update multiple/mixed record expected values 2021-02-25 17:49:20 +11:00
Raffaele Di Fazio
82539e35a3 makes tests pass
Signed-off-by: Raffaele Di Fazio <difazio.raffaele@gmail.com>
2020-05-08 13:54:13 +02:00
Raffaele Di Fazio
db4224c705 restructures the providers (build only)
Signed-off-by: Raffaele Di Fazio <difazio.raffaele@gmail.com>
2020-05-08 13:05:17 +02:00