# Rasa Pro Services Changelog

All notable changes to Rasa Pro Services will be documented in this page. This product adheres to [Semantic Versioning](https://semver.org/) starting with version 3.3 (initial version).

## [3.9.0] - 2026-06-29
**Rasa Pro Services 3.9.0 (2026-06-29)**

### Improvements
- Added created_at UTC insertion timestamp column and corresponding index to all analytics tables. Added indexes on `timestamp` and `inserted_at` where those columns exist.

### Bugfixes
- Fixed a long-standing bug in the analytics legacy session-detection path that split a single Rasa conversation session into two analytics sessions. `action_session_start` and the `session_started_metadata` slot both unconditionally marked a new session, so every Rasa session start produced a first session holding only the events between the two markers and a second session holding the rest. The slot check is now symmetric to the action check and treats the slot as part of an in-flight session start when `action_session_start` was the most recent anchor event for the sender.
- Upgraded versions of urllib3, idna, mako, and redshift-connector and accompanying dependencies because of reported vulnerabilities.
- Removed the unused `cargo` build toolchain, including its bundled rustc source tree, from the production image.

## [3.8.1] - 2026-04-17
**Rasa Pro Services 3.8.1 (2026-04-17)**

### Bugfixes
- Updated the following Poetry dependencies with vulnerability patches:
  - `requests` to `2.33.1` fixing CVE-2026-25645.
  - `cryptography` to `46.0.7` fixing CVE-2026-39892.
  - `setuptools` to `82.0.1`
  
Additionally, updated pip installed in Dockerfile to `==26.x` fixing CVE-2026-24049 vulnerability in `wheel` and updated `setuptools` to the version locked in `poetry.lock` which updated `jaraco.context` dependency to `6.1.0` fixing CVE-2026-23949.

## [3.8.0] - 2026-03-26
**Rasa Pro Services 3.8.0 (2026-03-26)**

### Improvements
- Add the ability to disable stack event processing by the analytics service through an environment variable. Set the `DISABLE_STACK_EVENT_PROCESSING` variable to `true` to disable analytics stack event processing. By default, stack event processing is enabled.
- Add new composite and covering indexes to existing tables in Rasa Analytics to improve the performance of high-load analytics queries and reduce CPU utilization.
- Add a new stack event query for the `event_was_processed` check to handle edge cases when stack events are stored in the `rasa_event` table but not in the `rasa_dialogue_stack_frame` table because of being skipped during processing and published to the DLQ.
- Update Analytics session processing to use the `session_id` provided by Rasa Pro 3.16 in `event.metadata.session_id` directly as the session identifier, replacing the Analytics-generated UUID. A new `rasa_user` table is introduced to track end users across multiple conversations, populated from the `user_id` field on Kafka event payloads.

### Bugfixes
- Upgrade `urllib3`, `werkzeug`, and `brotli` to fix security vulnerabilities.
- Update urllib3 to 2.6.3 to address CVE-2026-21441.

## [3.7.0] - 2025-11-26
**Rasa Pro Services 3.7.0 (2025-11-26)**

### Improvements
- Add the original Rasa event message offset to the header of the message being sent to the Kafka dead-letter-queue. This allows easier tracing of the original message in case of errors.
- Allow skipping of db migration run when starting the Analytics service by setting the environment variable RUN_ANALYTICS_DB_MIGRATIONS to "false".
- Add database indexes to analytics tables to improve query performance.

## [3.6.2] - 2025-11-25
**Rasa Pro Services 3.6.2 (2025-11-25)**

### Bugfixes
- Implement custom timestamp type inheriting from `sqlalchemy.types.TypeDecorator`. This custom type normalizes and denormalizes timestamp columns across all db tables to ensure consistent timezone handling during inserting and querying.

## [3.6.1] - 2025-10-29
**Rasa Pro Services 3.6.1 (2025-10-29)**

### Bugfixes
- Catch all exceptions raised during DialogueStackUpdated event processing and skip the event if an exception occurs.

## [3.6.0] - 2025-10-10
**Rasa Pro Services 3.6.0 (2025-10-10)**

### Features
- Add support for IAM authentication for AWS RDS database in the analytics service.
- Add support for IAM authentication for AWS Managed Streaming for Apache Kafka in the analytics service.

### Improvements
- Add new environment variables for each AWS service integration that indicates whether to use IAM authentication.

### Bugfixes
- Refactor the logic for creating new sessions.

## [3.5.10] - 2025-11-25
**Rasa Pro Services 3.5.10 (2025-11-25)**

### Bugfixes
- Implement custom timestamp type inheriting from `sqlalchemy.types.TypeDecorator`.

## [3.5.9] - 2025-10-29
**Rasa Pro Services 3.5.9 (2025-10-29)**

### Bugfixes
- Catch all exceptions raised during DialogueStackUpdated event processing and skip the event if an exception occurs.

## [3.5.8] - 2025-10-10
**Rasa Pro Services 3.5.8 (2025-10-10)**

### Bugfixes
- Refactor the logic for creating new sessions.

## [3.5.7] - 2025-10-06
**Rasa Pro Services 3.5.7 (2025-10-06)**

### Bugfixes
- Add the installation of `zlib` OS dependency to Analytics Dockerfile to fix build issues when running the service.

## [3.5.6] - 2025-09-11
**Rasa Pro Services 3.5.6 (2025-09-11)**

### Bugfixes
- Upgrade alpine base image to 3.19 in order to a security vulnerability in alpine:3.17.

## [3.5.5] - 2025-09-03
**Rasa Pro Services 3.5.5 (2025-09-03)**

### Bugfixes
- Upgrade vulnerabilities.

## [3.5.4] - 2025-07-29
**Rasa Pro Services 3.5.4 (2025-07-29)**

### Bugfixes
- Upgrade the following dependencies to fix security vulnerabilities in the analytics service.

## [3.5.3] - 2025-06-27
**Rasa Pro Services 3.5.3 (2025-06-27)**

### Bugfixes
- Handle `JsonPatchConflict` exceptions gracefully when loading pre-existing dialogue stack events or when applying current event patches.

## [3.5.2] - 2025-05-21
**Rasa Pro Services 3.5.2 (2025-05-21)**

### Bugfixes
- Fixed a bug in Rasa Analytics for Session Creation Logic. A session can be created by events `slot` event with the slot `session_started_metadata` followed by `action` event for `action_session_start` OR just the event `action` for `action_session_start` alone.

## [3.5.1] - 2025-05-12
**Rasa Pro Services 3.5.1 (2025-05-12)**

### Bugfixes
- Fix the processing of stack events by the analytics service in the case of multiple parallel conversations whose events are split across several batches consumed by the service.

## [3.5.0] - 2025-03-20
**Rasa Pro Services 3.5.0 (2025-03-20)**

### Improvements
- MTS: Update MTS to train without the need for NFS.

### Bugfixes
- Updated `jinja2`, `werkzeug`, `idna`, `requests`, `zipp`, and `urllib3` to address security vulnerabilities.

## [3.4.1] - 2025-05-12
**Rasa Pro Services 3.4.1 (2025-05-12)**

### Bugfixes
- Updated `jinja2`, `werkzeug`, `idna`, `requests`, `zipp`, and `urllib3` to address security vulnerabilities.

## [3.4.0] - 2024-12-12
**Rasa Pro Services 3.4.0 (2024-12-12)**

### Improvements
- Added Python 3.10 and Python 3.11 support to Rasa Analytics.

### Bugfixes
- MTS and MRS: Add retry capability to Kubernetes API calls on `5xx` errors.

## [3.3.5] - 2024-10-29
**Rasa Pro Services 3.3.5 (2024-10-29)**

### Bugfixes
- MTS and MRS: Add retry capability to Kubernetes API calls on `5xx` errors.

## [3.3.4] - 2024-10-02
**Rasa Pro Services 3.3.4 (2024-10-02)**

### Bugfixes
- Return status code 503 when the Analytics service is unavailable during a healthcheck request.

## [3.3.3] - 2024-09-25
**Rasa Pro Services 3.3.3 (2024-09-25)**

### Bugfixes
- MTS: Fix bug (ATO-2257) when training pod's status is not caught when MTS consumer job restarts.

## [3.3.2] - 2024-05-28
**Rasa Pro Services 3.3.2 (2024-05-28)**

### Improvements
- MRS: Upload rasa pod logs to remote storage for user-friendly access to logs in case the running of the assistant fails.

## [3.3.1] - 2024-05-27
**Rasa Pro Services 3.3.1 (2024-05-27)**

### Bugfixes
- Allow users to specify image pull secrets for MTS / MRS.

## [3.3.0] - 2024-04-03
**Rasa Pro Services 3.3.0 (2024-04-03)**

### Improvements
- Align column names representing the `flow_id` as defined in the yaml file across `rasa_flow_status`, `rasa_llm_command`, and `rasa_dialogue_stack_frame` tables.

### Miscellaneous internal changes
_Miscellaneous internal changes._

## [3.2.3] - 2023-12-20
**Rasa Pro Services 3.2.3 (2023-12-20)**

### Improvements
- MTS: Setup alembic schema migration mechanism for the database of the model training orchestrator.

### Bugfixes
- Fix telemetry reporting in shipped Docker images.

## [3.2.2] - 2023-12-05
**Rasa Pro Services 3.2.2 (2023-12-05)**

### Bugfixes
- Remove obsolete component RemoteGCSFetcher from MTS orchestrator.

## [3.2.1] - 2023-12-01
**Rasa Pro Services 3.2.1 (2023-12-01)**

## [3.2.0] - 2023-11-22
**Rasa Pro Services 3.2.0 (2023-11-22)**

### Features
- Added new table `rasa_dialogue_stack_frame` to store active flow names and steps for each event sequence in the conversation.

## [3.1.1] - 2023-07-17
**Rasa Pro Services 3.1.1 (2023-07-17)**

### Miscellaneous internal changes
_Miscellaneous internal changes._

## [3.1.0] - 2023-07-03
**Rasa Pro Services 3.1.0 (2023-07-03)**

### Features
- Added Real Time Processing of Markers.

### Miscellaneous internal changes
_Miscellaneous internal changes._

## [3.0.2] - 2023-06-13
**Rasa Pro Services 3.0.2 (2023-06-13)**

### Improvements
- Adds an environment variable to control logging level of the application.

### Miscellaneous internal changes
_Miscellaneous internal changes._

## [3.0.1] - 2022-10-26
**Rasa Pro Services 3.0.1 (2023-10-26)**

### Miscellaneous internal changes
_Miscellaneous internal changes._

## [3.0.0] - 2022-10-24
**Rasa Pro Services 3.0.0 (2023-10-24)**

### Features
- Analytics Data Pipeline helps visualize and process Rasa assistant metrics in the tooling (BI tools, data warehouses) of your choice.
