fix: 过滤入口拒绝日志并强化鉴权边界

This commit is contained in:
benjamin committed 2026-07-18 00:11:18 +08:00
1 parent 57914967cb
commit b92bbf0299
101 files changed
+5872 -828

No files matched your search

@@ -275,6 +275,9 @@ func TestApplyMigrationsFS_TransactionalMigration(t *testing.T) {
db, mock, err := sqlmock.New()
require.NoError(t, err)
defer func() { _ = db.Close() }()
// The advisory lock and all migration work must share one session. This also
// proves startup cannot self-deadlock when deployments cap the pool at one.
db.SetMaxOpenConns(1)
prepareMigrationsBootstrapExpectations(mock)
mock.ExpectQuery("SELECT checksum FROM schema_migrations WHERE filename = \\$1").