10 Commits
Author SHA1 Message Date
cgalo5758 0b28a9dc29 Remediate security audit findings
- Replace gorilla/csrf with net/http CrossOriginProtection
- Require valkey-password and add TLS options for session store
- End session at /logout and revoke refresh tokens
- Re-derive identity and roles from provider every five minutes
- Process each Stripe webhook event in its own Temporal workflow
- Give each outbox entry its own workflow with Temporal retries
- Guard against stale Stripe events with provider timestamps
- Derive transport security from base-url scheme
2026-09-09 13:25:43 -05:00
cgalo5758 88db730fcc Add dual licensing and SPDX headers
Introduce a commercial license option alongside AGPL-3.0-only, require a
CLA for contributors, and document the terms in COMMERCIAL.md and
NOTICE. Add a script to stamp SPDX headers on Go files and apply it
across the tree.
2026-09-06 02:29:42 -05:00
cgalo5758 7bff4ac603 Validate startup config and retry Temporal
Fail fast with aggregated config errors after resolving secret files,
before services initialize. Add Valkey session config, remove the unused
session-secret, and fix the production CSP env key.

Retry initial Temporal dials with bounded backoff and gate the test
Temporal service on healthy DB and Keycloak dependencies.
2026-07-01 19:04:26 -05:00
cgalo5758 0c446e244b Enhance security headers by adding Content-Security-Policy with environment-based upgrade-insecure-requests directive 2025-05-04 22:14:13 -05:00
cgalo5758 8cf7841f20 Add CSRF middleware implementation and update go.mod/go.sum for dependencies 2025-04-28 20:26:17 -05:00
cgalo5758 c2265330dd CORS middleware. And fix middleware types for logging and securityheaders. 2025-04-28 02:47:22 -05:00
cgalo5758 c83b0c50a0 Refactor security headers in SecureHeaders middleware for improved caching and CSP 2025-04-27 23:44:34 -05:00
cgalo5758 bd455f1782 Add MaxBodySize middleware and update .gitignore for config files 2025-04-20 01:29:13 -05:00
cgalo5758 0ba5eee981 Refactor authentication middleware and enhance security headers 2025-02-25 13:39:24 -06:00
cgalo5758 d587e97dbe redirect-url not same for login and logout 2025-02-24 03:14:36 -06:00