diff --git a/infrastructure/crowdsec/helm-release.yaml b/infrastructure/crowdsec/helm-release.yaml index 34e02e9..ce7054c 100644 --- a/infrastructure/crowdsec/helm-release.yaml +++ b/infrastructure/crowdsec/helm-release.yaml @@ -17,7 +17,7 @@ spec: container_runtime: containerd image: - tag: v1.7.8 + tag: v1.8.0 agent: acquisition: @@ -89,4 +89,11 @@ spec: type: appsec env: - 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 + diff --git a/infrastructure/traefik/helm-release.yaml b/infrastructure/traefik/helm-release.yaml index 805a0f6..663aad3 100644 --- a/infrastructure/traefik/helm-release.yaml +++ b/infrastructure/traefik/helm-release.yaml @@ -399,83 +399,3 @@ spec: port: 443 targetPort: 8443 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