Commit Graph
39 Commits
Author SHA1 Message Date
Andre Duffeck a7cfefecaf Merge pull request #3270 from opencloud-eu/extract-config-binder
refactor(config): extract BindSourcesToStructs into pkg/config/binder
2026-11-27 09:18:20 +01:00
Pascal Bleser a359ef7e85 feat(graph): limit the length of tags
Tags could be of any length. Assigning tags through the graph API now
rejects the whole request with 400 if one of the tags is longer than the
maximum, listing the tags that are too long. The length is counted in
characters, after the whitespace around each tag is removed. Tags that
already exist are not affected.

The maximum is 100 characters by default, and can be changed with
OC_MAX_TAG_LENGTH, or turned off with 0. The frontend service announces
it to clients as the graph.tags.max_tag_length capability, so that they
can check tags before sending them. Both services read the same
variable, without a service-specific alias, so that the announced limit
is always the one graph enforces.

Assisted-by: Claude Code:claude-opus-5-5
2026-11-18 00:29:40 +01:00
Pascal Bleser 51b92da2e5 fix(graph): refuse space images too large for a thumbnail
A space image is only ever shown as a thumbnail. When a file larger
than the thumbnail generator accepts was set as the image of a space,
the PATCH of the drive succeeded, but no thumbnail could be made of the
file, so the space showed no image and nobody got an error.

Before setting the image, graph now looks up the size of the file, and
refuses a file above the limit with 413 Request Entity Too Large,
without changing the space. The limit is the one of the thumbnail
generator: graph reads it under the same names as the webdav and
thumbnails services (OC_THUMBNAILS_MAX_INPUT_IMAGE_FILE_SIZE and the
older THUMBNAILS_MAX_INPUT_IMAGE_FILE_SIZE, 50MB by default, empty for
unlimited), so one setting keeps the three in agreement.
GRAPH_THUMBNAILS_MAX_INPUT_IMAGE_FILE_SIZE sets a lower limit for space
images alone.

The default of 50MB is now one constant, which the graph, webdav and
thumbnails services all use.

Only the file size is checked: the dimension limits of the generator
would need the whole image to be read. The space readme has no limit,
and an empty image id is passed on unchecked, as before.

Assisted-by: Claude Code:claude-opus-5-5
2026-11-13 15:55:12 +01:00
Dominik Schmidt 1235fb59d4 refactor(config): trim binder comments 2026-10-15 15:50:43 +02:00
Dominik Schmidt cc358d9f48 refactor(config): keep the re-export a function, pin env expansion in the test 2026-10-15 15:50:43 +02:00
Dominik Schmidt 6265fefd9b refactor(config): extract BindSourcesToStructs into pkg/config/binder
New leaf package (only gookit + pkg/config/defaults) so callers can bind a
yaml config file without importing the aggregate service config. pkg/config
keeps a backward-compatible re-export.
2026-10-15 15:50:43 +02:00
Alex Ababii 2c898250a9 feat(guestauth): upd file manager lock, addtional filetrs for shareExpired and shareRemoved events, common config loading fix 2026-10-06 08:08:28 +02:00
Alex Ababii cbf3ee8c0b feat(guestauth): guestauth service rename to auth-guest 2026-10-06 08:07:44 +02:00
Alex Ababii a1cb335c37 feat(guestauth): register gusetauth service into opencloud config 2026-10-06 08:07:43 +02:00
Florian Schade 288e67cc39 chore: replace interface with any 2026-04-23 09:31:11 +02:00
Jörn Friedrich Dreyer c99342318f merge ocdav into frontend
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2026-01-07 15:04:34 +01:00
Jörn Friedrich Dreyer 10913ca00a Merge pull request #1918 from opencloud-eu/otlp-tracing
update otlp tracing
2025-11-27 12:57:26 +01:00
Jörn Friedrich Dreyer a3ef7f6d79 update otlp tracing
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2025-11-27 12:28:15 +01:00
fschade 60501659c5 chore: bump %%NEXT%% 2025-11-27 10:53:59 +01:00
Ralf HaferkampandBenedikt Kulmann bb776c7556 fix typo
Co-authored-by: Benedikt Kulmann <benedikt@kulmann.biz>
2025-11-05 11:57:48 +01:00
Ralf Haferkamp 177afc41c7 fix: set global signing secret fallback correctly
When falling back to the transfer secret we need to set the global
cfg.URLSigningSecret as well otherwise the Validate() step fails.
2025-11-05 11:57:48 +01:00
Ralf Haferkamp fcff855e16 feat: Add fallback for OC_URL_SIGNING_SECRET
When OC_URL_SIGNING_SECRET is not set. Fall back to the value of the
reva transfer token. This allows handling upgrades on a instance that
was created before the OC_URL_SIGNING_SECRET was introduced to be
handled more graceful.

