- Added audit logging middleware to track admin actions and save logs to SurrealDB. - Introduced rate limiting middleware for public endpoints and authentication endpoints. - Enhanced security headers middleware with nonce generation for CSP in development. - Created utility functions for extracting real client IP addresses from headers. - Updated Cargo.toml and Cargo.lock to include new dependencies. - Added new schemas for audit logs and rate limiting in the entities module. - Refactored permissions middleware to support new permission checks.
30 lines
691 B
TOML
30 lines
691 B
TOML
[package]
|
|
name = "imphnen-middleware"
|
|
version = "0.1.0"
|
|
edition = "2024"
|
|
|
|
[dependencies]
|
|
imphnen-libs.workspace = true
|
|
imphnen-utils.workspace = true
|
|
imphnen-entities.workspace = true
|
|
axum.workspace = true
|
|
axum-extra.workspace = true
|
|
serde.workspace = true
|
|
serde_json.workspace = true
|
|
utoipa.workspace = true
|
|
lazy_static.workspace = true
|
|
regex.workspace = true
|
|
validator.workspace = true
|
|
axum-test.workspace = true
|
|
surrealdb.workspace = true
|
|
rand.workspace = true
|
|
base64.workspace = true
|
|
tokio.workspace = true
|
|
chrono.workspace = true
|
|
log.workspace = true
|
|
anyhow.workspace = true
|
|
tower-http.workspace = true
|
|
futures.workspace = true
|
|
tower.workspace = true
|
|
utoipa-swagger-ui.workspace = true
|