summaryrefslogtreecommitdiff
path: root/PLAN.md
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-04-30 16:55:02 +0300
committerPaul Buetow <paul@buetow.org>2026-04-30 16:55:02 +0300
commit6be4194f1f39354355cce29a2f8b8f9af7286fbd (patch)
tree1a9c01796a7ab97ec6087de0295dec55cec6075a /PLAN.md
parentfea0840ea65afb2b29abb378bd3c96697e0bbf4b (diff)
task oa: Add SECURE_COOKIES config to control session cookie Secure flag
- Add SecureCookies bool to internal.Config (default true) - Update LoadConfig in internal/config.go to parse SECURE_COOKIES env var - Update setSessionCookie and clearSessionCookie in internal/api/handlers.go to read cfg.SecureCookies - Add tests verifying Secure=true/false and logout clears cookie accordingly - Update AGENTS.md and PLAN.md with new option documentation
Diffstat (limited to 'PLAN.md')
-rw-r--r--PLAN.md1
1 files changed, 1 insertions, 0 deletions
diff --git a/PLAN.md b/PLAN.md
index 7e9481b..86f89c9 100644
--- a/PLAN.md
+++ b/PLAN.md
@@ -403,6 +403,7 @@ CREATE INDEX idx_shares_expires ON shares(expires_at);
| `GC_INTERVAL_MINUTES` | `30` | Garbage collector tick |
| `SHARE_DEFAULT_EXPIRY_DAYS` | `7` | Default share link lifetime |
| `LOG_LEVEL` | `info` | Log verbosity |
+| `SECURE_COOKIES` | `true` | Set `Secure` flag on session cookies; disable for plain-HTTP local deployments |
---