Unfortunately this still only works reliably for single instance
deployments (or instance that where bootstrapped using 'opencloud init')
that are guaranteed to have the transfer token available.

When running 'proxy' and 'ocdav' as separate services the upgrade might
still require manual intervention.
2025-11-04 16:01:00 +01:00
Ralf Haferkamp 37609e52df feat!: Make the url signing secret a mandatory config option
This is required for allowing the web office to download images to
insert into documents.

The secret is generated by `opencloud init` and the server refuses
to start now without a secret being set. (Breaking Change)

Also the setting is now moved to the shared options as all involved
services need the same secret to work properly.

Related: https://github.com/opencloud-eu/web/issues/704
2025-11-04 16:01:00 +01:00
Jörn Friedrich Dreyer 8c9f266ded allow specifying a shutdown order
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2025-10-27 11:58:14 +01:00
Ralf Haferkamp 8e1f68f315 Reset 'introductionVersion" struct tag to 1.0.0 2025-02-24 11:40:33 +01:00
Ralf Haferkamp e07f0154bb Rebrand pkg 2025-01-20 10:59:08 +01:00
André Duffeck 1fff27f281 Rebrand pkg 2025-01-20 09:34:32 +01:00
Jörn Friedrich Dreyer db39b8ed3b use opencloudurl
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2025-01-16 11:13:08 +01:00
Ralf Haferkamp 213e9663a9 Rename go-micro services 2025-01-16 09:45:46 +01:00
Florian Schade 4a45d7fca8 refactor!: change base data and config dir path
BREAKING CHANGE: `.ocis` dir isn't valid anymore, use init again.
2025-01-15 15:07:57 +01:00
Jörn Friedrich Dreyer ca25f8b18b opencloud parser errors
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2025-01-14 12:54:33 +01:00
Jörn Friedrich Dreyer b07b5a1149 use plain pkg module
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2025-01-13 16:42:19 +01:00
A.Unger ba757750b4 remove pkg + use correct replace on ocis ocs 2020-09-21 16:09:54 +02:00
Benedikt Kulmann 1b048da76a Fix store command
- Was started with the wrong flagset
- Didn't use the ocis-store config at all
2020-08-12 13:35:14 +05:45
A.Unger 1cc12b0dd5 add kill, list and run commands 2020-06-04 13:43:03 +02:00
A.Unger 29d8b1b981 use master @ ocis-accounts, ocis-settings, ocis-proxy 2020-05-22 13:35:40 +02:00
Ilja Neumann b0d984c252 Integrate ocis-accounts 2020-04-30 15:08:44 +02:00
David Christofas a0f949cb14 add thumbnails command 2020-03-19 15:59:57 +01:00
Jörn Friedrich Dreyer 9702541f23 replace devldap with glauth
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2020-03-17 12:31:31 +01:00
Ilja Neumann 1e0f04dcbf Start proxy with ocis server command #136 2020-03-12 16:38:08 +01:00
Ilja NeumannandThomas Müller bbf086fed7 Integrate ocis-devldap
Co-authored-by: Thomas Müller <thomas.mueller@tmit.eu>
2020-01-30 10:19:10 +01:00
Thomas Müller c602abfa73 Adding ocis-graph-explorer to ocis 2020-01-28 11:55:12 +01:00
Jörn Friedrich Dreyer 4f860675bc add ocis-reva
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2019-12-19 12:33:20 +01:00
Thomas Boerger 1612e4a841 Use new package structuring, embed existing extensions 2019-12-10 15:24:01 +01:00