diff --git a/demo-targets/old-typo3/.helm-docs.gotmpl b/demo-targets/old-typo3/.helm-docs.gotmpl new file mode 100644 index 0000000000..21e1724278 --- /dev/null +++ b/demo-targets/old-typo3/.helm-docs.gotmpl @@ -0,0 +1,40 @@ +{{- /* +SPDX-FileCopyrightText: 2021 iteratec GmbH + +SPDX-License-Identifier: Apache-2.0 +*/ -}} + +{{- define "extra.docsSection" -}} +--- +title: "Old Typo3" +category: "target" +type: "Website" +state: "released" +appVersion: "{{ template "chart.appVersion" . }}" +usecase: "Modern insecure web application" +--- +{{- end }} + +{{- define "extra.dockerDeploymentSection" -}} +## Supported Tags +- `latest` (represents the latest stable release build) +- tagged releases, e.g. `3.0.0`, `2.9.0`, `2.8.0`, `2.7.0` +{{- end }} + +{{- define "extra.chartAboutSection" -}} +## What is Old Typo3? + +Insecure & Outdated Typo3 Instance: Never expose it to the internet! + +### Source Code + +* + +{{- end }} + +{{- define "extra.scannerConfigurationSection" -}}{{- end }} + +{{- define "extra.chartConfigurationSection" -}}{{- end }} + +{{- define "extra.scannerLinksSection" -}} +{{- end }} diff --git a/demo-targets/old-typo3/.helmignore b/demo-targets/old-typo3/.helmignore new file mode 100644 index 0000000000..0e8a0eb36f --- /dev/null +++ b/demo-targets/old-typo3/.helmignore @@ -0,0 +1,23 @@ +# Patterns to ignore when building packages. +# This supports shell glob matching, relative path matching, and +# negation (prefixed with !). Only one pattern per line. +.DS_Store +# Common VCS dirs +.git/ +.gitignore +.bzr/ +.bzrignore +.hg/ +.hgignore +.svn/ +# Common backup files +*.swp +*.bak +*.tmp +*.orig +*~ +# Various IDEs +.project +.idea/ +*.tmproj +.vscode/ diff --git a/demo-targets/old-typo3/Chart.yaml b/demo-targets/old-typo3/Chart.yaml new file mode 100644 index 0000000000..90cf2041cb --- /dev/null +++ b/demo-targets/old-typo3/Chart.yaml @@ -0,0 +1,20 @@ +# SPDX-FileCopyrightText: 2021 iteratec GmbH +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: v2 +version: v3.1.0-alpha1 +appVersion: "v9.5.26" +name: old-typo3 +description: "Insecure & Outdated Typo3 Instance: Never expose it to the internet!" +type: application +home: https://typo3.org/ +icon: https://typo3.org/typo3conf/ext/t3olayout/Resources/Public/Images/Template/typo3_nomargins.svg +keywords: + - vulnerable + - typo3 +sources: + - https://github.com/secureCodeBox/secureCodeBox/tree/master/demo-targets/old-typo3 +maintainers: + - name: iteratec GmbH + email: securecodebox@iteratec.com diff --git a/demo-targets/old-typo3/README.md b/demo-targets/old-typo3/README.md new file mode 100644 index 0000000000..6efe82ec60 --- /dev/null +++ b/demo-targets/old-typo3/README.md @@ -0,0 +1,91 @@ +--- +title: "Old Typo3" +category: "target" +type: "Website" +state: "released" +appVersion: "v9.5.26" +usecase: "Modern insecure web application" +--- + + + + +

+ License Apache-2.0 + GitHub release (latest SemVer) + OWASP Incubator Project + Artifact HUB + GitHub Repo stars + Twitter Follower +

