dev2main (#1)

* add management database functionality for allowed and banned pubkeys

* add policy to reject events based on validation rules

* expose PostgreSQL port in Docker Compose for local access

* add event rejection policy for banned pubkeys based on management database

---------

Co-authored-by: highperfocused <highperfocused@pm.me>
This commit is contained in:
mroxso
2025-12-30 21:50:39 +01:00
committed by GitHub
parent 58ec0591f0
commit c93da36c4e
3 changed files with 134 additions and 4 deletions

4
go.mod
View File

@@ -5,6 +5,8 @@ go 1.24.4
require (
github.com/fiatjaf/eventstore v0.16.2
github.com/fiatjaf/khatru v0.19.1
github.com/lib/pq v1.10.9
github.com/nbd-wtf/go-nostr v0.52.3
)
require (
@@ -26,11 +28,9 @@ require (
github.com/json-iterator/go v1.1.12 // indirect
github.com/klauspost/compress v1.18.0 // indirect
github.com/klauspost/cpuid/v2 v2.2.10 // indirect
github.com/lib/pq v1.10.9 // indirect
github.com/mailru/easyjson v0.9.0 // indirect
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
github.com/modern-go/reflect2 v1.0.2 // indirect
github.com/nbd-wtf/go-nostr v0.52.3 // indirect
github.com/puzpuzpuz/xsync/v3 v3.5.1 // indirect
github.com/rs/cors v1.11.1 // indirect
github.com/savsgio/gotils v0.0.0-20240704082632-aef3928b8a38 // indirect