Skip to content

Commit 3b0d387

Browse files
fixing invalid header in app-proxy caused by imperva waf (#81)
1 parent 136ff24 commit 3b0d387

File tree

3 files changed

+12
-13
lines changed

3 files changed

+12
-13
lines changed

csdp/base_components/apps/app-proxy/_components/codefresh-base/app-proxy.deploy.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,10 +141,10 @@ spec:
141141
containerPort: 80
142142
resources:
143143
requests:
144-
memory: "256Mi"
144+
memory: "512Mi"
145145
ephemeral-storage: "2Gi"
146146
cpu: "100m"
147147
limits:
148-
memory: "1500Mi"
148+
memory: "1Gi"
149149
ephemeral-storage: "6Gi"
150150
cpu: "1500m"

csdp/base_components/apps/app-proxy/_components/codefresh-base/kustomization.yaml

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,16 @@ resources:
1414
- app-proxy.cm.yaml
1515
- ingress.yaml
1616

17-
pathches:
17+
patches:
18+
# This is a fix for ignoring invalid response header
19+
# from g.codefresh caused by imperva. Need to fix this
20+
# before removing this patch.
1821
- target:
1922
name: cap-app-proxy
20-
kind: Deployment
2123
group: apps
2224
version: v1
23-
patch: |-
25+
kind: Deployment
26+
patch: |
2427
- op: add
25-
path: /spec/template/spec/containers/0/resources
26-
value:
27-
requests:
28-
memory: 512Mi
29-
limits:
30-
memory: 1Gi
28+
path: /spec/template/spec/containers/0/env/-
29+
value: { name: NODE_ENV, value: '--insecure-http-parser' }

csdp/base_components/bootstrap/kustomization.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ configMapGenerator:
1212
- name: codefresh-cm
1313
behavior: create
1414
literals:
15-
- version=0.0.522 # Runtime version
16-
- bootstrapRevision=0.0.522 # Tag to use for bootstrap (change this to the name of your branch if you want to test changes)
15+
- version=0.0.523 # Runtime version
16+
- bootstrapRevision=0.0.523 # Tag to use for bootstrap (change this to the name of your branch if you want to test changes)
1717
- appsetRequeueTime=15
1818

1919
replacements:

0 commit comments

Comments
 (0)