Skip to content

feat: implement Phase 2 Civitai Guard (v0.2)#5

Merged
MrBT-nano merged 5 commits into
mainfrom
feat/civitai-guard
May 9, 2026
Merged

feat: implement Phase 2 Civitai Guard (v0.2)#5
MrBT-nano merged 5 commits into
mainfrom
feat/civitai-guard

Conversation

@MrBT-nano
Copy link
Copy Markdown
Contributor

📝 Description

This PR implements Phase 2 (v0.2) of the project: Civitai Guard and Allowlist Enforcement.

Key changes:

  • Rust Allowlist Watcher: Implemented a thread-safe in-memory cache and file watcher to synchronize authorized models from vtuber-commons.
  • gRPC Enforcement: Updated the Generate method to verify persona/model configurations against the allowlist before processing.
  • Python Runtime Verification: Added SHA256 hash and NSFW status validation against the Civitai API in the worker.
  • Infrastructure: Added Kubernetes Deployment manifest with git-sync sidecar for config synchronization.

🛠️ Type of Change

  • 🚀 New feature

✅ Checklist

  • Rust build (cargo build) passes
  • Python unit tests pass (5/5 tests)
  • STRUCTURE.tree updated
  • K8s manifests provided

🏷️ Metadata

@MrBT-nano MrBT-nano added the enhancement New feature or request label May 8, 2026
@MrBT-nano MrBT-nano self-assigned this May 8, 2026
Comment thread src/guard/cache.rs Fixed
Comment thread src/guard/cache.rs Fixed
Comment thread src/main.rs Fixed
Comment thread src/main.rs Fixed
@MrBT-nano MrBT-nano merged commit 7701335 into main May 9, 2026
8 checks passed
@MrBT-nano MrBT-nano deleted the feat/civitai-guard branch May 9, 2026 11:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request python rust

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants