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 2222 name : Container Image Metadata
2323 uses : docker/metadata-action@v5
2424 with :
25- images : ${{ env.CONTAINER_REGISTRY }}/scan-deduplicator /scan-deduplicator
25+ images : ${{ env.CONTAINER_REGISTRY }}/scan-throttler /scan-throttler
2626 tags : |
2727 latest
2828 - name : Set up QEMU
Original file line number Diff line number Diff line change @@ -5,8 +5,8 @@ permissions:
55env :
66 GO_STATIC_CHECK_VERSION : " 2025.1.1"
77jobs :
8- scan-deduplicator :
9- name : " Scan Deduplicator "
8+ scan-throttler :
9+ name : " Scan Throttler "
1010 runs-on : ubuntu-latest
1111 steps :
1212 - uses : actions/checkout@v4
Original file line number Diff line number Diff line change @@ -7,8 +7,8 @@ RUN go mod download
77COPY . .
88ARG TARGETOS TARGETARCH
99RUN GOOS=$TARGETOS GOARCH=$TARGETARCH CGO_ENABLED=0 go build
10- RUN chmod +x scan-deduplicator
10+ RUN chmod +x scan-throttler
1111
1212FROM 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 11apiVersion : apps/v1
22kind : StatefulSet
33metadata :
4- name : scan-deduplicator -cache
4+ name : scan-throttler -cache
55 labels :
6- app : scan-deduplicator -cache
6+ app : scan-throttler -cache
77spec :
8- serviceName : " scan-deduplicator -cache"
8+ serviceName : " scan-throttler -cache"
99 replicas : 1
1010 selector :
1111 matchLabels :
12- app : scan-deduplicator -cache
12+ app : scan-throttler -cache
1313 template :
1414 metadata :
1515 labels :
16- app : scan-deduplicator -cache
16+ app : scan-throttler -cache
1717 spec :
1818 containers :
1919 - name : valkey
3737 - name : VALKEY_PASSWORD
3838 valueFrom :
3939 secretKeyRef :
40- name : scan-deduplicator -cache-credentials
40+ name : scan-throttler -cache-credentials
4141 key : password
4242 startupProbe :
4343 tcpSocket :
@@ -74,10 +74,10 @@ spec:
7474apiVersion : v1
7575kind : Service
7676metadata :
77- name : scan-deduplicator -cache
77+ name : scan-throttler -cache
7878spec :
7979 selector :
80- app : scan-deduplicator -cache
80+ app : scan-throttler -cache
8181 ports :
8282 - protocol : TCP
8383 port : 6379
Original file line number Diff line number Diff line change 11apiVersion : cert-manager.io/v1
22kind : Certificate
33metadata :
4- name : scan-deduplicator -cert
5- namespace : scan-deduplicator
4+ name : scan-throttler -cert
5+ namespace : scan-throttler
66spec :
7- secretName : scan-deduplicator -cert
7+ secretName : scan-throttler -cert
88 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
1212 issuerRef :
13- name : scan-deduplicator -ca-issuer
13+ name : scan-throttler -ca-issuer
Original file line number Diff line number Diff line change 11apiVersion : apps/v1
22kind : Deployment
33metadata :
4- name : scan-deduplicator -validator
5- namespace : scan-deduplicator
4+ name : scan-throttler -validator
5+ namespace : scan-throttler
66 labels :
7- app : scan-deduplicator -validator
7+ app : scan-throttler -validator
88spec :
99 replicas : 1
1010 selector :
1111 matchLabels :
12- app : scan-deduplicator -validator
12+ app : scan-throttler -validator
1313 template :
1414 metadata :
1515 labels :
16- app : scan-deduplicator -validator
16+ app : scan-throttler -validator
1717 spec :
1818 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
2121 imagePullPolicy : IfNotPresent
2222 command :
23- - /scan-deduplicator
23+ - /scan-throttler
2424 - -tls-cert-file=/etc/webhook/certs/tls.crt
2525 - -tls-key-file=/etc/webhook/certs/tls.key
2626 env :
2727 - name : VALKEY_PASSWORD
2828 valueFrom :
2929 secretKeyRef :
30- name : scan-deduplicator -cache-credentials
30+ name : scan-throttler -cache-credentials
3131 key : password
3232 resources :
3333 limits :
4343 volumes :
4444 - name : webhook-certs
4545 secret :
46- secretName : scan-deduplicator -cert
46+ secretName : scan-throttler -cert
Original file line number Diff line number Diff line change 11apiVersion : cert-manager.io/v1
22kind : Issuer
33metadata :
4- name : scan-deduplicator -ca-issuer
5- namespace : scan-deduplicator
4+ name : scan-throttler -ca-issuer
5+ namespace : scan-throttler
66spec :
7- selfSigned : {}
7+ selfSigned : {}
Original file line number Diff line number Diff line change 11apiVersion : v1
22kind : Service
33metadata :
4- name : scan-deduplicator -validator
5- namespace : scan-deduplicator
4+ name : scan-throttler -validator
5+ namespace : scan-throttler
66 labels :
7- app : scan-deduplicator -validator
7+ app : scan-throttler -validator
88spec :
99 ports :
10- - port : 443
11- targetPort : 8080
10+ - port : 443
11+ targetPort : 8080
1212 selector :
13- app : scan-deduplicator -validator
13+ app : scan-throttler -validator
Original file line number Diff line number Diff line change 11apiVersion : admissionregistration.k8s.io/v1
22kind : ValidatingWebhookConfiguration
33metadata :
4- name : scan-deduplicator -validator
4+ name : scan-throttler -validator
55 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
77webhooks :
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:
77 securecodebox.io/intensive : light
88spec :
99 scanAnnotations :
10- scan-deduplicator .securecodebox.io/min-time-interval : 4h
10+ scan-throttler .securecodebox.io/min-time-interval : 4h
1111 matches :
1212 anyOf :
1313 - category : " Host"
@@ -28,7 +28,7 @@ metadata:
2828 securecodebox.io/intensive : light
2929spec :
3030 scanAnnotations :
31- scan-deduplicator .securecodebox.io/min-time-interval : 24h
31+ scan-throttler .securecodebox.io/min-time-interval : 24h
3232 matches :
3333 anyOf :
3434 - category : " Open Port"
You can’t perform that action at this time.
0 commit comments