feat: harden data access and simplify user management

This commit is contained in:
xuelong committed 2026-08-25 21:02:30 -07:00
1 parent 3dd5731751
commit adb780bc82
51 files changed
+3239 -2121

No files matched your search

+10
View File
@@ -0,0 +1,10 @@
#!/usr/bin/env bash
set -Eeuo pipefail
# MySQL only runs docker-entrypoint-initdb.d scripts for a new data volume.
# Run this once after upgrading an existing deployment so the dedicated
# account-provisioning user receives its narrowly scoped privileges.
docker compose exec -T mysql \
sh /docker-entrypoint-initdb.d/01-data-center-grants.sh
echo "DBeaver 管理接入的独立 MySQL 签发账号已配置。"