Commit Graph
57 Commits
Author SHA1 Message Date
moebiusbandandClaude Sonnet 5 153ecb6dff Bound JWT token cache and document auth model
The per-handler JWT validation cache was never pruned, so a long-running
process accumulated one map entry per distinct rotating token, growing
without bound (a slow memory leak / DoS vector). Evict stale entries on
the cache-miss path and cap the cache at maxTokenCacheSize, clearing it
if eviction of expired tokens cannot free space.

Also document in the README that auth verifies only the token signature
and expiry (claims/roles are not enforced) and that an empty
jwt-public-key disables authentication entirely.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-07-13 10:44:06 +02:00
moebiusbandandClaude Sonnet 5 2bf950a746 Prepare release 1.5.4 and remove Entire CLI integration
Bump Makefile VERSION to 1.5.4 and add ReleaseNotes section for the
release. Remove the Entire CLI's Claude Code hooks/settings and its
tracked .entire config files; the corresponding git hooks and checkpoint
branches were also removed outside this commit.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-07-13 10:25:11 +02:00
moebiusbandandClaude Sonnet 5 5cb80a03df Update dependencies and add gofumpt Makefile target
Bump cc-backend to v1.5.4 and cc-lib to v2.12.0 with transitive
dependency updates, add a `make fmt` target running gofumpt, ignore
the dist directory, and reformat multi-line calls to gofumpt style.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Entire-Checkpoint: 09016e793f9b
2026-07-13 10:15:13 +02:00
moebiusband 9f6648dd18 Upgrade dePrepare release 1.5.3
Entire-Checkpoint: 6555467af065
2026-04-01 15:50:33 +02:00
moebiusband a116a1ab16 Update dependencies. Synchronize options, cli flags with cc-backend
Entire-Checkpoint: e24929f05ad3
2026-04-01 15:37:33 +02:00
moebiusband 41fb959bf7 Cleanup README 2026-03-06 12:51:14 +01:00
moebiusband 3e0805b312 Fix golreaser config 2026-03-06 12:35:41 +01:00
moebiusband bdf65b16a9 Upgrade dependencies. Prepare 1.5.0 release
Entire-Checkpoint: 37abb99fe6a7
2026-03-06 12:12:41 +01:00
moebiusband b19dcdb21c Upgrade dependencies 2026-03-06 11:49:01 +01:00
moebiusband d5c9ae9c95 Merge branch 'main' into dev 2026-03-06 11:43:14 +01:00
moebiusband b06bb58bdf Add entire integration 2026-03-06 11:43:05 +01:00
moebiusband 542f8371be Update README
Entire-Checkpoint: dd6b5959d7c6
2026-03-04 11:24:59 +01:00
moebiusband 0fa5d8bb8d Run go fix tool. Refactor 2026-03-04 11:07:05 +01:00
moebiusband 55475804f4 Update to lates cc-backend head
Entire-Checkpoint: 1f0df6df7655
2026-03-03 07:35:46 +01:00
moebiusband 3cc9420047 Merge branch 'dev' of github.com:ClusterCockpit/cc-metric-store into dev 2026-03-03 07:14:15 +01:00
moebiusband b764120501 Integrate entire. Upgrade dependencies 2026-03-03 07:13:15 +01:00
moebiusband dd23f49364 Add configuration options and enable dynamic memory management through cc-backend callback 2026-01-28 12:59:05 +01:00
moebiusbandandClaude Opus 4.5 28f5ffe9c4 Adapt metricConfigSchema to match metricConfigJSON struct
Schema now validates a map of metric names to objects with frequency
(integer) and aggregation (string) fields.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-28 11:53:34 +01:00
moebiusbandandClaude Opus 4.5 fe40326723 Adapt configSchema to match Config struct
Remove cc-backend fields that don't exist in this project and add
missing fields (debug object with dump-to-file/gops, jwt-public-key).

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-28 11:50:16 +01:00
moebiusband b7d4f60358 Simplify startup code 2026-01-26 10:28:20 +01:00
moebiusband 6aca448c18 Port to newest cclib. Use metricstore as library. 2026-01-26 09:59:29 +01:00
moebiusband 55ff44ef75 Prepare release v0.1.1 2024-12-05 08:12:10 +01:00
moebiusband 2d8fa7e0d4 Remove linkage options 2024-11-24 15:30:28 +01:00
moebiusband 5c32d60970 Prepare release 0.1.0 2024-11-24 08:46:44 +01:00
moebiusband d48ba9f3c2 Merge branch 'main' into hotfix 2024-11-24 08:40:24 +01:00
moebiusband 7ee0a01eff Add hostname to error messages 2024-11-20 06:57:24 +01:00
moebiusband 60d4584d06 Only ignore config file in root 2024-11-18 15:45:28 +01:00
moebiusband fd8a919c32 Add description of Makefile to README 2024-10-23 17:03:46 +02:00
moebiusband f301c759c3 Update and extend REST API descriptions 2024-10-23 16:13:20 +02:00
moebiusband 53cb497e0c Update README and Remove TODO 2024-10-23 13:19:18 +02:00
moebiusband 2654a4e126 Add distclean target create config and var dir on build 2024-10-23 11:43:40 +02:00
moebiusband 037b60954f Start to prepare release 2024-10-23 06:41:19 +02:00
moebiusband f37523a93d Move config to configs folder 2024-10-21 14:34:51 +02:00
moebiusband da9e306601 Add goreleaser config 2024-10-21 14:33:42 +02:00
moebiusband 8200c05a56 Add ReleaseNote file 2024-10-21 14:33:00 +02:00
moebiusband 73d7376047 Remove tags Makefile target 2024-10-21 14:32:47 +02:00
moebiusband 26c3d7dd21 Merge branch 'main' into hotfix 2024-06-28 09:39:45 +02:00
moebiusband c7a63f8758 More Todos 2024-06-28 09:36:28 +02:00
moebiusband 98f52cc4ec Update Todo 2024-06-28 09:33:16 +02:00
moebiusband bc77ac4839 Update todos. Cleanup 2024-06-28 08:44:24 +02:00
moebiusband 19a5c6cc1d Update Todos 2024-06-28 07:31:41 +02:00
moebiusband 14cf922157 Use go 1.22 for test workflow 2024-06-26 05:33:53 +02:00
moebiusband 6d5594a376 Change JWT Auth to Middleware Handler
Caveat: Cache is per endpoint
2024-06-26 05:31:28 +02:00
moebiusband 826658f762 Refactor. Add Swagger UI docs.
Change from Gorilla mux to net/http
2024-06-25 20:08:25 +02:00
moebiusband 7538570bc5 Cleanup 2024-06-18 07:27:27 +02:00
moebiusband 80518897cf Merge in refactored branch 2024-06-18 07:13:56 +02:00
moebiusband 52704cabb5 Further cleanup 2024-05-06 17:51:50 +02:00
moebiusband 5ca66aef87 Put token authentication in separate file 2024-05-06 15:40:22 +02:00
moebiusband 8c9761fe2a Cleanup Makefile. Add version flag. 2024-05-06 15:10:45 +02:00
moebiusband fcc8eac2d5 Restructure and Cleanup
Compiles
2024-05-06 14:20:43 +02:00
moebiusband b2528f958c Continue restructuring. Intermediate state. 2024-05-06 09:27:28 +02:00
moebiusband e1e6694656 Intermediate state
Not working yet
2024-05-03 21:08:01 +02:00
moebiusband 0297e6d20d Update dependencies 2024-03-22 09:02:41 +01:00
moebiusband 626b533cf2 Refactor and improve error handling for JWT authentication 2024-03-22 09:02:10 +01:00
moebiusband 61892666a7 Add test target in Makefile 2024-03-22 09:00:48 +01:00
moebiusband dc1ee0f17c Update test action 2024-03-21 20:08:06 +01:00
moebiusband b721cf23e3 Switch to jwt-auth v5 2024-03-20 17:59:19 +01:00