Skip to content

Commit c91c814

Browse files
authored
Merge pull request #67 from rh-aiservices-bu/dev
chore: release v0.1.2 - fix critical migration issue
2 parents 696e6ad + 4d6be23 commit c91c814

File tree

5 files changed

+26
-4
lines changed

5 files changed

+26
-4
lines changed

CHANGELOG.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,26 @@ All notable changes to this project are documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [0.1.2] - 2025-10-17
9+
10+
This patch release fixes a critical database migration issue that could prevent successful deployments.
11+
12+
### Fixed
13+
14+
- **Database Migration Resilience**: Fixed `litellm_key_alias` backfill migration to skip inactive API keys
15+
- Migration now filters for `is_active = true` to avoid processing inactive/revoked keys
16+
- Prevents 404 errors from LiteLLM when trying to fetch details for deleted keys
17+
- Eliminates circuit breaker opening after 5 consecutive failures
18+
- Ensures active keys are successfully processed during backfill operations
19+
- Added explanatory comment about skipping inactive keys
20+
21+
### Contributors
22+
23+
- Guillaume Moutier
24+
- Co-authored-by: Claude (AI pair programming assistant)
25+
26+
---
27+
828
## [0.1.1] - 2025-10-17
929

1030
This patch release improves test reliability, server startup performance, and handles edge cases in database migrations.

backend/src/lib/database-migrations.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -637,14 +637,16 @@ COMMENT ON COLUMN subscriptions.status_changed_by IS 'Existing subscriptions mig
637637
export const backfillLiteLLMKeyAlias = async (dbUtils: DatabaseUtils, liteLLMService: any) => {
638638
try {
639639
// Find all API keys that don't have litellm_key_alias set
640+
// Only process active keys to avoid 404s from inactive/revoked keys
640641
const keysToBackfill = await dbUtils.queryMany<{
641642
id: string;
642643
lite_llm_key_value: string;
643644
}>(
644645
`SELECT id, lite_llm_key_value
645646
FROM api_keys
646647
WHERE litellm_key_alias IS NULL
647-
AND lite_llm_key_value IS NOT NULL`,
648+
AND lite_llm_key_value IS NOT NULL
649+
AND is_active = true`,
648650
[],
649651
);
650652

deployment/openshift/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ The deployment uses a **template-based configuration system**:
3232
```
3333

3434
2. **Edit `user-values.env`** and customize the following **required values**:
35-
- `LITEMAAS_VERSION` - LiteMaaS version to deploy (e.g., `0.1.0`)
35+
- `LITEMAAS_VERSION` - LiteMaaS version to deploy (e.g., `0.1.2`)
3636
- `CLUSTER_DOMAIN_NAME` - Your OpenShift cluster domain (e.g., `apps.cluster.example.com`)
3737
- `NAMESPACE` - Namespace/project name (e.g., `litemaas`)
3838
- `PG_ADMIN_PASSWORD` - Secure PostgreSQL password (generate with `openssl rand -base64 32`)

deployment/openshift/user-values.env.example

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
LITEMAAS_VERSION=0.1.0
1+
LITEMAAS_VERSION=0.1.2
22
CLUSTER_DOMAIN_NAME=your-cluster-domain
33
NAMESPACE=your-namespace
44
PG_ADMIN_PASSWORD=change-me-pg-password

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "litemaas",
3-
"version": "0.1.1",
3+
"version": "0.1.2",
44
"description": "LiteLLM User Application - Model subscription and management platform",
55
"private": true,
66
"workspaces": [

0 commit comments

Comments
 (0)