File tree Expand file tree Collapse file tree 15 files changed +93
-93
lines changed Expand file tree Collapse file tree 15 files changed +93
-93
lines changed Original file line number Diff line number Diff line change 22
22
name : Container Image Metadata
23
23
uses : docker/metadata-action@v5
24
24
with :
25
- images : ${{ env.CONTAINER_REGISTRY }}/scan-deduplicator /scan-deduplicator
25
+ images : ${{ env.CONTAINER_REGISTRY }}/scan-throttler /scan-throttler
26
26
tags : |
27
27
latest
28
28
- name : Set up QEMU
Original file line number Diff line number Diff line change @@ -5,8 +5,8 @@ permissions:
5
5
env :
6
6
GO_STATIC_CHECK_VERSION : " 2025.1.1"
7
7
jobs :
8
- scan-deduplicator :
9
- name : " Scan Deduplicator "
8
+ scan-throttler :
9
+ name : " Scan Throttler "
10
10
runs-on : ubuntu-latest
11
11
steps :
12
12
- uses : actions/checkout@v4
Original file line number Diff line number Diff line change @@ -7,8 +7,8 @@ RUN go mod download
7
7
COPY . .
8
8
ARG TARGETOS TARGETARCH
9
9
RUN GOOS=$TARGETOS GOARCH=$TARGETARCH CGO_ENABLED=0 go build
10
- RUN chmod +x scan-deduplicator
10
+ RUN chmod +x scan-throttler
11
11
12
12
FROM gcr.io/distroless/static:nonroot
13
- COPY --from=builder --chown=nonroot:nonroot /src/scan-deduplicator /scan-deduplicator
14
- CMD ["/scan-deduplicator " ]
13
+ COPY --from=builder --chown=nonroot:nonroot /src/scan-throttler /scan-throttler
14
+ CMD ["/scan-throttler " ]
Original file line number Diff line number Diff line change 1
1
apiVersion : apps/v1
2
2
kind : StatefulSet
3
3
metadata :
4
- name : scan-deduplicator -cache
4
+ name : scan-throttler -cache
5
5
labels :
6
- app : scan-deduplicator -cache
6
+ app : scan-throttler -cache
7
7
spec :
8
- serviceName : " scan-deduplicator -cache"
8
+ serviceName : " scan-throttler -cache"
9
9
replicas : 1
10
10
selector :
11
11
matchLabels :
12
- app : scan-deduplicator -cache
12
+ app : scan-throttler -cache
13
13
template :
14
14
metadata :
15
15
labels :
16
- app : scan-deduplicator -cache
16
+ app : scan-throttler -cache
17
17
spec :
18
18
containers :
19
19
- name : valkey
37
37
- name : VALKEY_PASSWORD
38
38
valueFrom :
39
39
secretKeyRef :
40
- name : scan-deduplicator -cache-credentials
40
+ name : scan-throttler -cache-credentials
41
41
key : password
42
42
startupProbe :
43
43
tcpSocket :
@@ -74,10 +74,10 @@ spec:
74
74
apiVersion : v1
75
75
kind : Service
76
76
metadata :
77
- name : scan-deduplicator -cache
77
+ name : scan-throttler -cache
78
78
spec :
79
79
selector :
80
- app : scan-deduplicator -cache
80
+ app : scan-throttler -cache
81
81
ports :
82
82
- protocol : TCP
83
83
port : 6379
Original file line number Diff line number Diff line change 1
1
apiVersion : cert-manager.io/v1
2
2
kind : Certificate
3
3
metadata :
4
- name : scan-deduplicator -cert
5
- namespace : scan-deduplicator
4
+ name : scan-throttler -cert
5
+ namespace : scan-throttler
6
6
spec :
7
- secretName : scan-deduplicator -cert
7
+ secretName : scan-throttler -cert
8
8
dnsNames :
9
- - scan-deduplicator -validator.scan-deduplicator .svc.cluster.local
10
- - scan-deduplicator -validator.scan-deduplicator .svc
11
- - scan-deduplicator -validator.scan-deduplicator
9
+ - scan-throttler -validator.scan-throttler .svc.cluster.local
10
+ - scan-throttler -validator.scan-throttler .svc
11
+ - scan-throttler -validator.scan-throttler
12
12
issuerRef :
13
- name : scan-deduplicator -ca-issuer
13
+ name : scan-throttler -ca-issuer
Original file line number Diff line number Diff line change 1
1
apiVersion : apps/v1
2
2
kind : Deployment
3
3
metadata :
4
- name : scan-deduplicator -validator
5
- namespace : scan-deduplicator
4
+ name : scan-throttler -validator
5
+ namespace : scan-throttler
6
6
labels :
7
- app : scan-deduplicator -validator
7
+ app : scan-throttler -validator
8
8
spec :
9
9
replicas : 1
10
10
selector :
11
11
matchLabels :
12
- app : scan-deduplicator -validator
12
+ app : scan-throttler -validator
13
13
template :
14
14
metadata :
15
15
labels :
16
- app : scan-deduplicator -validator
16
+ app : scan-throttler -validator
17
17
spec :
18
18
containers :
19
- - name : scan-deduplicator -validator
20
- image : ghcr.io/securecodebox/scan-deduplicator /scan-deduplicator :latest
19
+ - name : scan-throttler -validator
20
+ image : ghcr.io/securecodebox/scan-throttler /scan-throttler :latest
21
21
imagePullPolicy : IfNotPresent
22
22
command :
23
- - /scan-deduplicator
23
+ - /scan-throttler
24
24
- -tls-cert-file=/etc/webhook/certs/tls.crt
25
25
- -tls-key-file=/etc/webhook/certs/tls.key
26
26
env :
27
27
- name : VALKEY_PASSWORD
28
28
valueFrom :
29
29
secretKeyRef :
30
- name : scan-deduplicator -cache-credentials
30
+ name : scan-throttler -cache-credentials
31
31
key : password
32
32
resources :
33
33
limits :
43
43
volumes :
44
44
- name : webhook-certs
45
45
secret :
46
- secretName : scan-deduplicator -cert
46
+ secretName : scan-throttler -cert
Original file line number Diff line number Diff line change 1
1
apiVersion : cert-manager.io/v1
2
2
kind : Issuer
3
3
metadata :
4
- name : scan-deduplicator -ca-issuer
5
- namespace : scan-deduplicator
4
+ name : scan-throttler -ca-issuer
5
+ namespace : scan-throttler
6
6
spec :
7
- selfSigned : {}
7
+ selfSigned : {}
Original file line number Diff line number Diff line change 1
1
apiVersion : v1
2
2
kind : Service
3
3
metadata :
4
- name : scan-deduplicator -validator
5
- namespace : scan-deduplicator
4
+ name : scan-throttler -validator
5
+ namespace : scan-throttler
6
6
labels :
7
- app : scan-deduplicator -validator
7
+ app : scan-throttler -validator
8
8
spec :
9
9
ports :
10
- - port : 443
11
- targetPort : 8080
10
+ - port : 443
11
+ targetPort : 8080
12
12
selector :
13
- app : scan-deduplicator -validator
13
+ app : scan-throttler -validator
Original file line number Diff line number Diff line change 1
1
apiVersion : admissionregistration.k8s.io/v1
2
2
kind : ValidatingWebhookConfiguration
3
3
metadata :
4
- name : scan-deduplicator -validator
4
+ name : scan-throttler -validator
5
5
annotations :
6
- cert-manager.io/inject-ca-from : scan-deduplicator /scan-deduplicator -cert
6
+ cert-manager.io/inject-ca-from : scan-throttler /scan-throttler -cert
7
7
webhooks :
8
- - name : scan-deduplicator .securecodebox.io
9
- admissionReviewVersions :
10
- - v1
11
- clientConfig :
12
- service :
13
- name : scan-deduplicator -validator
14
- namespace : scan-deduplicator
15
- path : /validate
16
- port : 443
17
- rules :
18
- - operations : [ "CREATE" ]
19
- apiGroups : ["execution.securecodebox.io"]
20
- apiVersions : ["v1"]
21
- resources : ["scans"]
22
- sideEffects : None
8
+ - name : scan-throttler .securecodebox.io
9
+ admissionReviewVersions :
10
+ - v1
11
+ clientConfig :
12
+ service :
13
+ name : scan-throttler -validator
14
+ namespace : scan-throttler
15
+ path : /validate
16
+ port : 443
17
+ rules :
18
+ - operations : ["CREATE"]
19
+ apiGroups : ["execution.securecodebox.io"]
20
+ apiVersions : ["v1"]
21
+ resources : ["scans"]
22
+ sideEffects : None
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ metadata:
7
7
securecodebox.io/intensive : light
8
8
spec :
9
9
scanAnnotations :
10
- scan-deduplicator .securecodebox.io/min-time-interval : 4h
10
+ scan-throttler .securecodebox.io/min-time-interval : 4h
11
11
matches :
12
12
anyOf :
13
13
- category : " Host"
@@ -28,7 +28,7 @@ metadata:
28
28
securecodebox.io/intensive : light
29
29
spec :
30
30
scanAnnotations :
31
- scan-deduplicator .securecodebox.io/min-time-interval : 24h
31
+ scan-throttler .securecodebox.io/min-time-interval : 24h
32
32
matches :
33
33
anyOf :
34
34
- category : " Open Port"
You can’t perform that action at this time.
0 commit comments