Commit Graph

  • 726cf6ca68 chore: update golangci config to v2 schema Kharec 2025-12-27 08:37:08 +01:00
  • de1e3f2190 fix: reject 5xx errors in TestQueryParameters to catch regressions Kharec 2025-12-26 18:49:32 +01:00
  • 310875368d fix: make TestStaticFileRoute validate static handler correctly Kharec 2025-12-26 18:48:44 +01:00
  • ffba8f6257 clean: remove duplicate Kharec 2025-12-26 17:54:04 +01:00
  • 24bed6fc6c docs: update readme Kharec 2025-12-26 17:53:21 +01:00
  • 20f14d0863 refactor: use middleware.IsHTTPS instead of local function Kharec 2025-12-26 17:41:16 +01:00
  • d0914eb5dc test: update IsHTTPS test to use middleware.IsHTTPS Kharec 2025-12-26 17:41:04 +01:00
  • ab3efc99a8 refactor: remove duplicate IsHTTPS, use middleware.IsHTTPS Kharec 2025-12-26 17:40:47 +01:00
  • 9017816812 refactor: export IsHTTPS function for shared use Kharec 2025-12-26 17:40:31 +01:00
  • 7b9250802e test: verify login works with legacy passwords Kharec 2025-12-26 17:36:13 +01:00
  • 3f4cad5488 fix: remove password complexity validation from login Kharec 2025-12-26 17:35:59 +01:00
  • 027df4f60c test: add security header preservation tests for cache Kharec 2025-12-26 17:33:25 +01:00
  • 77886ddef5 fix: preserve security headers on cache hits Kharec 2025-12-26 17:33:12 +01:00
  • 5477bbf0a7 test: add integration test for CSRF cookie-only bypass Kharec 2025-12-26 17:29:51 +01:00
  • fc23cbd6fd test: verify CSRF rejects requests with only cookie token Kharec 2025-12-26 17:28:58 +01:00
  • 0802b9dd9d fix: GetCSRFToken() shouldn't fall back to the cookie Kharec 2025-12-26 17:28:10 +01:00
  • 566890f48f fix: suitable LOG and PID dir for docker env Kharec 2025-12-25 18:52:34 +01:00
  • f4bfb829e6 fix: add missing parameter Kharec 2025-12-25 18:49:51 +01:00
  • 02fd3c0aea fix: make it env agnostic (--env-file should be used) Kharec 2025-12-25 18:40:51 +01:00
  • 08856f9a8d feat: install curl in docker to perform health check Kharec 2025-12-25 18:34:57 +01:00
  • 2522f3536d feat: create health check Kharec 2025-12-25 18:34:39 +01:00
  • 07c6b89525 docs: remove project structure, boring and hard to maintain Kharec 2025-12-20 17:35:16 +01:00
  • 817205d42f refactor: modernize using min() Kharec 2025-12-16 15:45:51 +01:00
  • 199ac143a4 refactor: replace interface{} by any Kharec 2025-12-16 15:05:23 +01:00
  • aa7e259ed0 format: shfmt Kharec 2025-12-16 15:02:42 +01:00
  • 4587609e17 refactor: create createTestRouter and test edge cases Kharec 2025-12-14 21:14:42 +01:00
  • 33da6503e3 test: also test put/delete routes Kharec 2025-12-14 21:06:15 +01:00
  • cafc44ed77 test: add a test for route parameters Kharec 2025-12-14 21:04:36 +01:00
  • 1480135e75 test: verified all routes to exist Kharec 2025-12-14 21:02:25 +01:00
  • 02a764c736 clean: remove merged files Kharec 2025-12-14 20:52:14 +01:00
  • 6834ad7764 refactor: merge facade, types and utils into one auth_service.go Kharec 2025-12-14 20:52:03 +01:00
  • dcf054046f test: fix parallel processor test expectations and setup Kharec 2025-12-10 07:30:27 +01:00
  • d2a788933d fix: track completed items in the main loop instead of using the index Kharec 2025-12-10 07:29:55 +01:00
  • 18be3950dc clean: obsolete function Kharec 2025-12-09 22:07:30 +01:00
  • f9cb140e95 clean: removed the obsolete functions outputMessage and outputError Kharec 2025-12-09 22:06:12 +01:00
  • 86d4835ccf feat: seed user is now uniq Kharec 2025-12-09 22:03:26 +01:00
  • feddb2ed43 test: new unit test for EnsureSeedUser Kharec 2025-12-09 22:03:16 +01:00
  • 457b5c88e2 refactor: improve seed consistency validation Kharec 2025-12-09 21:53:03 +01:00
  • a8d363b2bf fix: templates now parse with the same func map as the page handler Kharec 2025-12-09 21:37:21 +01:00
  • 0cd68e847c refactor: add a helper to centralize CSRF token retrieval Kharec 2025-12-09 15:58:28 +01:00
  • df6aeed713 docs: unocss it is Kharec 2025-12-04 20:43:30 +01:00
  • 785faeb60c feat: update alpine to 3.23 Kharec 2025-12-04 10:01:19 +01:00
  • 0623c027ba docs: prepare CONTRIBUTING.md Kharec 2025-12-03 20:57:32 +01:00
  • d4e91b6034 refactor: complete refactor and better helpers use Kharec 2025-11-29 15:19:41 +01:00
  • 7d46d3e81b clean: remove the unused expectedValue in assertHeader (always set to "") Kharec 2025-11-29 15:19:28 +01:00
  • 216aaf3117 refactor: clean code and use new request helpers Kharec 2025-11-29 14:58:52 +01:00
  • 435047ad0c refactor: clean code Kharec 2025-11-29 14:58:37 +01:00
  • b7ee8bd11d refactor: clean variable names and use new request helpers Kharec 2025-11-29 14:58:20 +01:00
  • 040cd48be8 refactor: clean variables Kharec 2025-11-29 14:58:07 +01:00
  • 2dd16e0e00 refactor: complete Kharec 2025-11-29 14:56:18 +01:00
  • d6db70cc79 refactor: clean code and variables, use new request helpers Kharec 2025-11-29 14:55:47 +01:00
  • 58e10ade7d refactor: clean variable names and modernize code Kharec 2025-11-29 14:50:35 +01:00
  • 7403a75d8e refactor: clean variable naming Kharec 2025-11-29 14:46:26 +01:00
  • b429bc11af refactor: clean code and use new request helpers Kharec 2025-11-29 14:41:38 +01:00
  • 2ec5c28fb5 refactor: rename variables and clean code Kharec 2025-11-29 14:37:18 +01:00
  • 3743a99e40 refactor: req -> request, rec -> recorder, reqBody -> requestBody... Kharec 2025-11-29 14:21:07 +01:00
  • 5710921b87 refactor: use new request helpers Kharec 2025-11-29 14:17:25 +01:00
  • 84d9c81484 refactor: rec -> recorder, req -> request and modernize loop Kharec 2025-11-29 14:15:07 +01:00
  • b0c2038927 feat: add new helpers to make requests properly in integration tests Kharec 2025-11-29 14:11:32 +01:00
  • fd88931146 refactor: variable names and modernize loop Kharec 2025-11-25 14:37:59 +01:00
  • 6ce0f4dfad refactor: name variables Kharec 2025-11-25 10:13:10 +01:00
  • 68e3dceefc refactor: name variables Kharec 2025-11-25 10:08:48 +01:00
  • cded14c526 fix: force correct mime types for static files after modifying compression middleware's buffering Kharec 2025-11-24 07:53:08 +01:00
  • cfca668ca6 docs: clean readme Kharec 2025-11-23 21:56:53 +01:00
  • 279255b587 fix: don't let rate limiting fails the test Kharec 2025-11-23 21:48:11 +01:00
  • b83f8c2228 fix: update ValidationMiddleware to return a JSON error response when JSON decoding fails Kharec 2025-11-23 21:42:27 +01:00
  • aabc48128c fix: use router in handlers integration tests (for dto validation) Kharec 2025-11-23 15:10:55 +01:00
  • 68716b977b fix: verify XSS sanitization in handler response instead of repository stub Kharec 2025-11-23 15:01:54 +01:00
  • dbe1600632 fix: indentation Kharec 2025-11-23 14:49:31 +01:00
  • 458e25cf79 fix: modify compression middleware to pass through redirects immediately without buffering Kharec 2025-11-23 14:48:59 +01:00
  • d4595d8dbf fix: properly encoding the flash message in the redirect URL Kharec 2025-11-23 14:48:39 +01:00
  • c5418f4e4c docs: update swagger Kharec 2025-11-23 14:26:52 +01:00
  • db0369225e refactor: update references to VoteRequest Kharec 2025-11-23 14:26:45 +01:00
  • 07ac965b3d refactor: use consistent naming (VoteRequest -> CastVoteRequest) Kharec 2025-11-23 14:26:19 +01:00
  • e2e5d42035 feat: add SetValidatedDTOInContext to support test helper functions Kharec 2025-11-23 14:22:59 +01:00
  • 6e4b41894f fix: update test cases to use createCreatePostRequests Kharec 2025-11-23 14:22:35 +01:00
  • 0a8ed2e27c fix: add explicite validation check for empty url, title and content length Kharec 2025-11-23 14:21:30 +01:00
  • 216e8657f6 feat: add generic createRequestWithDTO along with helpers functions Kharec 2025-11-23 14:20:59 +01:00
  • fb7206c0a2 fix: test context handling Kharec 2025-11-23 14:20:09 +01:00
  • c25926514b fix: add explicit empty-field validation check in handlers Kharec 2025-11-23 14:19:54 +01:00
  • 964785e494 docs: update swagger Kharec 2025-11-23 13:47:38 +01:00
  • 9c67cd2a47 feat: update vote handler to use dto VoteRequest and update MountRoutes Kharec 2025-11-23 13:47:31 +01:00
  • 8b5cc8e939 feat: add VoteRequest with its validation types Kharec 2025-11-23 13:46:51 +01:00
  • 0e71b28615 feat: update CreateUser to use dto.RegisterRequest and update MountRoutes to apply validation middleware Kharec 2025-11-23 13:43:47 +01:00
  • cd740da57a feat: update methods to use validated DTOs and update MountRoutes Kharec 2025-11-23 13:43:14 +01:00
  • abe4a3dc88 feat: update handlers to use GetValidatedDTO instead of manual decoding and update MountRoutes to wrap handlers with WithValidation for all DTO-based routes Kharec 2025-11-23 13:42:52 +01:00
  • 738243d945 feat: add ValidationMiddleware to RouteModuleConfig Kharec 2025-11-23 13:41:55 +01:00
  • 4fbdfb6e4a feat: add two helpers function to retrieve validated DTOs from request context and to apply validation middleware Kharec 2025-11-23 13:41:07 +01:00
  • 6bb3a78b88 feat: Add ValidationMiddleware to router configuration Kharec 2025-11-23 13:40:31 +01:00
  • 54e37e59fc docs: update swagger Kharec 2025-11-23 13:35:00 +01:00
  • 5d4b38ddc4 feat: add validation tags to request DTOs Kharec 2025-11-23 13:34:53 +01:00
  • 7dc119ecde docs: update swagger Kharec 2025-11-23 13:17:14 +01:00
  • 52c9f4a02b feat: add internal/dto to swagger directories Kharec 2025-11-23 13:16:44 +01:00
  • be91a135bc clean: empty line Kharec 2025-11-23 13:14:41 +01:00
  • 2d7ff9778b feat: update swagger comments following dtos relocation Kharec 2025-11-23 13:14:07 +01:00
  • 4ff3fd3583 refactor: remove UpdatePostRequest definition and update swagger comments Kharec 2025-11-23 13:13:53 +01:00
  • 73121cad15 refactor: remove all request DTO, update swagger comments and update token related methods to use dto ones Kharec 2025-11-23 13:13:23 +01:00
  • c5bf1b2fd8 feat: locate post-related request DTOs Kharec 2025-11-23 13:12:36 +01:00
  • eedebe60d1 feat: locate auth-related request DTOs Kharec 2025-11-23 13:12:10 +01:00
  • 80fb37371f update: fix go version and update alpine to 3.22 Kharec 2025-11-23 10:44:28 +01:00