Skip to content

feat: support fetching images in private books - #111

Merged
jakeaturner merged 1 commit into
stagingfrom
feat/private-images
Oct 5, 2026
Merged

jakeaturner merged 1 commit into
stagingfrom
feat/private-images

Conversation

@jakeaturner

Copy link
Copy Markdown
Contributor

No description provided.

@jakeaturner
jakeaturner requested review from ethanaturner and a balanced review from Copilot October 5, 2026 19:41

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟡 Changes recommended

LocalStack provisioning uses undocumented and unvalidated Engineering credentials, causing misleading failures with the documented configuration.

Review effort: Balanced
Findings: 1 Medium severity

Open (1)
What changed in this PR

Adds authenticated CXOne asset fetching so private-book images work in PDF and EPUB exports.

Changes:

  • Adds anonymous-first fetching with authenticated retry.
  • Integrates fetching into PDF and EPUB image processing.
  • Adds Engineering library credentials to LocalStack provisioning.
File Description
src/​lib/​cxOneAssetFetcher.ts Implements secure asset fetching and redirects.
src/​services/​library.ts Exposes fresh CXOne authentication headers.
src/​services/​imageProcessor.ts Localizes restricted PDF images.
src/​services/​epub.ts Uses authenticated fetching for EPUB images.
create-localstack-resources.sh Provisions Engineering credentials.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread create-localstack-resources.sh
@jakeaturner
jakeaturner merged commit 705d600 into staging Oct 5, 2026
2 of 3 checks passed
@jakeaturner
jakeaturner deleted the feat/private-images branch October 5, 2026 19:57
@libretexts-bot

Copy link
Copy Markdown
Collaborator

🎉 This PR is included in version 1.21.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants