> For the complete documentation index, see [llms.txt](https://docs.cennso.com/components/rpr/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/rpr/latest/releases/2.2.0.md).

# RADIUS Proxy 2.2.0

In this release of RADIUS Proxy (RPR), we provide the following features:

- Deprecation of the `ping-exporter` and `vxlan` configuration options
- Rootless RADIUS Proxy container
- Ability to specify configuration options for the underlying BEAM virtual machine
- Removed unused metrics
- Ability to disable HTTP REST API
- New metric for RADIUS timed out requests

## Features

### Deprecation of the `ping-exporter` and `vxlan` configuration options

>**CAUTION:** The `ping-exporter` and `vxlan` configuration options are deprecated and will be removed in the next `2.3.0` release. 

Both `ping-exporter` and `vxlan` containers are outdated and not maintained anymore. 
The recommended way to communicate with RADIUS Proxy and RADIUS servers, which RADIUS Proxy communicates with, is the Kubernetes network. 
The RADIUS Proxy chart does not provide facilities to communicate with RADIUS servers outside of the Kubernetes cluster. 
Therefore, in future deployments, replace `ping-exporter` with [Network Performance Probe](https://docs.cennso.com/docs/components/npp/3.0.0) (NPP) or
external tools that provide such a possibility.

### Rootless RADIUS Proxy container

Since the RADIUS Proxy 2.2.0 release, the container is rootless. The container is launched by the `runner` user with UID and GID `1000`.

If you need to do something with the `root` permissions, enable the `debug` sidecar container
using the following configuration options:

```
debug:
  enabled: true
  image:
    repository: quay.io/travelping/nettools
    tag: v1.11.0
    pullPolicy: IfNotPresent
```

### Ability to specify configuration options for the underlying BEAM virtual machine

RADIUS Proxy in version `2.2.0` allows you to specify configuration options for the
underlying BEAM virtual machine:

```
rpr_elixir_erl_options: ""
```

To learn more about the available configuration options, read the [official Erlang documentation](https://www.erlang.org/doc/man/erl.html#flags).

### Removed unused metrics

The previous versions of RADIUS Proxy provided metrics for the underlying BEAM virtual machine. These metrics were not used anywhere
and were not represented on the Grafana dashboard. Since the `2.2.0` release, these metrics are disabled.

### Ability to disable HTTP REST API

RADIUS Proxy in version `2.2.0` allows you to disable the HTTP API listener. You can control it using the following configuration option:

```
eradiusd_http_api:
  enabled: true
```

### New metric for RADIUS timed out requests

RADIUS Proxy in version `2.2.0` introduces a new `radiusClientTotalTimeouts` metric.
The new metric tracks the number of RADIUS requests sent by RADIUS Proxy that didn't receive a response for a pre-configured timeout period.

The output example:

```
# TYPE radiusClientTotalTimeouts counter
radiusClientTotalTimeouts{server_name="radius-auth",server_ip="10.10.10.1",server_port="1812",client_name="0.0.0.0",client_ip="0.0.0.0"} 0
# TYPE radiusClientTotalTimeouts counter                                               
radiusClientTotalTimeouts{server_name="radius-acct",server_ip="10.10.10.1",server_port="1813",client_name="0.0.0.0",client_ip="0.0.0.0"} 0
```

## Migration guide

### `2.1.10` -> `2.2.0`

>**CAUTION:** This is the last release of RADIUS Proxy that supports `ping-exporter` and `vxlan`. All the options related to these features will be removed in the next `2.2.0` release. Make sure that these features are not used in your setup and prepare a proper replacement. It is recommended to replace the `ping-exporter` with the [Network Performance Probe](https://docs.cennso.com/docs/components/npp/3.0.0) and use the Kubernetes network to communicate with RADIUS Proxy.

Since new metrics were added in this release, it is worth to import a new Grafana dashboard that comes with RADIUS Proxy distribution.

There are no backward incompatible configuration changes. Proceed with updating the chart and image.
