c1b35bf2f6
chore: use database in current context for file cache ( #18490 )
...
Using the db.Store when in a TX causes a deadlock for dbmem.
In production, this can cause a deadlock if at the current conn pool
limit.
2025-06-23 11:58:52 -05:00
556b095d0f
chore: add cacheCloser to cleanup all opened files ( #18473 )
2025-06-20 13:25:33 -05:00
04d202ae07
chore: file cache Release tied 1:1 with an acquire ( #18410 )
...
File cache close made idempotent
2025-06-18 18:22:23 -05:00
aee96c9eac
fix: set fileSize to full length instead of unread portion ( #18409 )
...
`content.Len()` would return `0` bytes after a file was fully read.
Since the buffer `Len` function returns the length of the unread
portion.
2025-06-17 10:57:34 -05:00
1d1070d051
chore: ensure proper rbac permissions on 'Acquire' file in the cache ( #18348 )
...
The file cache was caching the `Unauthorized` errors if a user without
the right perms opened the file first. So all future opens would fail.
Now the cache always opens with a subject that can read files. And authz
is checked on the Acquire per user.
2025-06-16 13:40:45 +00:00
dd27a28cfa
chore: fix comment on Acquire
( #18313 )
2025-06-10 15:36:48 -06:00
9db114d17c
feat: add filecache prometheus metrics ( #18089 )
...
Dynamic parameters has an in memory file cache. This adds prometheus
metrics to monitor said cache.
2025-05-30 11:54:54 -05:00
f36fb67f57
chore: use static params when dynamic param metadata is missing ( #17836 )
...
Existing template versions do not have the metadata (modules + plan) in
the db. So revert to using static parameter information from the
original template import.
This data will still be served over the websocket.
2025-05-16 11:47:59 -05:00
f3bcac2e90
refactor: improve overlayFS errors ( #17808 )
2025-05-14 10:26:47 -06:00
60762d4c13
feat: load terraform modules when using dynamic parameters ( #17714 )
2025-05-13 16:07:29 -05:00
d0ab91c16f
fix: reduce size of terraform modules archive ( #17749 )
2025-05-12 13:50:07 -06:00
ac7ea08873
chore: add files cache for reading template tar archives from db ( #17141 )
2025-04-02 16:42:16 -06:00