2b01b57495
feat: replace gorilla/sessions with alexedwards/scs/v2
...
Browser sessions are now server-side, stored in the SQLite database via
scs/sqlite3store (new `sessions` table, DB migration to version 12) instead
of gorilla/sessions client-side cookie storage. Only an opaque random token
is kept in the cookie; session data lives server-side and survives restarts.
Session middleware is wired as a hybrid to avoid buffering large responses:
scs.LoadAndSave on the login/logout write paths, and a non-buffering
read-only LoadSession middleware on the secured/config/frontend read paths
so the large GraphQL /query responses stream unbuffered. JWT-only APIs
(/api, /userapi, /api/metricstore) and static files are left unwrapped.
The session cookie Secure flag is now derived from the server config (set
when cc-backend terminates TLS itself); previously it was effectively never
set. The SESSION_KEY env var is removed as server-side tokens need no
signing secret. The dormant Bearer-JWT branch in the frontend urql client
is removed; the web UI authenticates GraphQL via the session cookie.
Closes #558
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com >
Entire-Checkpoint: b51075f43cc7
2026-06-17 07:54:26 +02:00
77fdcddc26
Prepare Release 1.5.4
...
Entire-Checkpoint: 535c1737ceb2
2026-05-12 12:00:05 +02:00
ed236ec539
Add Make targets for formatting and linting
...
Add configuration and document usage in README
Entire-Checkpoint: 53425877e242
2026-03-30 16:23:12 +02:00
b1884fda9d
Prepare bug fix release 1.5.3
...
Entire-Checkpoint: 84d4ab77be71
2026-03-25 07:18:27 +01:00
045f81f985
Prepare release v1.5.2
...
Entire-Checkpoint: 9286f4c43ab5
2026-03-18 05:31:49 +01:00
7f069f1ec1
Prepare bugfix release 1.5.1
...
Entire-Checkpoint: 15cc90a0347a
2026-03-12 06:40:36 +01:00
Michael Panzlaff
bcfe9022de
Makefile: use npm ci
2026-02-23 14:51:19 +01:00
b5182c4c13
Prepare release 1.5.0
2026-01-26 15:29:28 +01:00
6f49998ad3
Switch to new go tool pattern for external tool deps
2025-12-16 08:49:17 +01:00
f3ea95535b
Remove init functionlity from Makefile
2025-12-04 10:24:33 +01:00
44cd8d258d
Fix and regenerate Swagger and GraphQL
2025-07-31 12:10:46 +02:00
acaad69917
Prepare Bugfix Release 1.4.4
2025-04-24 11:42:34 +02:00
632b9fc5ea
Prepare Bugfix release 1.4.3
2025-02-26 12:54:50 +01:00
Michael Panzlaff
2bd7c8d51e
Fix 'make -B'
...
Do not raise an error, if the directory already exists.
2025-02-03 16:52:50 +01:00
48e95fbdb0
Prepare release 1.4.2
2024-12-19 06:34:35 +01:00
212c45e070
Prepare bug fix release 1.4.1
2024-12-10 16:45:05 +01:00
Christoph Kluge
084f89fa32
fix: fix svelte source paths in makefile
2024-08-22 14:46:27 +02:00
801607fc16
Refactor main
...
Convert components to Singletons
Restructure main package
Reduce dependencies
2024-07-16 12:08:10 +02:00
e8794b8c79
Add graphql generation target to Makefile
2024-06-28 15:41:11 +02:00
552da005dc
Add make target for swagger UI generator
2024-06-26 05:41:42 +02:00
6c0bfc6c35
Prepare release 1.3.1
2024-06-22 08:55:37 +02:00
6df639a0c3
Prepare Release 1.3.0
2024-04-15 12:54:50 +02:00
0c7f55ff8d
Remove obsolete package build rule
...
In case of cc-backend it is recommended to setup by hand or use the prebuild binary.
2024-02-13 11:54:50 +01:00
4b922c575e
Prepare bugfix release
2023-09-15 15:59:54 +02:00
2d4759114e
Add Release Notes link to release page
2023-09-07 14:33:22 +02:00
cdb66365bf
Prepare release
2023-08-31 16:17:15 +02:00
f81ffbe83d
Prepare minor release 1.1.0
2023-07-20 08:33:42 +02:00
5923070191
make distclean target phony
2023-07-19 09:04:46 +02:00
9cd65bb20c
Add hook for frontend build
2023-06-20 07:55:57 +02:00
9b7b3812d9
Introduce goreleaser support
2023-06-16 14:31:09 +02:00
85c7b9e357
Add correct versions
2023-06-15 09:55:24 +02:00
cfafd5aa08
Add archive test and fix fsBackend test
2023-05-11 16:17:17 +02:00
cc634dd155
Improve build and error handling
2023-05-11 09:39:23 +02:00
be011d6405
Backport Makefile and yarn replacement
...
From branch update-web-frontend-dev
2023-05-04 11:34:20 +02:00
Jan Eitzinger
10f4e09562
Set all versions and print in version flag
2023-04-12 10:43:46 +02:00
Thomas Roehl
4b430016c9
Add Release action for cc-backend
2023-03-20 15:38:36 +01:00
8a1288db1a
Merge branch 'master' of github.com:ClusterCockpit/cc-backend
2023-03-02 14:13:34 +01:00
928cea6814
Add tags target to Makefile
2023-03-02 14:11:06 +01:00
252ec3909a
Add correct dependency on job.db in Makefile
2023-02-25 08:17:58 +01:00
c8104d2f9b
Update Makefile and documentation
2023-02-21 12:14:24 +01:00
Jan Eitzinger
90425021ad
Add info output tp Makefile
2022-09-26 13:51:03 +02:00
Jan Eitzinger
066194121b
Add version and git tag to binary
...
Fixes #47
2022-09-26 13:16:04 +02:00
Jan Eitzinger
b44c6a2e7d
Add Makefile for build automation
2022-09-26 11:22:34 +02:00