Commit Graph
54 Commits
Author SHA1 Message Date
André Duffeck 2b77cb9a17 Bump reva to v3.0.1 2026-11-17 12:45:18 +01:00
Jannik Stehle f5990666d1 feat(auth-guest): add guest link logout endpoint 2026-11-10 10:39:05 +01:00
Viktor Scharf ae4970d92c chore: bump reva to 2.52.0 (#3820) 2026-10-27 12:46:43 +01:00
Alex Ababii e95ca276d2 feat(guestlinks): handling of SpaceShare unshared and expired events 2026-10-23 09:17:16 +02:00
Alex Ababii a189c79d48 feat(guestlinks): upd SpaceShared event handling 2026-10-23 09:17:16 +02:00
Alex Ababii 281f18e9fb feat(guestauth): handling space shared event 2026-10-19 13:40:07 +02:00
Alex Ababii 2425b7e2ff feat(guestauth): consume space shared event 2026-10-19 12:43:52 +02:00
André Duffeck cf60057d4a Raise the default cap for guest link renewals without a session to 50
Renewals without a session can happen up to 48 times a day, so a lower cap could be used up to lock the guest out.
2026-10-16 13:18:30 +02:00
André Duffeck b7fd066c5f Keep the newest guest link while it can still be redeemed
Renewals without a valid session only need the share id, so they no longer cancel a link the guest hasn't used yet.
2026-10-16 13:07:38 +02:00
André Duffeck 564e1c0ec7 Rate limit guest link renewals with a valid session separately
Each session renewal issues a PIN with fresh attempts, so without a limit a stolen session could keep guessing. The quota is separate from the one for renewals without a session, so neither can use up the other's.
2026-10-16 13:05:38 +02:00
André Duffeck 60832cc61b Don't issue PINs for renewals with expired guest sessions
An expired session token now counts as no session, so the renewal only rotates the link.
2026-10-16 13:03:36 +02:00
Alex Ababii f6a3ff09d8 feat(authguest): fixed tests after rebase 2026-10-16 10:34:34 +02:00
Alex Ababii c9345db7f3 feat(authguest): fix codacy styling 2026-10-16 10:07:22 +02:00
Alex Ababii e931d1ab25 feat(auhguest): upd renew quota limiting logic 2026-10-16 10:07:22 +02:00
Alex Ababii 7a7f43f889 feat(authguest): fix the renew sessionValid condition 2026-10-16 10:07:22 +02:00
Alex Ababii 7eac7db12c feat(authguest): upd renewal flow to rely on sessionToken 2026-10-16 10:07:22 +02:00
Alex Ababii dc59c536da feat(authguest): upd error mappings 2026-10-16 10:07:22 +02:00
Alex Ababii ddf388a058 feat(authguest): nonce and pin ttl are now using the same value 2026-10-16 10:07:22 +02:00
Alex Ababii fd25c8c88d feat(authguest): removed session token verification on renew endpoint 2026-10-16 10:07:21 +02:00
Alex Ababii 57e72213f7 feat(authguest): per share nonce cookie name 2026-10-16 10:01:56 +02:00
Alex Ababii 9d2c3d40fd feat(authguest): fix codacy issues 2026-10-16 10:01:56 +02:00
Alex Ababii 6e6330f68c feat(authguest): upd readme 2026-10-16 10:01:56 +02:00
Alex Ababii d8ab8dc7ee feat(authguest): extracted restrict access logic into separate package, backoff and quota limiters 2026-10-16 10:01:55 +02:00
Alex Ababii 42a411c11a feat(authguest): nonce check for verifyPin call 2026-10-16 09:59:28 +02:00
Alex Ababii 985c39de1f feat(authguest): basica data structs and config for rate limiting 2026-10-16 09:32:46 +02:00
Andre Duffeck ddd0eda688 Merge pull request #3727 from aduffeck/guest-session-expiry
Return ExpiresAt when issueing a session token
2026-10-15 17:55:10 +02:00
André Duffeck a230d7e193 Return ExpiresAt when issueing a session token 2026-10-15 10:34:00 +02:00
micbar 3662a94ca7 fix: nats checks were missing the configured auth 2026-10-14 17:45:44 +02:00
Alex Ababii 62f2125865 feat(authguest): renamed redeem to verify/token 2026-10-13 09:30:52 +02:00
Alex Ababii 6198c21357 feat(authguest): /redeem endpoint rename to /verify/token 2026-10-13 09:30:52 +02:00
Alex Ababii d6b5f815ef feat(authguest): removed stale comment after rebase 2026-10-13 09:30:52 +02:00
Alex Ababii 7cfc601ddb feat(authguest): fix codacy issues 2026-10-13 09:30:52 +02:00
Alex Ababii b266546a45 feat(authguest): upd renewal logic to verify token and session, storage has now revisions 2026-10-13 09:30:52 +02:00
Alex Ababii 69d2f7f95d feat(authguest): updated README 2026-10-13 09:30:52 +02:00
Alex Ababii 5b7fd47e8e feat(authguest): moved redeem from storage layer to service layer 2026-10-13 09:30:52 +02:00
Alex Ababii 46dce34dd6 feat(authguest): atomic verify pin, rollback mechanism for renew 2026-10-13 09:30:52 +02:00
Alex Ababii 7a2639128d feat(authguest): verify pin endpoint 2026-10-13 09:30:52 +02:00
Alex Ababii a51f79505d feat(authguest): renewal logic and publishing event 2026-10-13 09:30:52 +02:00
Alex Ababii d40bdf6ecf feat(authguest): pin logic and filemanager upd 2026-10-13 09:30:52 +02:00
Alex Ababii 8e39386c60 feat(authguest): added renew endpoint with basic handling 2026-10-13 09:30:51 +02:00
André Duffeck e4afd03bd0 Use HKDF instead of plain hmac to derive the session cookie secret 2026-10-07 10:06:57 +02:00
André Duffeck 10b93edded Derive the guest session key from OC_JWT_SECRET
Replace AUTH_GUEST_SESSION_JWT_SECRET with a key derived via
HMAC-SHA256 from the reva JWT secret. Guest session tokens and reva
access tokens remain unforgeable across each other without a second
secret to configure.
2026-10-07 08:46:53 +02:00
André Duffeck 3a555257fb Align env var names, fix port conflict 2026-10-06 11:28:16 +02:00
André Duffeck 7f7da7f583 Use subtle to compare the hash 2026-10-06 09:52:02 +02:00
André Duffeck 934232e838 Limit body size on unauthenticated redeem endpoint 2026-10-06 09:52:02 +02:00
André Duffeck e8c78f496d Do not leak information about tokens in errors 2026-10-06 09:52:02 +02:00
André Duffeck adc8a51657 Don't use the same secret for signing sessions and reva tokens 2026-10-06 09:52:02 +02:00
Ralf Haferkamp 246d49ee18 guestlinks: Setup guestlinks authprovider
This starts the guestlinks authprovider as part of the auth-guest
service and wires it into the authregistry.
2026-10-06 09:47:00 +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 c5879ca1b2 feat(guestauth): renaming guest ivitations to guest links for consistency with libre-graph-api 2026-10-06 08:08:28 +02:00