# Internal client ACLs, mirrored from puppet /etc/named/acls.conf.
---
apiVersion: bind.unkin.net/v1alpha1
kind: BindACL
metadata:
  name: acl-main.unkin.net
  namespace: bind-internal
spec:
  clusterRef: bind-resolvers
  entries:
    - 10.42.0.0/16   # k8s pod network (kube-proxy masquerades node-originated LB queries)
    - 198.18.1.10/32
    - 198.18.2.160/27
    - 198.18.21.160/27
    - 198.18.2.192/27
    - 198.18.21.192/27
    # Admin/management access
    - 10.10.12.200/32   # benvin workstation (wireguard)
    - 198.18.21.160/32  # benvin router (also within 198.18.21.160/27 above)
    - 198.18.13.0/24
    - 198.18.14.0/24
    - 198.18.15.0/24
    - 198.18.16.0/24
    - 198.18.17.0/24
    - 198.18.18.0/24
    - 198.18.19.0/24
    - 198.18.20.0/24
    - 198.18.21.0/24
    - 198.18.22.0/24
    - 198.18.23.0/24
---
apiVersion: bind.unkin.net/v1alpha1
kind: BindACL
metadata:
  name: acl-dmz
  namespace: bind-internal
spec:
  clusterRef: bind-resolvers
  entries:
    - 198.18.24.0/24
---
apiVersion: bind.unkin.net/v1alpha1
kind: BindACL
metadata:
  name: acl-common
  namespace: bind-internal
spec:
  clusterRef: bind-resolvers
  entries:
    - 198.18.25.0/24
    - 198.18.26.0/24
    - 198.18.27.0/24
    - 198.18.28.0/24
    - 198.18.29.0/24
---
apiVersion: bind.unkin.net/v1alpha1
kind: BindACL
metadata:
  name: acl-nomad-jobs
  namespace: bind-internal
spec:
  clusterRef: bind-resolvers
  entries:
    - 198.18.64.0/24
    - 198.18.65.0/24
    - 198.18.66.0/24
    - 198.18.67.0/24
    - 198.18.68.0/24
    - 198.18.69.0/24
