7 Commits

Author SHA1 Message Date
Jörn Friedrich Dreyer
9456bdbdd7 run the thumbnails service in its own container (#435)
* run the thumbnails service in its own container

Since 9.0.0 the thumbnails service is a stateless resizer: webdav posts
the source image to WEBDAV_THUMBNAILS_GENERATOR_URL and keeps the
cache. We now start it as `opencloud thumbnails server` in a dedicated
container from the same image and exclude it from the main container.

Decoding untrusted images is a classic attack surface. The new
container has no access to the config, the secrets or the data, runs
read-only without capabilities and is only reachable on the internal
thumbnails-net. The service has no authentication, so it must not be
exposed. It costs about 50MB of RAM for the extra process.

The exclude list becomes static, so the idm files simply add
thumbnails to it. This avoids the order dependent
EXCLUDE_ADDITIONAL_SERVICES workaround of
https://github.com/opencloud-eu/opencloud-compose/pull/422, the imagor
module only has to point the generator URL at imagor.

The container registers with an in memory registry, there is no nats
to talk to and webdav uses the URL anyway.

Assisted-by: Claude Code:claude-opus-5-5
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>

* let imagor replace the thumbnails container

thumbnails/imagor.yml now scales the built-in thumbnails container to
0 instead of leaving it idle next to imagor. opencloud only waits for
imagor, the depends_on of the base file is replaced with !override,
which needs docker compose 2.24.4 or newer.

Scaling to 0 instead of a profile also stops a running thumbnails
container when imagor is added to an existing deployment. Removing
imagor.yml again brings it back, --remove-orphans cleans up imagor.

Assisted-by: Claude Code:claude-opus-5-5
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>

---------

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2026-11-25 14:49:44 +01:00
renovate[bot]
8f32083333 chore(deps): update shumc/imagor docker tag to v1.10.5 (#441)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-11-25 14:47:41 +01:00
Dominik Schmidt
dc6377ba6f chore(renovate): detect every image that takes its tag from a variable
The regex manager needed a "# renovate: depName=" annotation above the
image line and the compose file in a list, and it only understood a
plain x.y.z tag. opensearch was pinned but had neither, so it was never
updated.

Read the image name from the image line itself, scan all yaml files and
accept any tag, with or without a digest. An image is picked up as soon
as its tag is the default of a variable, nothing else to remember.
2026-11-25 10:32:11 +01:00
renovate[bot]
160edb01f6 chore(deps): update shumc/imagor docker tag to v1.10.4 (#429)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-11-17 11:38:59 +01:00
renovate[bot]
1e170e1862 chore(deps): update shumc/imagor docker tag to v1.10.3 (#428)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-11-13 18:58:04 +01:00
renovate[bot]
6e09e69071 chore(deps): update shumc/imagor docker tag to v1.10.1 (#418)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-11-09 09:25:35 +01:00
Dominik Schmidt
c5c3fbdb89 feat: add an imagor module for heic, heif and avif previews (#407)
imagor runs on an internal network, the webdav service points at it as the
preview generator, and the three formats plus their sequence types are
announced, so previews show up in the file list and the preview app. The
OpenCloud image ships no libheif on purpose, so its own generator refuses
them. Documented in README and .env.example, image tag pinned and tracked by
renovate. Needs OpenCloud 9.0.0 or newer.
2026-10-27 15:44:22 +01:00