feat(security): add demo mode lockdown for public deployments
DBX_DEMO_MODE=1 returns 403 for plugin/JDBC/agent installs, connection probes and edits, AI provider config, cloud sync and credential endpoints; /connection/connect only accepts pre-seeded connections with matching endpoint identity. Ships a deploy/demo compose recipe with seeded databases and scheduled reset.
This commit is contained in:
14 files changed
+793
-3
No files matched your search
@@ -26,6 +26,10 @@ impl AppError {
|
||||
Self::with_status(msg.into(), StatusCode::BAD_REQUEST)
|
||||
}
|
||||
|
||||
pub fn forbidden(msg: impl Into<String>) -> Self {
|
||||
Self::with_status(msg.into(), StatusCode::FORBIDDEN)
|
||||
}
|
||||
|
||||
pub fn not_found(msg: impl Into<String>) -> Self {
|
||||
Self::with_status(msg.into(), StatusCode::NOT_FOUND)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user