Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

chore: remove development audit flag (#13124)

p0ny2f4d86b636fb
diff --git a/backend/bin/server/cmd/profile.go b/backend/bin/server/cmd/profile.go
index 3089412e97..bc6aacb558 100644
--- a/backend/bin/server/cmd/profile.go
+++ b/backend/bin/server/cmd/profile.go
@@ -34,6 +34,5 @@ func getBaseProfile(dataDir string) *config.Profile {
LastActiveTs: time.Now().Unix(),
Lsp: flags.lsp,
PreUpdateBackup: flags.preUpdateBackup,
- DevelopmentAudit: flags.developmentAudit,
}
}
diff --git a/backend/bin/server/cmd/root.go b/backend/bin/server/cmd/root.go
index b2ec31c9ca..98a3fb9808 100644
--- a/backend/bin/server/cmd/root.go
+++ b/backend/bin/server/cmd/root.go
@@ -81,8 +81,6 @@ var (
disableSample bool
lsp bool
preUpdateBackup bool
-
- developmentAudit bool
}
rootCmd = &cobra.Command{
@@ -128,8 +126,6 @@ func init() {
rootCmd.PersistentFlags().BoolVar(&flags.preUpdateBackup, "pre-update-backup", true, "whether to enable feature of data backup prior to data update")
rootCmd.PersistentFlags().BoolVar(&flags.disableMetric, "disable-metric", false, "disable the metric collector")
rootCmd.PersistentFlags().BoolVar(&flags.disableSample, "disable-sample", false, "disable the sample instance")
-
- rootCmd.PersistentFlags().BoolVar(&flags.developmentAudit, "development-audit", true, "enable audit logs")
}
// -----------------------------------Command Line Config END--------------------------------------
diff --git a/backend/component/config/profile.go b/backend/component/config/profile.go
index 028b0ecefe..20e4b0d23f 100644
--- a/backend/component/config/profile.go
+++ b/backend/component/config/profile.go
@@ -69,8 +69,6 @@ type Profile struct {
Lsp bool
PreUpdateBackup bool
- DevelopmentAudit bool
-
// can be set in runtime
RuntimeDebug atomic.Bool
}
diff --git a/backend/store/audit_log.go b/backend/store/audit_log.go
index 9a676a7664..ab82f6a88c 100644
--- a/backend/store/audit_log.go
+++ b/backend/store/audit_log.go
@@ -42,9 +42,6 @@ type AuditLogFilter struct {
}
func (s *Store) CreateAuditLog(ctx context.Context, payload *storepb.AuditLog) error {
- if !s.profile.DevelopmentAudit {
- return nil
- }
query := `
INSERT INTO audit_log (payload) VALUES ($1)
`