mosaic-compass: fork-specific changes for Porter deployment#4
Merged
Conversation
- Add Bearer-token auth middleware (COMPASS_API_KEY env var). All routes except /health require Authorization: Bearer <key>. Constant-time comparison to avoid timing leaks. When the env var is unset the server starts in unauthenticated dev mode with a loud warning. - Fix broken healthcheck on both Dockerfiles by installing curl in the runtime stage (docker-compose.yml healthcheck command relies on it). - Add scripts/download-models.sh: idempotent pre-deploy job that fetches BGE-small from HuggingFace into the persistent volume. Uses plain curl so no Python is needed at runtime. - Add porter.yaml: web service on port 4001, predeploy hook for model download, default env (DATA_DIR, telemetry off). - Add MOSAIC.md documenting the fork's divergence from upstream. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
EdgarBabajanyan
added a commit
that referenced
this pull request
May 20, 2026
Revert "Merge pull request #4 from runcaptain/mosaic-fork"
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Briefly describe the changes in this PR.
Related issue
Fixes #(issue number) or closes #(issue number)
Type of change
Testing
How have you tested these changes? Include steps to reproduce.
Checklist
cargo fmt --allis cleancargo clippy --workspace -- -D warningspassescargo test --workspacepasses[Unreleased]sectionBefore/after (if applicable)
Performance benchmarks, screenshots, or other evidence of the change: