63 Commits

Author SHA1 Message Date
a3cd39f61a Add TODOs for custom error pages and database backup during migrations 2025-06-04 02:41:02 -05:00
fa5be206cb Added migration mgmt with goose. 2025-06-04 02:36:09 -05:00
9e59d05efe Remove excess comments. 2025-06-03 20:27:03 -05:00
f557d6141f Add retry logic for database operations and enhance DBConfig with retry parameters 2025-06-03 20:20:17 -05:00
6ac0d5e256 Refactor database initialization to use a configuration struct for improved connection management 2025-06-03 19:32:26 -05:00
a7d3822f94 Implement database integration with SQLite and refactor user handling for OIDC authentication 2025-06-02 19:35:11 -05:00
77b2e6c24e Refactor SQL queries and schema to use OIDC subject instead of Keycloak ID for user identification 2025-06-01 18:10:17 -05:00
d2162067ab Add SQL queries and schema for users, sites, and payments 2025-05-31 23:40:33 -05:00
227cadef99 Fix date format in DATE_TAG 2025-05-19 00:10:40 -05:00
2d061ea0d0 Refactor navbar structure for better responsiveness and clarity 2025-05-19 00:06:38 -05:00
53940f0764 Fix date format in DATE_TAG for a bit more granularity 2025-05-18 21:19:12 -05:00
c54a1f8d9a Rename hostname to base-url for accuracy 2025-05-18 18:32:26 -05:00
b1621501a2 Add Makefile for building and pushing multi-arch Docker images 2025-05-18 18:07:03 -05:00
ed00e1150f Refactor OIDC configuration keys for consistency and clarity 2025-05-18 17:48:51 -05:00
e51c71da67 Add comment explaining where to set defaults and why. 2025-05-18 17:36:11 -05:00
d53f26b59b Enhance configuration loading by validating direct values and file paths for secrets 2025-05-18 17:16:01 -05:00
1fa4473244 Set up first container image build process with instructions. 2025-05-17 11:06:07 -05:00
1dc68374e3 Show only things that work. 2025-05-17 08:56:30 -05:00
0c6b1cd6b5 Dynamic user data for dashboard and a link to manage their IDP account! 2025-05-16 02:00:02 -05:00
e304712923 Decompression notes. 2025-05-15 15:16:51 -05:00
adf3db4d72 Add low-fidelity wireframe. 2025-05-14 01:28:06 -05:00
c0bc02fed5 Use embedded filesystems properly. 2025-05-13 22:49:36 -05:00
27eb2e5f12 Server serves default content using go embed. Also add favicons/ 2025-05-13 00:52:52 -05:00
058504a38f Improve config file handling by updating name and adding error checks 2025-05-11 05:06:28 -05:00
e5e9efd9b3 Refactor start.go to move server logic to internal server.go 2025-05-11 04:32:54 -05:00
4d29a58f94 Set the stage for using embeds for files served by the mc-server. 2025-05-09 03:14:40 -05:00
64d40bd108 Serve templates and static files from designated directories 2025-05-07 21:48:51 -05:00
b98ec87d8d Initialize project structure by creating necessary directories, default config file, and removing obsolete HTML components 2025-05-07 01:36:24 -05:00
0c446e244b Enhance security headers by adding Content-Security-Policy with environment-based upgrade-insecure-requests directive 2025-05-04 22:14:13 -05:00
4698361d2f Refactor README to streamline development notes and enhance clarity on session management and security practices 2025-05-01 02:39:27 -05:00
206b07c35a Update go.mod and go.sum to remove indirect dependencies and add new ones 2025-05-01 01:38:12 -05:00
300f41630f Add decompression middleware and tests for gzip handling 2025-05-01 01:34:25 -05:00
59bd796233 Set more generous timeouts. Why not? I am feeling generous. 2025-05-01 00:50:26 -05:00
1362c2755d Add response compression middleware to enhance performance 2025-04-29 10:33:13 -05:00
83b38498c8 Refactor CSRF secret handling to validate key length and improve error messaging 2025-04-29 03:34:01 -05:00
1581fbca4b Refactor CORS and CSRF middleware to use options directly and remove default config functions 2025-04-29 03:19:47 -05:00
7dbde25bcf Remove unnecessary comments 2025-04-29 02:45:56 -05:00
b2ead348e5 Implement CSRF protection middleware with configurable secret and cookie options 2025-04-29 01:42:54 -05:00
8cf7841f20 Add CSRF middleware implementation and update go.mod/go.sum for dependencies 2025-04-28 20:26:17 -05:00
b0a8ec88b3 Add CORS middleware using rs/cors package for improved handling 2025-04-28 20:16:04 -05:00
6abd03ea96 rearrange middleware 2025-04-28 02:47:26 -05:00
c2265330dd CORS middleware. And fix middleware types for logging and securityheaders. 2025-04-28 02:47:22 -05:00
e8f22496e1 Make logging first middleware. 2025-04-28 01:51:39 -05:00
5a2692fcb5 Update go.mod and go.sum to remove deprecated dependencies and add gofuzz 2025-04-28 01:16:37 -05:00
c83b0c50a0 Refactor security headers in SecureHeaders middleware for improved caching and CSP 2025-04-27 23:44:34 -05:00
78caaa1053 Rename timeout middleware 2025-04-27 22:27:24 -05:00
2e4b2aba45 Implement structured logging and enhance middleware with context-aware logging 2025-04-27 03:03:57 -05:00
bfdf7bf7d2 Add a timeout middleware to the server 2025-04-22 01:45:21 -05:00
d53afa4903 Add RequestID middleware for tracing and enhance logging with request IDs 2025-04-21 00:03:00 -05:00
9fd027fcda Add recovery middleware to handle panics and log errors 2025-04-20 23:45:44 -05:00