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

# Charging Data Function 4.2.0

Charging Data Function (CDF) 4.2.0 introduces adaptations to support the CDM NATS service requirements in the Cennso cloud environment. Key enhancements include support for NATS user authentication and custom TLS Certificate Authority (CA) configuration.

## Features

### Add support for NATS user authentication

NATS clients used by the Work-Queue, Key-Value Store, and Archive services can now authenticate using [NATS user credentials](https://docs.nats.io/using-nats/developer/connecting/creds) based on [JWT](https://jwt.io/) and [nkey](https://docs.nats.io/running-a-nats-service/configuration/securing_nats/auth_intro/nkey_auth).

To enable NATS user authentication for a service:

1. Generate user credentials using the [nsc](https://docs.nats.io/using-nats/nats-tools/nsc) tool. This will produce a `user.creds` file.
2. Store this file in a Kubernetes Secret.
3. Set the **nats_services.<work_queue|kv_store|archive>.creds** configuration option for the relevant service with the value pointing to the name of the Kubernetes Secret that contains the `user.creds` file.

### Add custom TLS CA support for NATS clients

In addition to [user authentication through JWT](https://docs.nats.io/running-a-nats-service/configuration/securing_nats/auth_intro/nkey_auth), NATS clients used by the Work-Queue, Key-Value Store, and Archive services can now authenticate using TLS certificates. This includes support for specifying a custom Certificate Authority (CA) using the CAFile option to establish secure TLS communication with the NATS server. For more details, see the [NATS TLS documentation](https://docs.nats.io/using-nats/developer/connecting/tls).

See the [chart configuration reference](https://docs.cennso.com/components/cdf/latest/technical-reference/chart-config.md) for full details on the new TLS options.

## Maintenance

### Configuration handling cleanup

Configuration handling was cleaned up as part of ongoing architectural changes for CDF 4.0.0. These adjustments do not impact the operation of the CDF.
