8886fe71ee
Fixes recursion being refused for external clients: the resolver had no allow-recursion, so BIND defaulted to localnets. Mirrors the puppet resolver config exactly. - add openforwarder BindView: match-clients = internal ACLs, recursion yes, allow-recursion/allow-query any (match-clients gates access) - add 4 BindACLs (acl-main.unkin.net / acl-dmz / acl-common / acl-nomad-jobs) from puppet acls.conf - add 26 conditional forward zones (unkin/consul/k8s/dmz upstreams), bound to the openforwarder view; needs operator v0.1.4 to render them on every pod - global forwarders 8.8.8.8/1.1.1.1 (puppet default) - bump operator image to v0.1.4
24 lines
596 B
YAML
24 lines
596 B
YAML
---
|
|
# openforwarder view, mirrored from puppet /etc/named/views.conf.
|
|
# match-clients gates access to internal networks; recursion/query are 'any'
|
|
# within the view since match-clients already restricts who reaches it.
|
|
apiVersion: bind.unkin.net/v1alpha1
|
|
kind: BindView
|
|
metadata:
|
|
name: openforwarder
|
|
namespace: bind-internal
|
|
spec:
|
|
clusterRef: bind-resolvers
|
|
order: 100
|
|
matchClients:
|
|
- acl-main.unkin.net
|
|
- acl-nomad-jobs
|
|
- acl-common
|
|
- acl-dmz
|
|
recursion: true
|
|
allowQuery:
|
|
- any
|
|
extraOptions:
|
|
- "allow-recursion { any; }"
|
|
- "allow-query-cache { any; }"
|