Commit Graph

15 Commits

Author SHA1 Message Date
db123-test
515de33837 feat: add SQLite persistence and REST API for temporary whitelisting
- Migrate IP-based temporary whitelisting from file to SQLite storage
- Add REST API endpoints for managing temporary and permanent whitelists
- Create `.env.example` with required environment variables
- Document API endpoints in README.md and docs/api.md
- Add new dependency `modernc.org/sqlite` for SQLite support
- Update deployment and security documentation
2026-05-04 09:08:11 +03:30
a5c9c42533 refactor: wire everything up 2026-05-04 08:47:20 +03:30
2ef8d8a48a refactor: cleanup now uses db 2026-05-04 08:46:50 +03:30
ea42406c5a refactor: simplified and used db.go for operations on whitelists 2026-05-04 08:46:20 +03:30
1e439f4ce3 refactor: simplified and used db.go for operations 2026-05-04 08:42:37 +03:30
d82ab73336 refactor: added ton of sqlite helpers and used sqlite for all the whitelists 2026-05-04 08:29:36 +03:30
536d701641 refactor: simplified and used sqlite for all the whitelists 2026-05-04 08:24:59 +03:30
16dc738c1f fix: removed unnecessary api user 2026-05-04 08:16:49 +03:30
f0e6c09bce feat: made it standard openapi and removed comments 2026-05-04 08:15:46 +03:30
145980ba0f feat: removed comments and uses the passed whitelists 2026-05-04 08:13:25 +03:30
820cb88447 feat: removed comments and now uses the passed tempWhitelist 2026-05-04 08:12:26 +03:30
4e949912d6 feat: added the sqlite logging main logic
added sqlite logic which is being used across the files to log whitelist requests
2026-05-04 08:11:16 +03:30
8af9958743 feat: removed basic auth and added sqlite logging 2026-05-04 08:08:45 +03:30
c05dcbee04 Feat: removed comments and added sqlite db to config 2026-05-04 08:02:07 +03:30
db123-test
b02b720dc6 init: added the base files by ai and debugged by hand
it's great but currently it has a basic error which is go nil pointer dereference

WIP
2026-05-03 16:17:04 +03:30