Self-contained HTTP/HTTPS/TCP/UDP reverse proxy manager written in Go, with SQLite storage, a Bootstrap 5 admin UI (Go templates, no JS framework), and a REST API under /api/v1. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QTXFrNP1imCW7jtfL5SZrw
14 lines
357 B
Go
14 lines
357 B
Go
package logging
|
|
|
|
import (
|
|
"database/sql"
|
|
|
|
"github.com/owen/vibeproxy/internal/database"
|
|
)
|
|
|
|
// Audit records a configuration-change event. Callers must never pass
|
|
// passwords, API tokens, or private key material in details.
|
|
func Audit(db *sql.DB, actor, action, target, details string) {
|
|
_ = database.InsertAuditLog(db, actor, action, target, details)
|
|
}
|