Roman Perekhod and Claude 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
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
Roman Perekhod
d31ca63af1
set default timeouts and clean up
2025-05-28 12:21:50 +02:00
Roman Perekhod
e1325ca40f
to separate controll ower the http and grpc driven services
2025-05-28 12:21:50 +02:00
Juan Pablo Villafáñez
399a24e9b6
feat: use runners to startup the services
2025-05-28 12:21:49 +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
jkoberg
64ff81575d
docs(postprocessing): update docs
...
Signed-off-by: jkoberg <jkoberg@owncloud.com >
2024-11-04 12:56:35 +01:00
jkoberg
6ea3f2f782
fix(postprocessing): restart postprocessing properly
...
Signed-off-by: jkoberg <jkoberg@owncloud.com >
2024-11-04 10:30:41 +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
Roman Perekhod
1ef9b21e7f
Fix panic when stopping the nats
2024-10-22 12:00:24 +02: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
0094d30378
code cleanup & refactoring
...
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
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
Jörn Friedrich Dreyer
e41472234f
log and trace fixes
...
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de >
2024-04-26 17:03:49 +02:00
jkoberg
a9ce2e003c
allow bulkrestarting postprocessing
...
Signed-off-by: jkoberg <jkoberg@owncloud.com >
2024-01-26 15:22:48 +01:00
jkoberg
de4f9d78f4
allow authentication for stores
...
Signed-off-by: jkoberg <jkoberg@owncloud.com >
2023-12-19 10:44:05 +01:00
kobergj
377a23ee7d
Non-durable SSE streams ( #7986 )
...
* make sse streams non-durable
Signed-off-by: jkoberg <jkoberg@owncloud.com >
* bump reva
Signed-off-by: jkoberg <jkoberg@owncloud.com >
---------
Signed-off-by: jkoberg <jkoberg@owncloud.com >
2023-12-18 11:47:25 +01:00
jkoberg
1f1aa50c54
hard exit when services fail
...
Signed-off-by: jkoberg <jkoberg@owncloud.com >
2023-09-21 13:53:18 +02:00
Daniël Franke
97034f4aaa
Add tracing to postprocessing service ( #7094 )
...
This adds tracing to the postprocessing service.
2023-08-23 15:52:26 +02:00
jkoberg
49cdcad129
unify eventstream creation
...
Signed-off-by: jkoberg <jkoberg@owncloud.com >
2023-08-16 10:14:12 +02:00
Daniël Franke
952ebe7d7d
Pass context to event publishing.
...
To allow tracing propagation via events, we need to pass the context
to the `Publish` function of reva events. This adds the context
everywhere where events are published. If there was no context to pass,
we started a new one with `context.Background()`.
2023-08-11 12:01:19 +02:00
jkoberg
f23f35e227
improve readme
...
Signed-off-by: jkoberg <jkoberg@owncloud.com >
2023-06-13 10:50:07 +02:00
jkoberg
aac793a400
add ctl command to resume postprocessing
...
Signed-off-by: jkoberg <jkoberg@owncloud.com >
2023-06-13 10:50:07 +02:00
jkoberg
d347448ec0
remove duplicated sutureservice code
...
Signed-off-by: jkoberg <jkoberg@owncloud.com >
2023-06-02 12:02:27 +02:00
jkoberg
a324ad48a0
add a store to postprocessing
...
Signed-off-by: jkoberg <jkoberg@owncloud.com >
2023-05-12 11:04:41 +02:00
Christian Richter
624483a051
add debug to postprocessing
...
Signed-off-by: Christian Richter <crichter@owncloud.com >
2023-05-02 17:00:15 +02:00
jkoberg
502e2ec8f4
fix postprocessing service
...
Signed-off-by: jkoberg <jkoberg@owncloud.com >
tmp
Signed-off-by: jkoberg <jkoberg@owncloud.com >
2022-12-21 13:47:33 +01:00
jkoberg
b29ffeb3a9
use stream pkg instead server pkg
...
Signed-off-by: jkoberg <jkoberg@owncloud.com >
2022-12-20 09:53:11 +01:00
jkoberg
daad94a332
config and tls
...
Signed-off-by: jkoberg <jkoberg@owncloud.com >
2022-12-08 11:41:31 +01:00
jkoberg
a004095a6c
add postprocessing service
...
Signed-off-by: jkoberg <jkoberg@owncloud.com >
2022-12-08 11:00:42 +01:00