Skip to content

fix: Attach API key to remaining keyless Skaldleita call sites (#264)#266

Merged
deucebucket merged 1 commit into
developfrom
fix/issue-264-keyless-stragglers
Jul 14, 2026
Merged

fix: Attach API key to remaining keyless Skaldleita call sites (#264)#266
deucebucket merged 1 commit into
developfrom
fix/issue-264-keyless-stragglers

Conversation

@deucebucket

Copy link
Copy Markdown
Owner

Closes the remaining half of #264. The auto-inject work shipped in beta.152 covered the main request paths, but four call sites still sent keyless requests and got guaranteed 401s from Skaldleita's key-or-401 gate:

  • api_book_detailGET /book/{id}
  • api_author_detailGET /author/{id}
  • api_series_detailGET /series/{id}
  • identify_ebook_from_filenameGET /search

Each now resolves the API key exactly the way sibling code does (config.get('bookdb_api_key') / load_secrets() with BOOKDB_PUBLIC_KEY fallback) and sends get_signed_headers() + X-API-Key. No new patterns, no refactoring. APP_VERSION bumped to 0.9.0-beta.154 to match the CHANGELOG entry.

Verification

  • test-env/test-naming-issues.py: 290/290 pass (re-run independently after review)
  • test-env/test-precog.py: 10/10 pass
  • ruff --select=F821: clean (all referenced helpers resolve)
  • Diff reviewed line-by-line: additive header changes only; stale 'no API key required' docstring lines removed

Written by OpenCode in an isolated worktree; reviewed and independently verified before submission.

…eita call sites

api_book_detail, api_author_detail, api_series_detail, and
identify_ebook_from_filename still called the Skaldleita API with no
headers, guaranteeing 401s against the key-or-401 gate. Each now
resolves the API key the same way sibling code does (config /
load_secrets with BOOKDB_PUBLIC_KEY fallback) and sends
get_signed_headers() + X-API-Key. Version bumped to 0.9.0-beta.154.
@deucebucket
deucebucket merged commit a75856c into develop Jul 14, 2026
3 checks passed
@deucebucket
deucebucket deleted the fix/issue-264-keyless-stragglers branch July 14, 2026 10:24
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