> For the complete documentation index, see [llms.txt](https://docs.cennso.com/components/cgw/latest/llms.txt) (all documentation: [llms.txt](https://docs.cennso.com/llms.txt)). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cennso.com/components/cgw/latest/releases/1.7.0.md).

# Connectivity Gateway 1.7.0

Connectivity Gateway (CGW) in version 1.7.0 provides several new features and bug fixes. 

## Features

### Add support for additional containers

With the new release, you can attach custom containers to the workload. It is possible to specify initial custom containers by setting them in the `additionalInitContainers` parameter, and custom sidecars by adding them in the `additionalContainers` parameter.

### Add support for additional volumes

This release also brings an option to attach additional volumes to the `volumes` field of a pod. You can use them in additional containers that you can attach or connect to the `rclone` sidecar by updating the `rclone.additionalVolumeMounts` parameter. Thanks to that, you can, for example, attach additional certificates.

### Add support for Secret references in the IPSec configuration

Instead of defining a plain text PSK for IPsec in the CGW values file, you can instead refer to an existing Secret through `ipsec.strongswan.ipsecSecretRef` and manage the Secret with proper Secret management tools.

For details and an example, see the [IPsec tutorial](https://docs.cennso.com/components/cgw/latest/tutorials/02-setup-vpn-ipsec.md#the-ipsecsecrets-section).

### Introduce CGW Support chart

This release introduces the CGW Support chart responsible for installing Grafana Dashboards and Service Monitors on the cluster. They are separated from the CGW chart, as they should be managed independently from the running workloads.

### Introduce Grafana Dashboard

When you install the newly-created CGW Support chart, you can enable the installation of the Grafana Dashboard. It provides you with information about CGW instances and their health.

## Fixes

### Port name doesn't describe its usage

Port name `p9324` was renamed to `bird-exporter` and `p9427` to `ping-exporter`. Thanks to that, the name is descriptive and provides information about its purpose.

## Migration guide

### 1.6 -> 1.7

> **CAUTION:** Updating the CGW chart restarts the currently running CGW instance, which disconnects all active sessions.

Follow these steps to upgrade CGW to version 1.7.0:

1. Install the `cgw` Helm chart in version 1.7.0.
2. Install the `cgw-support` Helm chart in version 1.7.0.

If you already configured ServiceMonitor resources for CGW instances <1.7, they will not scrape metrics for CGW >=1.7 as the port names have changed. We recommend setting the `prometheus.service monitor.enabled` parameter for the CGW Support chart to deploy additional ServiceMonitor resources.