+ +## What is Old Typo3? + +Insecure & Outdated Typo3 Instance: Never expose it to the internet! + +### Source Code + +* + +## Deployment +The old-typo3 chart can be deployed via helm: + +```bash +# Install HelmChart (use -n to configure another namespace) +helm upgrade --install old-typo3 secureCodeBox/old-typo3 +``` + +## Values + +| Key | Type | Default | Description | +|-----|------|---------|-------------| +| affinity | object | `{}` | | +| annotations | object | `{}` | add annotations to the deployment, service and pods | +| fullnameOverride | string | `""` | | +| image.pullPolicy | string | `"IfNotPresent"` | | +| image.repository | string | `"docker.io/securecodebox/old-typo3"` | Container Image | +| image.tag | string | defaults to the appVersion | The image tag | +| imagePullSecrets | list | `[]` | | +| ingress.annotations | object | `{}` | | +| ingress.enabled | bool | `false` | | +| ingress.hosts[0].host | string | `"chart-example.local"` | | +| ingress.hosts[0].paths | list | `[]` | | +| ingress.tls | list | `[]` | | +| labels | object | `{}` | add labels to the deployment, service and pods | +| nameOverride | string | `""` | | +| nodeSelector | object | `{}` | | +| podSecurityContext | object | `{}` | | +| replicaCount | int | `1` | | +| resources | object | `{}` | | +| securityContext | object | `{}` | | +| service.port | int | `80` | | +| service.type | string | `"ClusterIP"` | | +| tolerations | list | `[]` | | + +## License +[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0) + +Code of secureCodeBox is licensed under the [Apache License 2.0][scb-license]. + +[scb-owasp]: https://www.owasp.org/index.php/OWASP_secureCodeBox +[scb-docs]: https://docs.securecodebox.io/ +[scb-site]: https://www.securecodebox.io/ +[scb-github]: https://github.com/secureCodeBox/ +[scb-twitter]: https://twitter.com/secureCodeBox +[scb-slack]: https://join.slack.com/t/securecodebox/shared_invite/enQtNDU3MTUyOTM0NTMwLTBjOWRjNjVkNGEyMjQ0ZGMyNDdlYTQxYWQ4MzNiNGY3MDMxNThkZjJmMzY2NDRhMTk3ZWM3OWFkYmY1YzUxNTU +[scb-license]: https://github.com/secureCodeBox/secureCodeBox/blob/master/LICENSE + diff --git a/demo-targets/old-typo3/container/Dockerfile b/demo-targets/old-typo3/container/Dockerfile new file mode 100644 index 0000000000..bc5b4688d9 --- /dev/null +++ b/demo-targets/old-typo3/container/Dockerfile @@ -0,0 +1,19 @@ +# SPDX-FileCopyrightText: 2021 iteratec GmbH +# +# SPDX-License-Identifier: Apache-2.0 + +FROM martinhelmich/typo3:9 +RUN rm /var/www/html/FIRST_INSTALL \ + && rm -r /var/www/html/typo3conf + +COPY ./typo3conf /var/www/html/typo3conf + +RUN chown -R www-data.www-data /var/www/html/typo3conf \ + && chmod +rxw /var/www/html/typo3conf/cms-016d0ef9.sqlite +# Change to low-privilege user 'www-data' +USER 33 + +# Login details + # Username: root + # Password: supersecret + # Website runs on port 80 diff --git a/demo-targets/old-typo3/container/typo3conf/LocalConfiguration.php b/demo-targets/old-typo3/container/typo3conf/LocalConfiguration.php new file mode 100644 index 0000000000..1e287e0a67 --- /dev/null +++ b/demo-targets/old-typo3/container/typo3conf/LocalConfiguration.php @@ -0,0 +1,96 @@ + [ + 'debug' => false, + 'explicitADmode' => 'explicitAllow', + 'installToolPassword' => '$argon2i$v=19$m=65536,t=16,p=1$aDJWVlhSZ3Awd3FiSFJ1VA$aEN0XL3JGAPSOwsxoX2dSOy/ss1DknHsLm6IoWonQTo', + 'loginSecurityLevel' => 'normal', + 'passwordHashing' => [ + 'className' => 'TYPO3\\CMS\\Core\\Crypto\\PasswordHashing\\Argon2iPasswordHash', + 'options' => [], + ], + ], + 'DB' => [ + 'Connections' => [ + 'Default' => [ + 'driver' => 'pdo_sqlite', + 'path' => '/var/www/html/typo3conf/cms-016d0ef9.sqlite', + ], + ], + ], + 'EXT' => [ + 'extConf' => [ + 'backend' => 'a:6:{s:9:"loginLogo";s:0:"";s:19:"loginHighlightColor";s:0:"";s:20:"loginBackgroundImage";s:0:"";s:13:"loginFootnote";s:0:"";s:11:"backendLogo";s:0:"";s:14:"backendFavicon";s:0:"";}', + 'extensionmanager' => 'a:2:{s:21:"automaticInstallation";s:1:"1";s:11:"offlineMode";s:1:"0";}', + ], + ], + 'EXTENSIONS' => [ + 'backend' => [ + 'backendFavicon' => '', + 'backendLogo' => '', + 'loginBackgroundImage' => '', + 'loginFootnote' => '', + 'loginHighlightColor' => '', + 'loginLogo' => '', + ], + 'extensionmanager' => [ + 'automaticInstallation' => '1', + 'offlineMode' => '0', + ], + ], + 'FE' => [ + 'debug' => false, + 'loginSecurityLevel' => 'normal', + 'passwordHashing' => [ + 'className' => 'TYPO3\\CMS\\Core\\Crypto\\PasswordHashing\\Argon2iPasswordHash', + 'options' => [], + ], + ], + 'GFX' => [ + 'processor' => 'GraphicsMagick', + 'processor_allowTemporaryMasksAsPng' => false, + 'processor_colorspace' => 'RGB', + 'processor_effects' => false, + 'processor_enabled' => true, + 'processor_path' => '/usr/bin/', + 'processor_path_lzw' => '/usr/bin/', + ], + 'LOG' => [ + 'TYPO3' => [ + 'CMS' => [ + 'deprecations' => [ + 'writerConfiguration' => [ + 5 => [ + 'TYPO3\CMS\Core\Log\Writer\FileWriter' => [ + 'disabled' => true, + ], + ], + ], + ], + ], + ], + ], + 'MAIL' => [ + 'transport' => 'sendmail', + 'transport_sendmail_command' => '/usr/sbin/sendmail -t -i', + 'transport_smtp_encrypt' => '', + 'transport_smtp_password' => '', + 'transport_smtp_server' => '', + 'transport_smtp_username' => '', + ], + 'SYS' => [ + 'devIPmask' => '', + 'displayErrors' => 0, + 'encryptionKey' => 'd1b47649701ddcdb6efbbbf1b37ba2e6f06668123549abd883f939750abdbde09aa951e75ca4d6ac5e531379eebd88e5', + 'exceptionalErrors' => 4096, + 'features' => [ + 'newTranslationServer' => true, + 'unifiedPageTranslationHandling' => true, + ], + 'sitename' => 'New TYPO3 site', + 'systemLogLevel' => 2, + 'systemMaintainers' => [ + 1, + ], + ], +]; diff --git a/demo-targets/old-typo3/container/typo3conf/PackageStates.php b/demo-targets/old-typo3/container/typo3conf/PackageStates.php new file mode 100644 index 0000000000..b7174d9a03 --- /dev/null +++ b/demo-targets/old-typo3/container/typo3conf/PackageStates.php @@ -0,0 +1,97 @@ + [ + 'core' => [ + 'packagePath' => 'typo3/sysext/core/', + ], + 'extbase' => [ + 'packagePath' => 'typo3/sysext/extbase/', + ], + 'fluid' => [ + 'packagePath' => 'typo3/sysext/fluid/', + ], + 'frontend' => [ + 'packagePath' => 'typo3/sysext/frontend/', + ], + 'fluid_styled_content' => [ + 'packagePath' => 'typo3/sysext/fluid_styled_content/', + ], + 'filelist' => [ + 'packagePath' => 'typo3/sysext/filelist/', + ], + 'impexp' => [ + 'packagePath' => 'typo3/sysext/impexp/', + ], + 'form' => [ + 'packagePath' => 'typo3/sysext/form/', + ], + 'install' => [ + 'packagePath' => 'typo3/sysext/install/', + ], + 'recordlist' => [ + 'packagePath' => 'typo3/sysext/recordlist/', + ], + 'backend' => [ + 'packagePath' => 'typo3/sysext/backend/', + ], + 'setup' => [ + 'packagePath' => 'typo3/sysext/setup/', + ], + 'rte_ckeditor' => [ + 'packagePath' => 'typo3/sysext/rte_ckeditor/', + ], + 'about' => [ + 'packagePath' => 'typo3/sysext/about/', + ], + 'adminpanel' => [ + 'packagePath' => 'typo3/sysext/adminpanel/', + ], + 'belog' => [ + 'packagePath' => 'typo3/sysext/belog/', + ], + 'beuser' => [ + 'packagePath' => 'typo3/sysext/beuser/', + ], + 'extensionmanager' => [ + 'packagePath' => 'typo3/sysext/extensionmanager/', + ], + 'felogin' => [ + 'packagePath' => 'typo3/sysext/felogin/', + ], + 'info' => [ + 'packagePath' => 'typo3/sysext/info/', + ], + 'lowlevel' => [ + 'packagePath' => 'typo3/sysext/lowlevel/', + ], + 'redirects' => [ + 'packagePath' => 'typo3/sysext/redirects/', + ], + 'reports' => [ + 'packagePath' => 'typo3/sysext/reports/', + ], + 'seo' => [ + 'packagePath' => 'typo3/sysext/seo/', + ], + 'sys_note' => [ + 'packagePath' => 'typo3/sysext/sys_note/', + ], + 't3editor' => [ + 'packagePath' => 'typo3/sysext/t3editor/', + ], + 'tstemplate' => [ + 'packagePath' => 'typo3/sysext/tstemplate/', + ], + 'viewpage' => [ + 'packagePath' => 'typo3/sysext/viewpage/', + ], + ], + 'version' => 5, +]; diff --git a/demo-targets/old-typo3/container/typo3conf/cms-016d0ef9.sqlite b/demo-targets/old-typo3/container/typo3conf/cms-016d0ef9.sqlite new file mode 100644 index 0000000000..eadd800dd0 Binary files /dev/null and b/demo-targets/old-typo3/container/typo3conf/cms-016d0ef9.sqlite differ diff --git a/demo-targets/old-typo3/questions.yml b/demo-targets/old-typo3/questions.yml new file mode 100644 index 0000000000..65b93b03d2 --- /dev/null +++ b/demo-targets/old-typo3/questions.yml @@ -0,0 +1,8 @@ +# SPDX-FileCopyrightText: 2021 iteratec GmbH +# +# SPDX-License-Identifier: Apache-2.0 + +categories: + - "Vulnerable App" + - "Demo Scan Target" +questions: [] diff --git a/demo-targets/old-typo3/templates/NOTES.txt b/demo-targets/old-typo3/templates/NOTES.txt new file mode 100644 index 0000000000..c9ec86d2e1 --- /dev/null +++ b/demo-targets/old-typo3/templates/NOTES.txt @@ -0,0 +1,22 @@ +1. Get the application URL by running these commands: +{{- if .Values.ingress.enabled }} +{{- range $host := .Values.ingress.hosts }} + {{- range .paths }} + http{{ if $.Values.ingress.tls }}s{{ end }}://{{ $host.host }}{{ .path }} + {{- end }} +{{- end }} +{{- else if contains "NodePort" .Values.service.type }} + export NODE_PORT=$(kubectl get --namespace {{ .Release.Namespace }} -o jsonpath="{.spec.ports[0].nodePort}" services {{ include "old-typo3.fullname" . }}) + export NODE_IP=$(kubectl get nodes --namespace {{ .Release.Namespace }} -o jsonpath="{.items[0].status.addresses[0].address}") + echo http://$NODE_IP:$NODE_PORT +{{- else if contains "LoadBalancer" .Values.service.type }} + NOTE: It may take a few minutes for the LoadBalancer IP to be available. + You can watch the status of by running 'kubectl get --namespace {{ .Release.Namespace }} svc -w {{ include "old-typo3.fullname" . }}' + export SERVICE_IP=$(kubectl get svc --namespace {{ .Release.Namespace }} {{ include "old-typo3.fullname" . }} --template "{{"{{ range (index .status.loadBalancer.ingress 0) }}{{.}}{{ end }}"}}") + echo http://$SERVICE_IP:{{ .Values.service.port }} +{{- else if contains "ClusterIP" .Values.service.type }} + export POD_NAME=$(kubectl get pods --namespace {{ .Release.Namespace }} -l "app.kubernetes.io/name={{ include "old-typo3.name" . }},app.kubernetes.io/instance={{ .Release.Name }}" -o jsonpath="{.items[0].metadata.name}") + export CONTAINER_PORT=$(kubectl get pod --namespace {{ .Release.Namespace }} $POD_NAME -o jsonpath="{.spec.containers[0].ports[0].containerPort}") + echo "Visit http://127.0.0.1:8080 to use your application" + kubectl --namespace {{ .Release.Namespace }} port-forward $POD_NAME 8080:$CONTAINER_PORT +{{- end }} diff --git a/demo-targets/old-typo3/templates/_helpers.tpl b/demo-targets/old-typo3/templates/_helpers.tpl new file mode 100644 index 0000000000..b63434d37d --- /dev/null +++ b/demo-targets/old-typo3/templates/_helpers.tpl @@ -0,0 +1,60 @@ +{{- /* +SPDX-FileCopyrightText: 2021 iteratec GmbH + +SPDX-License-Identifier: Apache-2.0 +*/ -}} +{{/* +Expand the name of the chart. +*/}} +{{- define "old-typo3.name" -}} +{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" }} +{{- end }} + +{{/* +Create a default fully qualified app name. +We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec). +If release name contains chart name it will be used as a full name. +*/}} +{{- define "old-typo3.fullname" -}} +{{- if .Values.fullnameOverride }} +{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" }} +{{- else }} +{{- $name := default .Chart.Name .Values.nameOverride }} +{{- if contains $name .Release.Name }} +{{- .Release.Name | trunc 63 | trimSuffix "-" }} +{{- else }} +{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" }} +{{- end }} +{{- end }} +{{- end }} + +{{/* +Create chart name and version as used by the chart label. +*/}} +{{- define "old-typo3.chart" -}} +{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }} +{{- end }} + +{{/* +Common labels +*/}} +{{- define "old-typo3.labels" -}} +helm.sh/chart: {{ include "old-typo3.chart" . }} +{{ include "old-typo3.selectorLabels" . }} +{{- if .Chart.AppVersion }} +app.kubernetes.io/version: {{ .Chart.AppVersion | quote }} +{{- end }} +app.kubernetes.io/managed-by: {{ .Release.Service }} +{{- end }} + +{{/* +Selector labels +*/}} +{{- define "old-typo3.selectorLabels" -}} +app.kubernetes.io/name: {{ include "old-typo3.name" . }} +app.kubernetes.io/instance: {{ .Release.Name }} +{{- end }} + +{{- define "old-typo3.annotations" -}} +{{ .Values.annotations | toYaml }} +{{- end -}} diff --git a/demo-targets/old-typo3/templates/deployment.yaml b/demo-targets/old-typo3/templates/deployment.yaml new file mode 100644 index 0000000000..1d12342725 --- /dev/null +++ b/demo-targets/old-typo3/templates/deployment.yaml @@ -0,0 +1,62 @@ +# SPDX-FileCopyrightText: 2021 iteratec GmbH +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: apps/v1 +kind: Deployment +metadata: + name: {{ include "old-typo3.fullname" . }} + labels: + {{- include "old-typo3.labels" . | nindent 4 }} +spec: + replicas: {{ .Values.replicaCount }} + selector: + matchLabels: + {{- include "old-typo3.selectorLabels" . | nindent 6 }} + template: + metadata: + {{- with .Values.podAnnotations }} + annotations: + {{- toYaml . | nindent 8 }} + {{- end }} + labels: + {{- include "old-typo3.selectorLabels" . | nindent 8 }} + spec: + {{- with .Values.imagePullSecrets }} + imagePullSecrets: + {{- toYaml . | nindent 8 }} + {{- end }} + securityContext: + {{- toYaml .Values.podSecurityContext | nindent 8 }} + containers: + - name: {{ .Chart.Name }} + securityContext: + {{- toYaml .Values.securityContext | nindent 12 }} + image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}" + imagePullPolicy: {{ .Values.image.pullPolicy }} + ports: + - name: http + containerPort: 80 + protocol: TCP + livenessProbe: + httpGet: + path: / + port: http + readinessProbe: + httpGet: + path: / + port: http + resources: + {{- toYaml .Values.resources | nindent 12 }} + {{- with .Values.nodeSelector }} + nodeSelector: + {{- toYaml . | nindent 8 }} + {{- end }} + {{- with .Values.affinity }} + affinity: + {{- toYaml . | nindent 8 }} + {{- end }} + {{- with .Values.tolerations }} + tolerations: + {{- toYaml . | nindent 8 }} + {{- end }} diff --git a/demo-targets/old-typo3/templates/ingress.yaml b/demo-targets/old-typo3/templates/ingress.yaml new file mode 100644 index 0000000000..82b61f51ef --- /dev/null +++ b/demo-targets/old-typo3/templates/ingress.yaml @@ -0,0 +1,65 @@ +# SPDX-FileCopyrightText: 2021 iteratec GmbH +# +# SPDX-License-Identifier: Apache-2.0 + +{{- if .Values.ingress.enabled -}} +{{- $fullName := include "old-typo3.fullname" . -}} +{{- $svcPort := .Values.service.port -}} +{{- if and .Values.ingress.className (not (semverCompare ">=1.18-0" .Capabilities.KubeVersion.GitVersion)) }} + {{- if not (hasKey .Values.ingress.annotations "kubernetes.io/ingress.class") }} + {{- $_ := set .Values.ingress.annotations "kubernetes.io/ingress.class" .Values.ingress.className}} + {{- end }} +{{- end }} +{{- if semverCompare ">=1.19-0" .Capabilities.KubeVersion.GitVersion -}} +apiVersion: networking.k8s.io/v1 +{{- else if semverCompare ">=1.14-0" .Capabilities.KubeVersion.GitVersion -}} +apiVersion: networking.k8s.io/v1beta1 +{{- else -}} +apiVersion: extensions/v1beta1 +{{- end }} +kind: Ingress +metadata: + name: {{ $fullName }} + labels: + {{- include "old-typo3.labels" . | nindent 4 }} + {{- with .Values.ingress.annotations }} + annotations: + {{- toYaml . | nindent 4 }} + {{- end }} +spec: + {{- if and .Values.ingress.className (semverCompare ">=1.18-0" .Capabilities.KubeVersion.GitVersion) }} + ingressClassName: {{ .Values.ingress.className }} + {{- end }} + {{- if .Values.ingress.tls }} + tls: + {{- range .Values.ingress.tls }} + - hosts: + {{- range .hosts }} + - {{ . | quote }} + {{- end }} + secretName: {{ .secretName }} + {{- end }} + {{- end }} + rules: + {{- range .Values.ingress.hosts }} + - host: {{ .host | quote }} + http: + paths: + {{- range .paths }} + - path: {{ .path }} + {{- if and .pathType (semverCompare ">=1.18-0" $.Capabilities.KubeVersion.GitVersion) }} + pathType: {{ .pathType }} + {{- end }} + backend: + {{- if semverCompare ">=1.19-0" $.Capabilities.KubeVersion.GitVersion }} + service: + name: {{ $fullName }} + port: + number: {{ $svcPort }} + {{- else }} + serviceName: {{ $fullName }} + servicePort: {{ $svcPort }} + {{- end }} + {{- end }} + {{- end }} +{{- end }} diff --git a/demo-targets/old-typo3/templates/service.yaml b/demo-targets/old-typo3/templates/service.yaml new file mode 100644 index 0000000000..31cecafcff --- /dev/null +++ b/demo-targets/old-typo3/templates/service.yaml @@ -0,0 +1,15 @@ +apiVersion: v1 +kind: Service +metadata: + name: {{ include "old-typo3.fullname" . }} + labels: + {{- include "old-typo3.labels" . | nindent 4 }} +spec: + type: {{ .Values.service.type }} + ports: + - port: {{ .Values.service.port }} + targetPort: http + protocol: TCP + name: http + selector: + {{- include "old-typo3.selectorLabels" . | nindent 4 }} diff --git a/demo-targets/old-typo3/templates/tests/test-connection.yaml b/demo-targets/old-typo3/templates/tests/test-connection.yaml new file mode 100644 index 0000000000..fe122203fb --- /dev/null +++ b/demo-targets/old-typo3/templates/tests/test-connection.yaml @@ -0,0 +1,15 @@ +apiVersion: v1 +kind: Pod +metadata: + name: "{{ include "old-typo3.fullname" . }}-test-connection" + labels: + {{- include "old-typo3.labels" . | nindent 4 }} + annotations: + "helm.sh/hook": test +spec: + containers: + - name: wget + image: busybox + command: ['wget'] + args: ['{{ include "old-typo3.fullname" . }}:{{ .Values.service.port }}'] + restartPolicy: Never diff --git a/demo-targets/old-typo3/values.yaml b/demo-targets/old-typo3/values.yaml new file mode 100644 index 0000000000..b7c3b196d0 --- /dev/null +++ b/demo-targets/old-typo3/values.yaml @@ -0,0 +1,73 @@ +# SPDX-FileCopyrightText: 2021 iteratec GmbH +# +# SPDX-License-Identifier: Apache-2.0 + +# Default values for old-wordpress. +# This is a YAML-formatted file. +# Declare variables to be passed into your templates. + +replicaCount: 1 + +image: + # image.repository -- Container Image + repository: docker.io/securecodebox/old-typo3 + # image.tag -- The image tag + # @default -- defaults to the appVersion + tag: null + pullPolicy: IfNotPresent + +imagePullSecrets: [] +nameOverride: "" +fullnameOverride: "" + +# -- add labels to the deployment, service and pods +labels: {} + +# -- add annotations to the deployment, service and pods +annotations: {} + +podSecurityContext: {} + # fsGroup: 2000 + +securityContext: {} + # capabilities: + # drop: + # - ALL + # readOnlyRootFilesystem: true + # runAsNonRoot: true + # runAsUser: 1000 + +service: + type: ClusterIP + port: 80 + +ingress: + enabled: false + annotations: {} + # kubernetes.io/ingress.class: nginx + # kubernetes.io/tls-acme: "true" + hosts: + - host: chart-example.local + paths: [] + tls: [] + # - secretName: chart-example-tls + # hosts: + # - chart-example.local + +resources: {} + # We usually recommend not to specify default resources and to leave this as a conscious + # choice for the user. This also increases chances charts run on environments with little + # resources, such as Minikube. If you do want to specify resources, uncomment the following + # lines, adjust them as necessary, and remove the curly braces after 'resources:'. + # limits: + # cpu: 100m + # memory: 128Mi + # requests: + # cpu: 100m + # memory: 128Mi + +nodeSelector: {} + +tolerations: [] + +affinity: {}