From a7535fe8eadd4467b817e1c8481ae350aead6681 Mon Sep 17 00:00:00 2001 From: Jeroen Schweitzer Date: Tue, 6 Jan 2026 23:36:24 +0100 Subject: [PATCH] fix: correct OIDC import path in tools controller MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The environment endpoint was importing from non-existent path `src.oidc.dependencies` instead of `src.auth.oidc`, causing authentication to fail and queries to go to wrong Qdrant collection. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- CHANGELOG.md | 8 ++++++++ pyproject.toml | 2 +- src/controllers/tools_controller.py | 2 +- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 400f5bb..03ba284 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,14 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [1.10.1] - 2026-01-06 + +### Fixed + +- Fix OIDC import path in tools controller (`src.oidc.dependencies` → `src.auth.oidc`) + - Environment endpoint was returning `user: "local"` instead of authenticated username + - Caused queries to wrong Qdrant collection (`volatile_local` vs `volatile_{username}`) + ## [1.10.0] - 2026-01-06 ### Added diff --git a/pyproject.toml b/pyproject.toml index 29d40f0..61181ba 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "core-api" -version = "1.10.0" +version = "1.10.1" description = "Core Code API - Infrastructure management and tools API" readme = "README.md" requires-python = ">=3.12" diff --git a/src/controllers/tools_controller.py b/src/controllers/tools_controller.py index 3b6acdb..01b4459 100644 --- a/src/controllers/tools_controller.py +++ b/src/controllers/tools_controller.py @@ -16,7 +16,7 @@ from src.dns.service import DNSService from src.dns.exceptions import DNSQueryError from src.domains.tools.environment.schemas import EnvironmentResponse from src.domains.tools.environment.service import get_environment_service -from src.oidc.dependencies import get_optional_user +from src.auth.oidc import get_optional_user logger = get_logger(__name__)