Skip to content

Commit e948b71

Browse files
maratsaljprieto92hayk99airadier
authored
feat(registry-scanner): add gar, gcr and nexus support (#1354)
Co-authored-by: Javi Prieto <[email protected]> Co-authored-by: Hayk Kocharyan <[email protected]> Co-authored-by: Álvaro Iradier <[email protected]>
1 parent a80903a commit e948b71

File tree

7 files changed

+25
-4
lines changed

7 files changed

+25
-4
lines changed

charts/registry-scanner/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: Sysdig Registry Scanner
44
type: application
55
home: https://sysdiglabs.github.io/registry-scanner/
66
icon: https://478h5m1yrfsa3bbe262u7muv-wpengine.netdna-ssl.com/wp-content/uploads/2019/02/Shovel_600px.png
7-
version: 1.1.10
7+
version: 1.1.11
88
appVersion: 0.2.50
99
maintainers:
1010
- name: giuse-sysdig

charts/registry-scanner/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ Follow the instructions in [Install Registry Scanner](https://docs.sysdig.com/en
3333
- Quay IO
3434
- IBM ICR
3535
- Azure ACR
36+
- Google GAR
3637

3738
Once installed, you can view the scan results in the [Vulnerabilities UI](https://docs.sysdig.com/en/docs/sysdig-secure/vulnerabilities/registry/) of Sysdig Secure.
3839

@@ -60,7 +61,7 @@ The following table lists the configurable parameters of the Sysdig Registry Sca
6061
| config.registryApiUrl | The API URL of the registry to scan. This is required if your registry type is Artifactory. | <code>""</code> |
6162
| config.registryUser | The username for registry authentication. | <code>""</code> |
6263
| config.registryPassword | The password for registry authentication. | <code>""</code> |
63-
| config.registryType | Mandatory.<br/>The registry Type. Supported types: artifactory, ecr, icr, acr, quay, harbor, and dockerv2. | <code>""</code> |
64+
| config.registryType | Mandatory.<br/>The registry Type. Supported types: artifactory, ecr, icr, acr, quay, harbor, gar, nexus and dockerv2. | <code>""</code> |
6465
| config.registryAccountId | The account ID. Applicable only for ICR registry type. | <code>""</code> |
6566
| config.icrIamApi | The ICR IAM API. Applicable only for ICR registry type. | <code>""</code> |
6667
| config.icrIamApiSkipTLS | Ignore TLS certificate for IAM API. Applicable only for ICR registry type. | <code>false</code> |

charts/registry-scanner/README.tpl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ Follow the instructions in [Install Registry Scanner](https://docs.sysdig.com/en
3333
- Quay IO
3434
- IBM ICR
3535
- Azure ACR
36+
- Google GAR
3637

3738
Once installed, you can view the scan results in the [Vulnerabilities UI](https://docs.sysdig.com/en/docs/sysdig-secure/vulnerabilities/registry/) of Sysdig Secure.
3839

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
config:
2+
secureAPIToken: ${SECURE_API_TOKEN}
3+
registryType: artifactory
4+
registryURL: ${SYSDIG_JFROG_SAAS_QA_URL}
5+
registryApiUrl: ${SYSDIG_JFROG_SAAS_QA_API_URL}
6+
registryUser: ${SYSDIG_JFROG_SAAS_QA_USER}
7+
registryPassword: ${SYSDIG_JFROG_SAAS_QA_TOKEN}
8+
filter:
9+
include: 'alpine:3.1'
10+
exclude: '.*'
11+
scanOnStart:
12+
enabled: true
13+
asPostInstallHook: true

charts/registry-scanner/templates/job.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ metadata:
1212
{{- end }}
1313
spec:
1414
{{- include "registry-scanner.jobTemplate" . | indent 2}}
15-
{{- end}}
15+
{{- end }}

charts/registry-scanner/templates/secret.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,12 @@ data:
1212
aws_access_key_id: {{ .Values.config.aws.accessKeyId | b64enc | quote }}
1313
aws_secret_access_key: {{ .Values.config.aws.secretAccessKey | b64enc | quote }}
1414
aws_region: {{ required "A valid .Values.config.aws.region is required" .Values.config.aws.region | b64enc | quote }}
15+
{{- else if eq .Values.config.registryType "gar" }}
16+
registryUser: {{ "_json_key_base64" | b64enc | quote }}
17+
registryPassword: {{ required "A valid .Values.config.registryPassword is required" .Values.config.registryPassword | b64enc | quote }}
18+
{{- else if eq .Values.config.registryType "gcr" }}
19+
registryUser: {{ "_json_key" | b64enc | quote }}
20+
registryPassword: {{ required "A valid .Values.config.registryPassword is required" .Values.config.registryPassword | b64enc | quote }}
1521
{{- else }}
1622
registryUser: {{ required "A valid .Values.config.registryUser is required" .Values.config.registryUser | b64enc | quote }}
1723
registryPassword: {{ required "A valid .Values.config.registryPassword is required" .Values.config.registryPassword | b64enc | quote }}

charts/registry-scanner/values.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ config:
2626
registryUser: ""
2727
# The password for registry authentication.
2828
registryPassword: ""
29-
# Mandatory.<br/>The registry Type. Supported types: artifactory, ecr, icr, acr, quay, harbor, and dockerv2.
29+
# Mandatory.<br/>The registry Type. Supported types: artifactory, ecr, icr, acr, quay, harbor, gar, nexus and dockerv2.
3030
registryType: ""
3131
# The account ID. Applicable only for ICR registry type.
3232
registryAccountId: ""

0 commit comments

Comments
 (0)