Skip to content

Commit b33ba4a

Browse files
committed
Rename to scan-throttler
Clearer than deduplicator as it conveys a "time" element to the deduplication
1 parent 668f34c commit b33ba4a

File tree

15 files changed

+93
-93
lines changed

15 files changed

+93
-93
lines changed

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
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

.github/workflows/test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ permissions:
55
env:
66
GO_STATIC_CHECK_VERSION: "2025.1.1"
77
jobs:
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

Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ RUN go mod download
77
COPY . .
88
ARG TARGETOS TARGETARCH
99
RUN GOOS=$TARGETOS GOARCH=$TARGETARCH CGO_ENABLED=0 go build
10-
RUN chmod +x scan-deduplicator
10+
RUN chmod +x scan-throttler
1111

1212
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"]

deploy/cache.yaml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
apiVersion: apps/v1
22
kind: StatefulSet
33
metadata:
4-
name: scan-deduplicator-cache
4+
name: scan-throttler-cache
55
labels:
6-
app: scan-deduplicator-cache
6+
app: scan-throttler-cache
77
spec:
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
@@ -37,7 +37,7 @@ spec:
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:
7474
apiVersion: v1
7575
kind: Service
7676
metadata:
77-
name: scan-deduplicator-cache
77+
name: scan-throttler-cache
7878
spec:
7979
selector:
80-
app: scan-deduplicator-cache
80+
app: scan-throttler-cache
8181
ports:
8282
- protocol: TCP
8383
port: 6379

deploy/certificate.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
apiVersion: cert-manager.io/v1
22
kind: Certificate
33
metadata:
4-
name: scan-deduplicator-cert
5-
namespace: scan-deduplicator
4+
name: scan-throttler-cert
5+
namespace: scan-throttler
66
spec:
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

deploy/deployment.yaml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,33 @@
11
apiVersion: apps/v1
22
kind: Deployment
33
metadata:
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
88
spec:
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:
@@ -43,4 +43,4 @@ spec:
4343
volumes:
4444
- name: webhook-certs
4545
secret:
46-
secretName: scan-deduplicator-cert
46+
secretName: scan-throttler-cert

deploy/issuer.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
apiVersion: cert-manager.io/v1
22
kind: Issuer
33
metadata:
4-
name: scan-deduplicator-ca-issuer
5-
namespace: scan-deduplicator
4+
name: scan-throttler-ca-issuer
5+
namespace: scan-throttler
66
spec:
7-
selfSigned: {}
7+
selfSigned: {}

deploy/service.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
apiVersion: v1
22
kind: Service
33
metadata:
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
88
spec:
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

deploy/webhook.yaml

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
11
apiVersion: admissionregistration.k8s.io/v1
22
kind: ValidatingWebhookConfiguration
33
metadata:
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
77
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

example/manifests/cascading-rules.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ metadata:
77
securecodebox.io/intensive: light
88
spec:
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
2929
spec:
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"

0 commit comments

Comments
 (0)