-
Notifications
You must be signed in to change notification settings - Fork 333
[WPB 3796] Fix background worker for federation policy allowAll #3526
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
Closed
fisx
wants to merge
72
commits into
develop
from
WPB-3796/fix-background-worker-for-allowAll-fed-policy
Closed
Changes from all commits
Commits
Show all changes
72 commits
Select commit
Hold shift + click to select a range
9823fd0
nit-pick.
fisx a347a75
nit-pick.
fisx 88f202f
Call `getRemoteDomains` in a loop (again).
fisx 8752761
Remove dead code.
fisx 3d4ffc1
Don't call brig from background-worker.
fisx 3998753
Changelog.
fisx 06e2f3f
make sanitize-pr
fisx de782bf
Merge remote-tracking branch 'origin/develop' into WPB-3796/fix-backg…
fisx 90477ca
Make config value required, make it milliseconds and Int.
fisx 21c5770
rename.
fisx ff59df1
Fixups
fisx 3e2a4c3
Fix bug about ensuring rabbitMQ queues and namespaces.
fisx 07042e7
Fix integration tests.
fisx 7265f2d
FUTUREWORK.
fisx cc820b8
TODO
fisx 3252b16
Move BackgroundNotifications module to a more suitlable place.
fisx a6230d3
Move BackgroundNotifications module (cleanup).
fisx de0cabd
Clean up ensureQueue mess.
fisx 1277282
Cleanup `remotesRefreshInterval` unit inconsistency.
fisx 883c063
make sanitize-pr
fisx f76a1c6
Remove seemless-migration-to-database-remotes hack.
fisx 815d15d
Update changelog.
fisx ca6c633
Merge remote-tracking branch 'origin/develop' into WPB-3796/fix-backg…
fisx 4ce60fc
Fixup
fisx e38a6c7
Merge remote-tracking branch 'origin/develop' into WPB-3796/fix-backg…
fisx cb6184c
...
fisx f3440fd
...
fisx 15c0cef
...
fisx 2200da8
...
fisx 97856cd
Fixup
fisx d456a7c
Fixup
fisx b9afef6
Fixup
fisx eb7ee50
Fixup
fisx dc70e1c
Fixup
fisx 1e7d00c
Fix two tests.
fisx c5bb489
Merge remote-tracking branch 'origin/develop' into WPB-3796/fix-backg…
fisx fddd9c9
stash
fisx 91718c1
Added origin domain to e2e config, added search policy to failing test.
elland 195c51c
Restored test assertion.
elland 878b407
Merge remote-tracking branch 'origin/develop' into WPB-3796/fix-backg…
fisx 24ce4f9
Bumped timeout for offline BE notification
elland b244bf0
Better names, better types.
fisx 8c8da68
Cleanup.
fisx 12d11cb
Cleanup.
fisx 606476c
Merge remote-tracking branch 'refs/remotes/origin/WPB-3796/fix-backgr…
fisx b854f6d
Cleanup.
fisx d716699
Cleanup.
fisx 055f55d
hi ci
elland abd25da
Merge remote-tracking branch 'origin/develop' into WPB-3796/fix-backg…
fisx 3ac378b
Fix: AllowAll has default search policy FullSearch.
fisx 29e3429
Revert "Fix: AllowAll has default search policy FullSearch."
fisx b246036
Fix federator integration tests. All green now?
fisx d47e4df
hi ci
elland f32375d
Fixup
fisx 00fd31a
Merge remote-tracking branch 'refs/remotes/origin/WPB-3796/fix-backgr…
fisx 67b7b2e
Merge remote-tracking branch 'origin/develop' into WPB-3796/fix-backg…
fisx 2a86f02
Fixup
fisx b0f3e4d
hi ci
fisx 4f246bf
Re-align brig-integration config file on ci.
fisx 4d6e6da
Increase time to wait for events in /integration.
fisx 06e21e2
Fixup?
fisx f2cf937
Merge remote-tracking branch 'origin/develop' into WPB-3796/fix-backg…
fisx a6927ba
Fixup!
fisx 7c8bf45
*sigh*
fisx 975f142
?!
fisx 5f89f96
...
fisx 3bbcf4d
Merge remote-tracking branch 'origin/develop' into WPB-3796/fix-backg…
fisx 23b7130
Makefile: clean up federation_remotes before `make ci-fast`.
fisx 4c34668
Fix one more.
fisx 5f74ad8
Nit-pick.
fisx e65ef0b
...
fisx 43dd731
stash
fisx File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| New config value | ||
| `background-worker.backendNotificationPusher.remotesRefreshIntervalMs`. | ||
| If in doubt, set to 30000 ms. (This controls the delay between | ||
| backend-to-backend notification queue update pulls from rabbitMQ to | ||
| background-worker.) | ||
|
|
||
| If you have enabled federation and therefore rabbitMQ before this | ||
| upgrade, you should remove all queues called | ||
| `backend-notifications.delete-federation` manually. | ||
|
|
||
| Remote federation domains in the config file are no longer supported. | ||
| Before deploying this release, make sure you have completed the | ||
| migration steps from [the CHANGELOG of Chart Release 4.36.0 (search | ||
| for "remote connections can be configured via an internal REST | ||
| API")](https://github.com/wireapp/wire-server/releases/tag/v2023-08-11). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| [background-worker] Get federation remote domains from rabbitMQ, not from brig (this fixes a bug in federation policy `allowAll`) | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -58,6 +58,8 @@ data: | |
| cert: /etc/wire/integration-secrets/provider-publiccert.pem | ||
| botHost: https://brig-integration | ||
|
|
||
| originDomain: 612c6a18-4e3e-11ee-a205-97507f092421.example.com | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Having this hard-coded like this raises an eyebrow. Why is this not dynamic? |
||
|
|
||
| backendTwo: | ||
| brig: | ||
| host: brig.{{ .Release.Namespace }}-fed2.svc.cluster.local | ||
|
|
@@ -87,3 +89,5 @@ data: | |
| federatorExternal: | ||
| host: federator.{{ .Release.Namespace }}-fed2.svc.cluster.local | ||
| port: 8081 | ||
|
|
||
| originDomain: 6da818ea-4e26-11ee-9422-9b252c5bbf2b.example.com | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -207,3 +207,7 @@ spec: | |
| secretKeyRef: | ||
| name: brig | ||
| key: rabbitmqPassword | ||
| - name: TEST_INCLUDE | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should probably remove this before merging? :) |
||
| value: "" | ||
| - name: TASTY_PATTERN | ||
| value: "(!/turn/&&!/user.auth.cookies.limit/)&&/search users on remote backend/" | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was no release made with this bug, so you can also just drop this changelog.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same as above.