Commit Graph
27 Commits
Author SHA1 Message Date
Roman PerekhodandClaude Opus 5.5 a6c51801b8 feat: [OCSRE-1629] add NATS JWT authentication with a .creds file
A NATS server in operator (JWT) mode authenticates a client with a
user JWT and an NKey seed. oCIS could connect to NATS only with a
username and a password.

All NATS connections now accept JWT credentials: events, caches,
persistent stores, the service registry, and the health checks.

- OCIS_NATS_CREDS_FILE: the path of a .creds file
  (nats.UserCredentials). The file is read again on each reconnect.
- OCIS_NATS_CREDS: the content of a .creds file
  (nats.UserCredentialBytes). It takes precedence over the file.
- Each events, cache and store struct has the fields CredsFile and
  Creds with a per-service override, for example
  PROXY_EVENTS_CREDS_FILE.
- The registry reads MICRO_REGISTRY_AUTH_CREDS_FILE and
  MICRO_REGISTRY_AUTH_CREDS. If they are empty, it uses the
  OCIS_NATS_* variables.
- store.Credentials is passed next to each store.Authentication call.
  The revaconfig maps pass the new reva keys.
- The new checks.NewNatsCheckWithConfig uses the authentication and
  TLS settings of the service. The NATS health checks connected
  without credentials and without TLS before.

This change needs the reva commit with pkg/natsauth and the natsjs
plugin with the NatsOptions option. go.mod and vendor/ follow when
these changes are pushed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-23 14:15:55 +02:00
Roman PerekhodandClaude Opus 5 450c4141f0 fix: [ocisdev-1433] fix public share, add The grpc clients keepalive and more (#13020)
* fix: the public share configuration and fixed graceful shutdown

* fix: [OCISDEV-1433] remove GRPC_MAX_CONNECTION_AGE

The setting closed healthy grpc connections on a timer so that clients would redo
their DNS lookup. It never helped against the failure it was reached for - a
connection whose peer stopped answering - because the age limit is enforced by
the server, the grace period was left at infinity so a request already in flight
was never ended, and any value without a unit suffix silently disabled it again.

Detecting a peer that stops answering is now the job of the grpc clients, which
ping the peer while a request is in flight. The servers here got the matching
enforcement policy so they accept those pings; the client side arrives with the
next reva bump.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

* fix: Added the new variable OCDAV_DISABLE_PROPFIND_PUBLIC_LINK_RESOLUTION that disable the resolution of public link shares when answering PROPFIND requests.

* chore: bump reva

* fix: The keepalive added to grpc clinet

* chore: bump reva

* build(deps): bump go 1.26.8, grpc-go dependency

---------

Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
2026-10-02 10:02:54 +02:00
Michal Klos fcbfecf376 feat: [stable-8.0][OCISDEV-1115] harden nats communication (#12790)
feat: [OCISDEV-1115] harden nats communication (#12777)

* feat: [OCISDEV-1115] harden nats communication

* feat: bump reva for tls-enabled stores
2026-08-14 12:13:42 +02:00
Roman Perekhod 4fc4822696 collect the errors from group runner 2025-06-13 16:14:41 +02:00
Juan Pablo Villafáñez dcc861acfa feat: graceful shutdown for the activitylog service 2025-06-05 11:34:55 +02:00
Juan Pablo Villafáñez f4644a6225 chore: change constant name to camelcase 2025-04-01 14:49:08 +02:00
Juan Pablo Villafáñez 62f5228ca4 feat: use names for connections to the nats event bus 2025-04-01 14:49:07 +02:00
Julian Koberg b979844791 feat(ocis): adjust reva imports
Signed-off-by: Julian Koberg <jkoberg@MBP-Julian-Koberg.local>
2025-03-05 11:14:44 +01:00
Jörn Friedrich Dreyer dde999d5c2 align shutdown logging
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2024-10-28 14:47:11 +01:00
jkoberg c80254c4f1 feat(ocis): remove ocm store
Signed-off-by: jkoberg <jkoberg@owncloud.com>
2024-10-15 17:24:51 +02:00
Christian Richter 32485bab2a fix debug server in antivirus
Signed-off-by: Christian Richter <crichter@owncloud.com>
2024-10-14 08:39:42 +02:00
Christian Richter 26bf6ab796 add debug server to activitylog & check web availability
Signed-off-by: Christian Richter <crichter@owncloud.com>
2024-10-14 08:39:42 +02:00
Florian Schade 0671039474 enhancement: add readyz and healthz check handler 2024-10-14 08:39:42 +02:00
Florian Schade c82a7c560e enhancement: use global ready and health handlers 2024-10-14 08:39:42 +02:00
jkoberg a54587e2fd feat(activitylog): add filedownloaded activity
Signed-off-by: jkoberg <jkoberg@owncloud.com>
2024-09-26 14:36:07 +02:00
Roman Perekhod b65355c03c Added the ShareUpdate activity in the space context. 2024-09-23 10:37:23 +02:00
Roman Perekhod a5f6482f6f Added the LinkUpdated activity in the space context 2024-09-18 08:00:31 +02:00
Jörn Friedrich Dreyer 7999e2969b do not force exit to let all services shutdown gracefully
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2024-07-24 14:02:52 +02:00
Jörn Friedrich Dreyer 9d1515e8fc rely on context from app
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2024-07-24 14:02:11 +02:00
Jörn Friedrich Dreyer 008f379a01 pass config context when running apps
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2024-07-24 13:30:42 +02:00
jkoberg 13bba1d1ce fix(activitylog): multiple minor bugfixes
Signed-off-by: jkoberg <jkoberg@owncloud.com>
2024-06-25 18:53:53 +02:00
jkoberg 4b5dca0a13 feat(activitylog): finalize translation strings
Signed-off-by: jkoberg <jkoberg@owncloud.com>
2024-06-24 16:23:55 +02:00
jkoberg 5249cbc138 feat(activitylog): translations
Signed-off-by: jkoberg <jkoberg@owncloud.com>
2024-06-24 16:23:54 +02:00
jkoberg 882689549f feat(activitylog): add api
Signed-off-by: jkoberg <jkoberg@owncloud.com>
2024-06-24 16:23:54 +02:00
jkoberg bd7abeb9d7 feat(activitylog): add missing events
Signed-off-by: jkoberg <jkoberg@owncloud.com>
2024-06-06 15:10:49 +02:00
jkoberg 2b6e75ad7f feat(activitylog): store activities per resource
Signed-off-by: jkoberg <jkoberg@owncloud.com>
2024-06-05 16:23:00 +02:00
jkoberg 630c9efaaa feat(activitylog): initial service
Signed-off-by: jkoberg <jkoberg@owncloud.com>
2024-06-05 14:31:12 +02:00