Skip to content

Commit

Permalink
feat: Add middleware for IP allowlist in puppetserver ingress route
Browse files Browse the repository at this point in the history
Signed-off-by: Shubham Gupta <[email protected]>
  • Loading branch information
Shubham Gupta committed Aug 22, 2024
1 parent f8f5399 commit 6ad2a8a
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,12 @@ spec:
services:
- name: puppetserver-{{ .Values.customerid }}-puppet
port: puppetserver
- match: HostSNI(`{{ .Values.customerid }}.puppetdb.obmondo.com`)
priority: 10
services:
- name: puppetserver-{{ .Values.customerid }}-puppetdb
port: pdb-https
middlewares:
- name: middleware-{{ .Values.customerid }}
tls:
passthrough: true
19 changes: 19 additions & 0 deletions argocd-helm-charts/puppetserver/templates/middleware.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
apiVersion: traefik.io/v1alpha1
kind: Middleware
metadata:
name: middleware-{{ .Values.customerid }}
spec:
ipAllowList:
sourceRange:
- "135.181.21.167"
- "135.181.21.154"
- "135.181.21.153"
- "135.181.223.235"
- "65.21.130.86"
- "65.21.130.85"
- "78.46.72.21"
- "176.9.124.207"
- "85.10.211.48"
- "138.201.82.121"
- "138.201.224.126"
- "172.20.0.0/16"

0 comments on commit 6ad2a8a

Please sign in to comment.