Commit Graph

72 Commits

Author SHA1 Message Date
db123-test
e7d7c71572 ci: use latest golangci-lint version in CI workflow
Replace pinned golangci-lint 1.64.8 version with latest to automatically
receive updates and improvements.
2026-05-04 09:38:37 +03:30
db123-test
72be744484 fix(ci-cd): remove 'v' prefix from golangci-lint version
The install.sh script expects plain version numbers without the 'v' prefix, so using 'v1.64.8' causes the version string to be interpreted incorrectly. Updated the version format to match the expected format '1.64.8'.
2026-05-04 09:38:05 +03:30
db123-test
b4797afd39 ci: update Go proxy mirror and disable GOSUMDB in CI
Update GOPROXY to use go.iranserver.com instead of go.devneeds.ir for dependency downloads.
Disable GOSUMDB validation to speed up the build process and avoid potential checksum mismatches.
2026-05-04 09:36:06 +03:30
db123-test
cd843ed877 fix(ci-cd): add domestic go proxy mirror for faster dep downloads
Configure GOPROXY and GOSUMDB to use Iranian proxy servers
(go.devneeds.ir) before downloading dependencies in CI pipeline.
2026-05-04 09:34:49 +03:30
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