Skip to main content

Crate mockforge_registry_core

Crate mockforge_registry_core 

Source
Expand description

Shared core for MockForge registry backends.

This crate houses the domain models, storage trait, error types, authentication middleware, and OSS-safe HTTP handlers that power both:

  • mockforge-registry-server — the multi-tenant SaaS binary (Postgres backend plus SaaS-only integrations like Stripe, SSO/SAML, S3, Redis).
  • mockforge-ui’s embedded OSS admin server (SQLite backend only).

The cloud-core extraction is being landed incrementally. Modules move over in small reviewable commits; this file tracks what’s here so far.

Re-exports§

pub use error::ApiError;
pub use error::ApiResult;
pub use error::StoreError;
pub use error::StoreResult;

Modules§

auth
Authentication and JWT handling
error
Error types for the registry core.
models
Database models
permissions
Permission enum with 28 granular permissions
scope_check
Scope checking utilities for API tokens
store
Unified storage layer for the registry domain.
two_factor
Two-Factor Authentication (2FA) utilities
validation
Marketplace upload validation