Skip to content

fix(services): install nkeys for nats creds authentication - #69

Merged
TheMeinerLP merged 1 commit into
mainfrom
fix/services-nkeys
Oct 16, 2026
Merged

TheMeinerLP merged 1 commit into
mainfrom
fix/services-nkeys

Conversation

@TheMeinerLP

Copy link
Copy Markdown
Contributor

Problem

In release 0.1.0 corvus-ingest and corvus-score crash when connecting to NATS with a creds file: ModuleNotFoundError: No module named 'nkeys'. nats-py imports nkeys lazily and only ships it as the optional extra nats-py[nkeys].

Fix

Depend on nats-py[nkeys] in services/pyproject.toml and regenerate services/uv.lock (adds nkeys and pynacl). The Dockerfile uses uv sync --frozen, so the image picks it up. ml does not use NATS.

Test

test_nkeys_package_is_installed_for_creds_file_authentication asserts nkeys is importable. It fails without the extra and passes with it. ruff, ruff format and mypy are clean.

nats-py imports nkeys lazily when a creds file is used, so ingest and score
crashed on connect with ModuleNotFoundError. Depend on nats-py[nkeys].
@TheMeinerLP
TheMeinerLP merged commit 7977ce4 into main Oct 16, 2026
13 checks passed
@TheMeinerLP
TheMeinerLP deleted the fix/services-nkeys branch October 16, 2026 07:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant