Skip to content

Commit

Permalink
Merge pull request #49 from anthosz/netpol
Browse files Browse the repository at this point in the history
Version 1.9.0
  • Loading branch information
MaikuMori authored Oct 26, 2024
2 parents bd6fd2d + 9bd625a commit 4c5a606
Show file tree
Hide file tree
Showing 8 changed files with 315 additions and 2 deletions.
180 changes: 180 additions & 0 deletions SECURITY.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,180 @@
# Security Policy

Adapted from the [Gotenberg Security Policy](https://github.com/gotenberg/gotenberg/blob/main/SECURITY.md).

## Supported Versions

Please ensure to keep your environment up-to-date and use only the latest version of charts and images.

Supported Kubernetes versions are listed in test workflow file [here](.github/workflows/test.yaml).

## Reporting a Vulnerability

We take all reports regarding security seriously.

If you discover a security vulnerability, please refrain from publishing it publicly.
Instead, kindly send us the details via email to _helm [at] maikumori [dot] com_.

In the subject of your email, please indicate that it's a security vulnerability report for specific chart.
In your message, please include:

- A detailed description of the vulnerability.
- The steps to reproduce the issue.
- Any potential impact of the vulnerability on the users or system.

If you wish to encrypt your message, you can use the following PGP key:

```
-----BEGIN PGP PUBLIC KEY BLOCK-----
mQINBFPrhtIBEAC7opwKK/MqMS18Um2qlOl47jlNce/JqjkDV1Ctj3nxtXm/+5fe
Wh2xmL63nOW8RjR/+TvleuEGu0PgtnsqtKP4W8ZJ/1dzrCgohM+w8Muhc50Vq3du
gjIp1mhd7AA1JYAt2DxDGHFN3LiEsqkyVoqzknlw6Z7uEdHaqcs3Wf+3SLdIep8P
jJGKsjB5n8PECefNyR/PyXRC1fj04F8p3OgMXnkaEP+mIceT4cTjt5h1wA/QL+OJ
3P8zN2Zo2IJvCt3oLkP3+f3En74o1QZQVzvuZBM1nsW1LE2PeXw+77OG8//DBVCj
OHNGR1Es+OLCFX1yYOsfJxOIfk7Cuc7sfqOjAA7GJ07+OvUep28VlZIiLi924agc
pXRaJqV/D+X8LTpVX9qFcvf2FcuxIChIm+Lm0TWXlHdidilLay3ZOlcpd4COCA4V
aW6Lisnowt0DUYZbq4D45euB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3bsIoi
p9zv20SEsKZ1h3OIBZfmc4ddtm60PHfPIDbUVSWYmAK7Lt3yQpZU9U6mmrCWktmr
ka5Vu4rzuJmJmhQdhVe3A4OZWbUuzWePNs2XX4G20d1nr6K7TO1h/qNXvNZYD9EF
HRInXT5PxDJOcPoekrXVrRJfmUtkdodhQWTous19ISis8E0NeAoHLSbI/jAeWo6D
wfjkPcAvMrVYN+jDDq3HbfYIt5b5SFMxKlCt/5hCxLlwNrwfMStBMH1gNw6vie1W
X12iC+N/xiBDy2lHW7VdolYEUJF2ap9JvyHPd727h8u+QaiOKeSkb4eLFw==
=hTGE
-----END PGP PUBLIC KEY BLOCK-----
```

Please remember that this process is done in a _'best-effort'_ manner.
This means we strive to respond and act as quickly as possible, but the speed may vary depending on the severity of
the issue and our resources.

Thank you in advance for helping to keep our project safe!

## Disclosure Policy

Once we have received your vulnerability report, we will work to validate and reproduce the issue.
If we can confirm the vulnerability, we will proceed to:

- Work on a fix and a release timeline.
- Notify you when the fix has been implemented and released.
- Credit you for discovering the vulnerability (unless you request anonymity).
- Please note that we will do our best to keep you informed about the progress towards resolving the issue.

## Comments on this Policy

If you have suggestions on how this process could be improved, please submit a pull request.
6 changes: 6 additions & 0 deletions charts/gotenberg/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## 1.9.0

- Add ability to create and configure `networkPolicy` (Thanks to Anthony | [@anthosz](https://github.com/anthosz))
- Add [SECURITY.md](../../SECURITY.md).
- Add `testPodAnnotations` (Thanks to Anthony | [@anthosz](https://github.com/anthosz))

## 1.8.0

- Bump `gotenberg` version `8.9.11` -> `8.12.0`.
Expand Down
2 changes: 1 addition & 1 deletion charts/gotenberg/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: "1.8.0"
version: "1.9.0"

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
7 changes: 6 additions & 1 deletion charts/gotenberg/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Gotenberg

[![Artifact Hub](https://img.shields.io/endpoint?url=https://artifacthub.io/badge/repository/gotenberg)](https://artifacthub.io/packages/helm/maikumori/gotenberg)
![Version: 1.8.0](https://img.shields.io/badge/Version-1.8.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 8.12.0](https://img.shields.io/badge/AppVersion-8.12.0-informational?style=flat-square)
![Version: 1.9.0](https://img.shields.io/badge/Version-1.9.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 8.12.0](https://img.shields.io/badge/AppVersion-8.12.0-informational?style=flat-square)

This is a HELM chart for Gotenberg.

Expand Down Expand Up @@ -115,6 +115,11 @@ helm upgrade my-release maikumori/gotenberg --install
| metrics.serviceMonitor.relabelings | list | `[]` | List of relabel configs to apply to samples before scraping |
| metrics.serviceMonitor.scrapeTimeout | string | `nil` | Timeout after which the scrape is ended |
| nameOverride | string | `""` | |
| networkPolicy.allowEgress | bool | `true` | |
| networkPolicy.allowIngress | bool | `true` | |
| networkPolicy.enabled | bool | `false` | |
| networkPolicy.extraEgress | list | `[]` | |
| networkPolicy.extraIngress | list | `[]` | |
| nodeSelector | object | `{}` | |
| pdb.create | bool | `false` | |
| pdb.maxUnavailable | string | `""` | |
Expand Down
27 changes: 27 additions & 0 deletions charts/gotenberg/templates/networkpolicy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{{- if and .Values.networkPolicy .Values.networkPolicy.enabled }}
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
name: {{ include "gotenberg.fullname" . }}
labels:
{{- include "gotenberg.labels" . | nindent 4 }}
spec:
podSelector:
matchLabels:
{{- include "gotenberg.selectorLabels" . | nindent 6 }}
policyTypes:
- Ingress
- Egress
ingress:
{{- if .Values.networkPolicy.allowIngress }}
- {}
{{- else }}
{{- toYaml .Values.networkPolicy.extraIngress | nindent 2 }}
{{- end }}
egress:
{{- if .Values.networkPolicy.allowEgress }}
- {}
{{- else }}
{{- toYaml .Values.networkPolicy.extraEgress | nindent 2 }}
{{- end }}
{{- end }}
3 changes: 3 additions & 0 deletions charts/gotenberg/templates/tests/test-connection.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ metadata:
{{- include "gotenberg.labels" . | nindent 4 }}
annotations:
"helm.sh/hook": test
{{- with .Values.testPodAnnotations }}
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
containers:
- name: wget
Expand Down
58 changes: 58 additions & 0 deletions charts/gotenberg/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@
"nameOverride": {
"$ref": "#/$defs/helm-values.nameOverride"
},
"networkPolicy": {
"$ref": "#/$defs/helm-values.networkPolicy"
},
"nodeSelector": {
"$ref": "#/$defs/helm-values.nodeSelector"
},
Expand Down Expand Up @@ -92,6 +95,9 @@
"strategy": {
"$ref": "#/$defs/helm-values.strategy"
},
"testPodAnnotations": {
"$ref": "#/$defs/helm-values.testPodAnnotations"
},
"tolerations": {
"$ref": "#/$defs/helm-values.tolerations"
},
Expand Down Expand Up @@ -686,6 +692,53 @@
"type": "string",
"default": ""
},
"helm-values.networkPolicy": {
"type": "object",
"properties": {
"allowEgress": {
"$ref": "#/$defs/helm-values.networkPolicy.allowEgress"
},
"allowIngress": {
"$ref": "#/$defs/helm-values.networkPolicy.allowIngress"
},
"enabled": {
"$ref": "#/$defs/helm-values.networkPolicy.enabled"
},
"extraEgress": {
"$ref": "#/$defs/helm-values.networkPolicy.extraEgress"
},
"extraIngress": {
"$ref": "#/$defs/helm-values.networkPolicy.extraIngress"
}
},
"additionalProperties": false
},
"helm-values.networkPolicy.allowEgress": {
"description": "Allow all connections to any destinations. To be set to false if extraEgress is used.",
"type": "boolean",
"default": true
},
"helm-values.networkPolicy.allowIngress": {
"description": "Allow all connections from any source. To be set to false if extraIngress is used.",
"type": "boolean",
"default": true
},
"helm-values.networkPolicy.enabled": {
"type": "boolean",
"default": false
},
"helm-values.networkPolicy.extraEgress": {
"description": "extraIngress:\n - from:\n - podSelector:\n matchLabels:\n component: apache\n ports:\n - port: 8080\n protocol: TCP\nConfig custom egress rules to the NetworkPolicy.",
"type": "array",
"default": [],
"items": {}
},
"helm-values.networkPolicy.extraIngress": {
"description": "Config custom ingress rules to the NetworkPolicy.",
"type": "array",
"default": [],
"items": {}
},
"helm-values.nodeSelector": {
"type": "object",
"default": {}
Expand Down Expand Up @@ -876,6 +929,11 @@
"type": "object",
"default": {}
},
"helm-values.testPodAnnotations": {
"description": "-- Set annotations for the helm test pods (for example to disable certain kube-score checks)",
"type": "object",
"default": {}
},
"helm-values.tolerations": {
"type": "array",
"default": [],
Expand Down
34 changes: 34 additions & 0 deletions charts/gotenberg/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ serviceAccount:

podAnnotations: {}

# -- Set annotations for the helm test pods (for example to disable certain kube-score checks)
testPodAnnotations: {}

# -- List of additional pod labels
podLabels: {}

Expand Down Expand Up @@ -286,3 +289,34 @@ metrics:
annotations: {}
# -- Additional labels for the service monitor
labels: {}

# Enable or Disable Network Policy.
# See also: https://kubernetes.io/docs/concepts/services-networking/network-policies/
networkPolicy:
enabled: false

# Allow all connections from any source. To be set to false if extraIngress is used.
allowIngress: true

# Allow all connections to any destinations. To be set to false if extraEgress is used.
allowEgress: true
# Config custom ingress rules to the NetworkPolicy.
extraIngress: []
# extraIngress:
# - from:
# - podSelector:
# matchLabels:
# component: apache
# ports:
# - port: 8080
# protocol: TCP
# Config custom egress rules to the NetworkPolicy.
extraEgress: []
# extraEgress:
# - to:
# - podSelector:
# matchLabels:
# component: apache
# ports:
# - port: 80
# protocol: TCP

0 comments on commit 4c5a606

Please sign in to comment.