Skip to content

Commit

Permalink
Implement values for enabling the allowlist- and hashLookup and add c…
Browse files Browse the repository at this point in the history
…orresponding documentation
  • Loading branch information
ata-no-one committed Apr 25, 2024
1 parent 108cd87 commit d5deb34
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 3 deletions.
18 changes: 17 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,21 @@ export TOKEN_URL=http://vaas/auth/protocol/openid-connect/token # URL of the tok

## Configuring Verdict-as-a-Service

If you want to scan larger files, you have to adjust the deployments body size limit in ```vaas.gateway.ingress.annotations```. Should looks like this:
The default configurations are set to provide the best verdict. When you have the need to run this helm-chart without sending the file hashes to our cloud, you can deactivate the cloud lookups with these options:

```yaml
cloud:
hashLookup:
enabled: false
allowlistLookup:
enabled: false
```
With the `hashLookup`, VaaS uses the G DATA Cloud to obtain additional information about a file and thus enrich the quality of the verdict. Without the hashLookup, this additional information is omitted and files that would ONLY be recognized via the cloud are therefore not recognized.

The `allowlistLookup` is a request of the hash to the G DATA Cloud, against a list of files that we know for sure are not malicious, to prevent false positives. Some clean files are still detected by the scanners signatures and the `allowlistLookup` will prevent these files to be detected as `malicious` or `pup`.

If you want to scan larger files, you have to adjust the deployments body size limit in `vaas.gateway.ingress.annotations`. Should looks like this:

```yaml
nginx.ingress.kubernetes.io/proxy-body-size: <your maximum filesize>
Expand All @@ -96,6 +110,8 @@ nginx.ingress.kubernetes.io/proxy-request-buffering: "off"
| ------------------------------------------ | ----------------------------------------------------------------------------------------------------------- | -------------------------------- |
| `global.imagePullSecrets` | List of image pull secrets | `- name: registry` |
| `global.secret.dockerconfigjson` | Docker authentication configuration | `""` |
| `cloud.hashLookup.enabled` | Enable/Disable the cloud hash lookup | `true` |
| `cloud.allowlistLookup.enabled` | Enable/Disable the cloud allowlist lookup | `true` |
| `gateway.ingress.enabled` | Enable/Disable the Ingress resource | `false` |
| `gateway.ingress.annotations` | Additional annotations for Ingress | `{}` |
| `gateway.ingress.hosts` | Hostnames and paths for Ingress | `[]` |
Expand Down
2 changes: 1 addition & 1 deletion charts/vaas/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v2
name: vaas
version: 1.3.0
version: 1.4.0
description: Deployment of a Verdict-as-a-Service on-premise instance
maintainers:
- name: G DATA CyberDefense AG
Expand Down
4 changes: 4 additions & 0 deletions charts/vaas/templates/gateway/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,10 @@ spec:
value: {{ .Release.Name }}
- name: MaxAnalysisDuration
value: {{ include "common.secondsToHHMMSS" .Values.gateway.terminationGracePeriodSeconds | quote }}
- name: FileCloudVerdictSource__Enable
value: {{ .Values.cloud.hashLookup.enabled | quote }}
- name: FileAllowlistCloudVerdictSource__Enable
value: {{ .Values.cloud.allowlistLookup.enabled | quote }}
ports:
- name: http
containerPort: {{ .Values.gateway.service.http.port }}
Expand Down
8 changes: 7 additions & 1 deletion charts/vaas/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,12 @@ mini-identity-provider:
tolerations: []
affinity: {}

cloud:
hashLookup:
enabled: true
allowlistLookup:
enabled: true

gateway:
ingress:
enabled: true
Expand Down Expand Up @@ -136,7 +142,7 @@ gateway:
extraEnvVars: []

# This block is only for G DATA's internal usage.
hashlookup:
hashLookup:
enabled: false
apikey:
value: ""
Expand Down

0 comments on commit d5deb34

Please sign in to comment.