Commit Graph

68 Commits

Author SHA1 Message Date
db123-test
e326c4270c fix(ci-cd): use secrets for G_CLONE_URL instead of env variable
Replace hardcoded G_CLONE_URL references with GitHub secrets to
prevent exposing the repository URL in workflow logs and environment.
2026-05-04 09:25:46 +03:30
db123-test
e29fd6d420 refactor: rename GITEA secrets and variables to G_ prefix
Rename GITEA_CLONE_URL to G_CLONE_URL in all checkout steps
and update GITEA_TOKEN and GITEA_USERNAME to G_TOKEN and
G_USERNAME for Docker registry authentication. This standardizes
secret naming across the CI/CD pipeline.
2026-05-04 09:24:53 +03:30
db123-test
b22db09c2f feat: add CI/CD workflow with linting, building, and docker
Add GitHub Actions workflow that performs linting with golangci-lint,
formats check, cross-compilation for linux/amd64, linux/arm64, and
windows/amd64, and multi-platform docker image publishing to Gitea
registry on pushes to main/master branches.
2026-05-04 09:20:56 +03:30
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