Compare commits
32 commits
deploy/pro
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
611bff8ce7 | ||
|
|
28ef15f91a | ||
|
|
90f403d208 | ||
|
|
ddca4c132f | ||
|
|
4dd19c5573 | ||
|
|
d7e25ba116 | ||
|
|
7c98de56a2 | ||
|
|
844cdf37d9 | ||
|
|
1dc29570d7 | ||
|
|
61a65d5d8c | ||
|
|
930bbc2784 | ||
|
|
62751a3d65 | ||
|
|
4878124ee0 | ||
|
|
ae56d7324e | ||
|
|
898a8042e9 | ||
|
|
a456723aba | ||
|
|
bad39cedbf | ||
|
|
786f6708b9 | ||
|
|
3a2406bb8f | ||
|
|
843156bac8 | ||
|
|
32ff851bd2 | ||
|
|
f1faaeb419 | ||
|
|
3a089a5747 | ||
|
|
29cf47a488 | ||
|
|
237dc7635e | ||
| 94c2311fd1 | |||
|
|
57f904b7ea | ||
|
|
a7583e5495 | ||
|
|
dd3b3a2d18 | ||
|
|
cc5aed0bfd | ||
|
|
eff7baf3fe | ||
|
|
c8b18faba8 |
4 changed files with 36 additions and 88 deletions
|
|
@ -2,6 +2,7 @@ ci_access:
|
||||||
projects:
|
projects:
|
||||||
- id: ldc-web/projets/agis
|
- id: ldc-web/projets/agis
|
||||||
- id: ldc-web/projets/auguste-lambert
|
- id: ldc-web/projets/auguste-lambert
|
||||||
|
- id: ldc-web/projets/barfid
|
||||||
- id: ldc-web/projets/bien-etre-animal
|
- id: ldc-web/projets/bien-etre-animal
|
||||||
- id: ldc-web/projets/boutique-cnc-sable
|
- id: ldc-web/projets/boutique-cnc-sable
|
||||||
- id: ldc-web/projets/boutique-jeusselin
|
- id: ldc-web/projets/boutique-jeusselin
|
||||||
|
|
@ -12,9 +13,9 @@ ci_access:
|
||||||
- id: ldc-web/projets/domaine-de-lanvaux
|
- id: ldc-web/projets/domaine-de-lanvaux
|
||||||
- id: ldc-web/projets/doux
|
- id: ldc-web/projets/doux
|
||||||
- id: ldc-web/projets/espri-restauration
|
- id: ldc-web/projets/espri-restauration
|
||||||
|
- id: ldc-web/projets/favid
|
||||||
- id: ldc-web/projets/galina
|
- id: ldc-web/projets/galina
|
||||||
- id: ldc-web/projets/gen-game-web-instances/janze
|
- id: ldc-web/projets/gen-game-web-instances/auguste-lambert
|
||||||
- id: ldc-web/projets/gen-game-web-instances/l-orleanais-jeu
|
|
||||||
- id: ldc-web/projets/gen-game-web-instances/le-gaulois-eveillez-vos-papilles
|
- id: ldc-web/projets/gen-game-web-instances/le-gaulois-eveillez-vos-papilles
|
||||||
- id: ldc-web/projets/gen-game-web-instances/le-gaulois-tdf-2024
|
- id: ldc-web/projets/gen-game-web-instances/le-gaulois-tdf-2024
|
||||||
- id: ldc-web/projets/gen-game-web-instances/le-gaulois-chequier-40-2025
|
- id: ldc-web/projets/gen-game-web-instances/le-gaulois-chequier-40-2025
|
||||||
|
|
@ -23,7 +24,6 @@ ci_access:
|
||||||
- id: ldc-web/projets/gen-game-web-instances/le-gaulois-sportif-2026
|
- id: ldc-web/projets/gen-game-web-instances/le-gaulois-sportif-2026
|
||||||
- id: ldc-web/projets/gen-game-web-instances/matines-40-ans
|
- id: ldc-web/projets/gen-game-web-instances/matines-40-ans
|
||||||
- id: ldc-web/projets/gen-game-web-instances/nature-and-respect
|
- id: ldc-web/projets/gen-game-web-instances/nature-and-respect
|
||||||
- id: ldc-web/projets/gen-game-web-instances/normandie
|
|
||||||
- id: ldc-web/projets/gen-game-web-instances/reghalal-jeu
|
- id: ldc-web/projets/gen-game-web-instances/reghalal-jeu
|
||||||
- id: ldc-web/projets/gen-game-web-instances/tregalette-chandleur-2024
|
- id: ldc-web/projets/gen-game-web-instances/tregalette-chandleur-2024
|
||||||
- id: ldc-web/projets/gen-game-web-prize-draw
|
- id: ldc-web/projets/gen-game-web-prize-draw
|
||||||
|
|
@ -38,7 +38,6 @@ ci_access:
|
||||||
- id: ldc-web/projets/le-gaulois
|
- id: ldc-web/projets/le-gaulois
|
||||||
- id: ldc-web/projets/le-gaulois-pro
|
- id: ldc-web/projets/le-gaulois-pro
|
||||||
- id: ldc-web/projets/le-marche-de-beaufeu
|
- id: ldc-web/projets/le-marche-de-beaufeu
|
||||||
- id: ldc-web/projets/les-fermiers-snv
|
|
||||||
- id: ldc-web/projets/lionor
|
- id: ldc-web/projets/lionor
|
||||||
- id: ldc-web/projets/loue
|
- id: ldc-web/projets/loue
|
||||||
- id: ldc-web/projets/matomo
|
- id: ldc-web/projets/matomo
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,7 @@ spec:
|
||||||
container_runtime: containerd
|
container_runtime: containerd
|
||||||
|
|
||||||
image:
|
image:
|
||||||
tag: v1.7.8
|
tag: v1.8.0
|
||||||
|
|
||||||
agent:
|
agent:
|
||||||
acquisition:
|
acquisition:
|
||||||
|
|
@ -88,5 +88,25 @@ spec:
|
||||||
labels:
|
labels:
|
||||||
type: appsec
|
type: appsec
|
||||||
env:
|
env:
|
||||||
|
- name: NO_HUB_UPGRADE
|
||||||
|
value: "false"
|
||||||
- name: COLLECTIONS
|
- name: COLLECTIONS
|
||||||
value: "crowdsecurity/appsec-virtual-patching crowdsecurity/appsec-crs crowdsecurity/appsec-generic-rules"
|
value: >-
|
||||||
|
crowdsecurity/appsec-virtual-patching
|
||||||
|
crowdsecurity/appsec-crs
|
||||||
|
crowdsecurity/appsec-generic-rules
|
||||||
|
crowdsecurity/wordpress
|
||||||
|
crowdsecurity/appsec-crs-exclusion-plugin-wordpress
|
||||||
|
crowdsecurity/appsec-wordpress
|
||||||
|
# Volumes to pass the `hub update` and `hub upgrade` tests.
|
||||||
|
extraVolumes:
|
||||||
|
- name: hub
|
||||||
|
emptyDir: {}
|
||||||
|
- name: data
|
||||||
|
emptyDir: {}
|
||||||
|
extraVolumeMounts:
|
||||||
|
- name: hub
|
||||||
|
mountPath: /etc/crowdsec/hub
|
||||||
|
- name: data
|
||||||
|
mountPath: /var/lib/crowdsec/data
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -21,6 +21,8 @@ spec:
|
||||||
|
|
||||||
gitlabUrl: https://lab.s-web.fr
|
gitlabUrl: https://lab.s-web.fr
|
||||||
|
|
||||||
|
concurrent: ${GITLAB_RUNNER_CONCURRENT}
|
||||||
|
|
||||||
runners:
|
runners:
|
||||||
config: |
|
config: |
|
||||||
[[runners]]
|
[[runners]]
|
||||||
|
|
@ -28,6 +30,10 @@ spec:
|
||||||
[runners.kubernetes]
|
[runners.kubernetes]
|
||||||
namespace = "{{.Release.Namespace}}"
|
namespace = "{{.Release.Namespace}}"
|
||||||
image = "alpine"
|
image = "alpine"
|
||||||
|
cpu_request = "${GITLAB_RUNNER_CPU_REQUEST}"
|
||||||
|
memory_request = "${GITLAB_RUNNER_MEMORY_REQUEST}"
|
||||||
|
helper_cpu_request = "${GITLAB_RUNNER_HELPER_CPU_REQUEST}"
|
||||||
|
helper_memory_request = "${GITLAB_RUNNER_HELPER_MEMORY_REQUEST}"
|
||||||
secret: gitlab-runner-token
|
secret: gitlab-runner-token
|
||||||
|
|
||||||
metrics:
|
metrics:
|
||||||
|
|
|
||||||
|
|
@ -126,11 +126,13 @@ spec:
|
||||||
enabled: true
|
enabled: true
|
||||||
crowdsecMode: stream
|
crowdsecMode: stream
|
||||||
crowdsecLapiScheme: http
|
crowdsecLapiScheme: http
|
||||||
crowdsecLapiHost: crowdsec-service.common-services.svc.cluster.local:8080
|
# Add trailing DOTS in order to prevent systemic DNS query failures
|
||||||
|
crowdsecLapiHost: crowdsec-service.common-services.svc.cluster.local.:8080
|
||||||
crowdsecLapiPath: /
|
crowdsecLapiPath: /
|
||||||
crowdsecLapiKeyFile: /etc/traefik/crowdsec/BOUNCER_KEY_traefik
|
crowdsecLapiKeyFile: /etc/traefik/crowdsec/BOUNCER_KEY_traefik
|
||||||
crowdsecAppsecEnabled: true
|
crowdsecAppsecEnabled: true
|
||||||
crowdsecAppsecHost: crowdsec-appsec-service.common-services.svc.cluster.local:7422
|
# Add trailing DOTS in order to prevent systemic DNS query failures
|
||||||
|
crowdsecAppsecHost: crowdsec-appsec-service.common-services.svc.cluster.local.:7422
|
||||||
crowdsecAppsecPath: /
|
crowdsecAppsecPath: /
|
||||||
crowdsecAppsecFailureBlock: true
|
crowdsecAppsecFailureBlock: true
|
||||||
crowdsecAppsecUnreachableBlock: true
|
crowdsecAppsecUnreachableBlock: true
|
||||||
|
|
@ -370,6 +372,7 @@ spec:
|
||||||
- 46.224.188.186 # BugSmash
|
- 46.224.188.186 # BugSmash
|
||||||
- 178.156.178.124 # BugSmash
|
- 178.156.178.124 # BugSmash
|
||||||
- 5.161.29.18 # BugSmash
|
- 5.161.29.18 # BugSmash
|
||||||
|
- 80.15.14.76 # Mancelle Huttepain
|
||||||
|
|
||||||
# AJOUT : Service Octavia en parallèle
|
# AJOUT : Service Octavia en parallèle
|
||||||
- apiVersion: v1
|
- apiVersion: v1
|
||||||
|
|
@ -399,83 +402,3 @@ spec:
|
||||||
port: 443
|
port: 443
|
||||||
targetPort: 8443
|
targetPort: 8443
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
|
|
||||||
- apiVersion: v1
|
|
||||||
kind: Service
|
|
||||||
metadata:
|
|
||||||
name: blackhole
|
|
||||||
namespace: common-services
|
|
||||||
spec:
|
|
||||||
# Placeholder : jamais contacté, le middleware renvoie 403 avant.
|
|
||||||
type: ClusterIP
|
|
||||||
ports:
|
|
||||||
- name: http
|
|
||||||
port: 80
|
|
||||||
targetPort: 80
|
|
||||||
|
|
||||||
- apiVersion: traefik.io/v1alpha1
|
|
||||||
kind: Middleware
|
|
||||||
metadata:
|
|
||||||
name: deny-ip-blocklist
|
|
||||||
namespace: common-services
|
|
||||||
spec:
|
|
||||||
# ipAllowList rejette en 403
|
|
||||||
ipAllowList:
|
|
||||||
sourceRange:
|
|
||||||
- 192.0.2.1/32 # TEST-NET-1 (RFC 5737) : ne matche aucun client réel => deny
|
|
||||||
|
|
||||||
- apiVersion: traefik.io/v1alpha1
|
|
||||||
kind: IngressRoute
|
|
||||||
metadata:
|
|
||||||
name: security-ip-blocklist
|
|
||||||
namespace: common-services
|
|
||||||
spec:
|
|
||||||
entryPoints:
|
|
||||||
- websecure
|
|
||||||
routes:
|
|
||||||
- kind: Rule
|
|
||||||
match: >-
|
|
||||||
ClientIP(`45.88.138.45/32`) ||
|
|
||||||
ClientIP(`8.34.210.32/32`) ||
|
|
||||||
ClientIP(`8.34.210.37/32`) ||
|
|
||||||
ClientIP(`8.34.210.42/32`) ||
|
|
||||||
ClientIP(`8.34.210.43/32`) ||
|
|
||||||
ClientIP(`8.34.210.45/32`) ||
|
|
||||||
ClientIP(`34.68.34.65/32`) ||
|
|
||||||
ClientIP(`34.68.34.66/32`) ||
|
|
||||||
ClientIP(`34.68.34.67/32`) ||
|
|
||||||
ClientIP(`34.68.34.69/32`) ||
|
|
||||||
ClientIP(`34.68.34.71/32`) ||
|
|
||||||
ClientIP(`34.68.34.72/32`) ||
|
|
||||||
ClientIP(`34.68.34.77/32`) ||
|
|
||||||
ClientIP(`34.68.34.79/32`) ||
|
|
||||||
ClientIP(`34.68.34.81/32`) ||
|
|
||||||
ClientIP(`34.68.34.84/32`) ||
|
|
||||||
ClientIP(`94.74.106.96/32`) ||
|
|
||||||
ClientIP(`20.220.225.223/32`) ||
|
|
||||||
ClientIP(`52.182.173.140/32`)
|
|
||||||
priority: 100000
|
|
||||||
middlewares:
|
|
||||||
- name: deny-ip-blocklist
|
|
||||||
namespace: common-services
|
|
||||||
services:
|
|
||||||
- name: blackhole
|
|
||||||
port: 80
|
|
||||||
|
|
||||||
- apiVersion: discovery.k8s.io/v1
|
|
||||||
kind: EndpointSlice
|
|
||||||
metadata:
|
|
||||||
name: blackhole
|
|
||||||
namespace: common-services
|
|
||||||
labels:
|
|
||||||
kubernetes.io/service-name: blackhole
|
|
||||||
addressType: IPv4
|
|
||||||
endpoints:
|
|
||||||
- addresses:
|
|
||||||
- 192.0.2.1 # TEST-NET-1 : non-routable, jamais contacté
|
|
||||||
conditions:
|
|
||||||
ready: true
|
|
||||||
ports:
|
|
||||||
- name: http
|
|
||||||
port: 80
|
|
||||||
protocol: TCP
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue