aboutsummaryrefslogtreecommitdiff
path: root/plugin/pkg/fall/fall.go (follow)
AgeCommit message (Collapse)AuthorFilesLines
2021-05-27deprecate Normalize and MustNormalize (#4648)Gravatar Chris O'Haver 1-1/+1
* deprecate normalize and mustnormalize Signed-off-by: Chris O'Haver <cohaver@infoblox.com> * add runtime warning Signed-off-by: Chris O'Haver <cohaver@infoblox.com> * elaborate runtime warning Signed-off-by: Chris O'Haver <cohaver@infoblox.com> * include caller info Signed-off-by: Chris O'Haver <cohaver@infoblox.com>
2021-05-17reverse zone: fix Normalize (#4621)Gravatar Miek Gieben 1-3/+4
Make normalize return multiple "hosts" (= reverse zones) when a non-octet boundary cidr is given. Added pkg/cidr package that holds the cidr calculation routines; felt they didn't really fit dnsutil. This change means the IPNet return parameter isn't needed, the hosts are all correct. The tests that tests this is also removed: TestSplitHostPortReverse The fallout was that zoneAddr _also_ doesn't need the IPNet member, that in turn make it visible that zoneAddr in address.go duplicated a bunch of stuff from register.go; removed/refactored that too. Created a plugin.OriginsFromArgsOrServerBlock to help plugins do the right things, by consuming ZONE arguments; this now expands reverse zones correctly. This is mostly mechanical. Remove the reverse test in plugin/kubernetes which is a copy-paste from a core test (which has since been fixed). Remove MustNormalize as it has no plugin users. This change is not backwards compatible to plugins that have a ZONE argument that they parse in the setup util. All in-tree plugins have been updated. Signed-off-by: Miek Gieben <miek@miek.nl>
2020-02-18Replacing 'HTTP' by 'HTTPS' for securing links (#3682)Gravatar LongKB 1-1/+1
Currently, when we access github.com with HTTP, it is redirected to HTTPS automatically. So this commit aims to replace http://github.com by https://github.com for security. Signed-off-by: Kim Bao Long <longkb@vn.fujitsu.com>
2019-11-15pkg/fall: add (a lot of) guidance (#3450)Gravatar Miek Gieben 1-1/+13
update the pkg doc to talk about various trade off Fixes #2723 Signed-off-by: Miek Gieben <miek@miek.nl>
2018-01-09pkg/fall: make Zero and Root vars not funcs (#1367)Gravatar Miek Gieben 1-3/+3
These can be just vars. Think that was intended as well.
2018-01-07Simplify plugin/pkg/fall (#1358)Gravatar John Belamaric 1-49/+30
* Simplify plugin/pkg/fall * Remove unused import * Fix fall_test * Get fall coverage to 100% just because * gofmt. sigh.
2018-01-07Add pkg/fall for Fallthrough (#1355)Gravatar Miek Gieben 1-0/+77
* Add pkg/fall for Fallthrough Move this into it's own package to facilitate tests. Important bug was fixed: make the names fully qualified. Add fall package to hosts, reverse, etcd, and fix kubernetes and any tests. The k8s tests are still as-is, might need a future cleanup.