-
Notifications
You must be signed in to change notification settings - Fork 325
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
WBP-5388 restrict contact search results according to team federation policy #3732
Merged
battermann
merged 34 commits into
develop
from
WPB-5388-backend-restrict-contact-search-results-according-to-team-federation-policy-part-2
Nov 29, 2023
Merged
Changes from 18 commits
Commits
Show all changes
34 commits
Select commit
Hold shift + click to select a range
00923cc
fed config store
battermann 95558d1
wip
battermann 1cd6bad
federation config store interpreter
battermann d62529c
fix
battermann 2270672
move stuff into interpreter
battermann cce888d
wip
battermann 02cf325
wip
battermann 5c5f12a
wip
battermann b0a0f4a
implement team federation policy for remote search
battermann 0b1c0e1
impl isTeamAllowed
battermann 877ec64
wip
battermann 26b79ea
tests
battermann 7911d23
changelog
battermann 171b6a7
unify API and domain models
battermann 638956f
tagged union
battermann d152b1c
move everything into interpreter
battermann 0829f1e
improve add remote team
battermann 95dd157
handle empty list, optimize integration tests
battermann ff103e6
Haddocks
battermann dab866b
Update integration/test/API/BrigInternal.hs
battermann 8caee10
golden test for federation restriction
battermann 5f29b77
shorter code
battermann b0b1e3a
fix syntax
battermann 226c275
removed comment
battermann 2032d79
Update services/brig/src/Brig/Effects/FederationConfigStore/Cassandra.hs
battermann faa3689
Update services/brig/src/Brig/API/Internal.hs
battermann dc65ecf
removed test cases that are already covered
battermann ddafb7f
clean up
battermann 7757c3b
clean up
battermann 986e67e
clean up
battermann 8216def
added some comments
battermann b2361be
inject map into interpreter
battermann c8256b9
added comments
battermann ba0e75e
lint
battermann 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 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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
Allowlist for who on cloud can connect to on-prem: | ||
- Internal API to configure allowlist | ||
(#3697) | ||
- Restrict federated user search according to team federation policy | ||
(#3697, #3732) |
This file contains 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 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 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 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 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.
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.
Doesn't the
cs <$> teams
part rely on theShow TeamId
instance? Shouldn't it rather rely on theToJSON TeamId
instance?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.
I think it converts a String into a ByteString in this case. Remember that in the integration tests we do not have access to wire-api. However, Aeson.toJSON works, too.
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.
Yeah, I forgot this is for a
[String]
value, and not a[Data.Id.TeamId]
value. TheData.Id
module is not inwire-api
, but intypes-common
, though. However, maybe this is not to be used in theintegration
package as well, but I'm not sure.