Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(federation): re-add RequestSharedSecret job if necessary #44848

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

blizzz
Copy link
Member

@blizzz blizzz commented Apr 16, 2024

fighting another race condition with federated server setup

Summary

@Fenn-CS and I saw another race condition when trying to set up trusted servers. Even when running cron-jobs hand-pickedly, we could end up in state where the requestSharedSecret endpoint is called, claims to We will initiate the exchange of the shared secret, but does not have the appropriate Job in its list anymore.

The change queries the joblist to see whether this one is actually scheduled, and adds it back if it is not the case.

Checklist

@blizzz blizzz requested review from nickvergessen, Fenn-CS, a team, ArtificialOwl and yemkareems and removed request for a team April 16, 2024 11:18
Copy link
Contributor

@Fenn-CS Fenn-CS left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested and it works, code looks good.

@blizzz blizzz added 2. developing Work in progress and removed 3. to review Waiting for reviews labels Apr 16, 2024
@blizzz blizzz self-assigned this Apr 16, 2024
@susnux susnux added this to the Nextcloud 30 milestone Apr 18, 2024
@blizzz blizzz force-pushed the fix/noid/federation-really-surely-init-token branch from 6ca4917 to 7ce2309 Compare July 25, 2024 15:18
@blizzz blizzz added 3. to review Waiting for reviews and removed 2. developing Work in progress labels Jul 25, 2024
This was referenced Jul 30, 2024
This was referenced Aug 5, 2024
@skjnldsv skjnldsv mentioned this pull request Aug 13, 2024
@skjnldsv skjnldsv modified the milestones: Nextcloud 30, Nextcloud 31 Aug 14, 2024
fighting another race condition with federated server setup

Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
@AndyScherzinger AndyScherzinger force-pushed the fix/noid/federation-really-surely-init-token branch from 7ce2309 to 1ba5841 Compare September 3, 2024 10:21
@nickvergessen
Copy link
Member

Failing tests are related @blizzz

@blizzz
Copy link
Member Author

blizzz commented Sep 11, 2024

backlog 😔

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants