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
@@ -0,0 +1,12 @@
|
||||
# 演示镜像:在官方发布镜像上叠加首次启动播种逻辑与示例数据。
|
||||
# 中国大陆可改用 CNB 镜像源:FROM docker.cnb.cool/dbxio.com/dbx:latest
|
||||
FROM t8y2/dbx:latest
|
||||
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends curl \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
COPY seed/connections.json /seed/connections.json
|
||||
COPY seed/entrypoint.sh /seed/entrypoint.sh
|
||||
RUN chmod +x /seed/entrypoint.sh
|
||||
|
||||
ENTRYPOINT ["/seed/entrypoint.sh"]
|
||||
Reference in new issue
Block a user