Commit Graph

110 Commits (07340cdacad901a55abd0811a1fca86061b752bd)

Author SHA1 Message Date
Amber Brown 2d2828dcbc
Port http/ to Python 3 (#3771) 6 years ago
Amber Brown 49af402019 run isort 6 years ago
Matthew Hodgson f4f1cda928 add ip_range_whitelist parameter to limit where ASes can connect from 7 years ago
Michael Telatynski 592c162516
also redact __str__ of ApplicationService used for logging 7 years ago
Will Hunt d6e3c2c79b Let's try labels instead of label, that might work 7 years ago
Will Hunt 604cff1a06 Add metrics to track appservice transactions 7 years ago
Richard van der Hoff 2a13af23bc Use run_in_background in preference to preserve_fn 7 years ago
Richard van der Hoff 9255a6cb17 Improve exception handling for background processes 7 years ago
Richard van der Hoff b78395b7fe Refactor ResponseCache usage 7 years ago
Richard van der Hoff b3384232a0 Add metrics for ResponseCache 7 years ago
Adrian Tschira e54c202b81 Replace some type checks with six type checks 7 years ago
Luke Barnard 7fb0e98b03 Extract group_id from the dict for multiple use 7 years ago
Luke Barnard d8391f0541 Remove unused GROUP_ID_REGEX 7 years ago
Luke Barnard 4e8374856d Document get_groups_for_user 7 years ago
Luke Barnard 270f9cd23a Flake8 7 years ago
Luke Barnard 9d83d52027 Use a generator instead of a list 7 years ago
Luke Barnard b1edf26051 Check group_id belongs to this domain 7 years ago
Luke Barnard 97bd18af4e Add automagical AS Publicised Group(s) 7 years ago
Erik Johnston 2a7e9faeec Do logcontexts outside ResponseCache 7 years ago
Richard van der Hoff eaaabc6c4f replace 'except:' with 'except Exception:' 7 years ago
Erik Johnston 760625acba Make get_if_app_services_interested_in_user faster 8 years ago
Erik Johnston 69efd77749 Add comment 8 years ago
Erik Johnston 51b156d48a Cache whether an AS is interested based on members 8 years ago
Erik Johnston 30f5ffdca2 Remove param and cast at call site 8 years ago
Erik Johnston 650f0e69f2 Compile the regex's used in ASes 8 years ago
Erik Johnston 2bf5a47b3e Rename network_id to instance_id on client side 8 years ago
Erik Johnston 3727d66a0e Don't include appservice id 8 years ago
Erik Johnston f32fb65552 Add new API appservice specific public room list 8 years ago
Luke Barnard 5b54d51d1e Allow Configurable Rate Limiting Per AS 8 years ago
Paul "LeoNerd" Evans 776594f99d Log if rejecting 3PE query metadata result due to type check 8 years ago
Paul "LeoNerd" Evans ed44c475d8 Reject malformed 3PE query metadata results earlier in AS API handling code 8 years ago
Kegan Dougal 572acde483 Use None instead of the empty string 8 years ago
Kegan Dougal 16b652f0a3 Flake8 8 years ago
Kegan Dougal e82247f990 Allow application services to have an optional 'url' 8 years ago
Paul "LeoNerd" Evans 9459137f1e Just sprintf the 'kind' argument into uri directly 8 years ago
Paul "LeoNerd" Evans 1294d4a329 Move ThirdPartyEntityKind into api.constants so the expectation becomes that the value is significant 8 years ago
Paul "LeoNerd" Evans e7af8be5ae Root the 3PE lookup API within /_matrix/app/unstable instead of at toplevel 8 years ago
Paul "LeoNerd" Evans adf53f04ce appease pep8 8 years ago
Paul "LeoNerd" Evans db7283cc6b Implement a ResponseCache around 3PE lookup metadata lookups 8 years ago
Paul "LeoNerd" Evans d0b8d49f71 Kill PROTOCOL_META since I'm not using it any more 8 years ago
Paul "LeoNerd" Evans 5474824975 Actually query over AS API for 3PE lookup metadata 8 years ago
Paul "LeoNerd" Evans 9899824b85 Initial hack at the 3PN protocols metadata lookup API 8 years ago
Erik Johnston 9219139351 Preserve some logcontexts 8 years ago
Paul "LeoNerd" Evans 63c19e1df9 Move 3PU/3PL lookup APIs into /thirdparty containing entity 8 years ago
Paul "LeoNerd" Evans 65201631a4 Move validation logic for AS 3PE query response into ApplicationServiceApi class, to keep the handler logic neater 8 years ago
Paul "LeoNerd" Evans b515f844ee Avoid so much copypasta between 3PU and 3PL query by unifying around a ThirdPartyEntityKind enumeration 8 years ago
Paul "LeoNerd" Evans 2a91799fcc Minor syntax neatenings 8 years ago
Paul "LeoNerd" Evans 06964c4a0a Copypasta the 3PU support code to also do 3PL 8 years ago
Paul "LeoNerd" Evans 434bbf2cb5 Filter 3PU lookups by only ASes that declare knowledge of that protocol 8 years ago
Paul "LeoNerd" Evans 718ffcf8bb Since empty lookups now return 200/empty list not 404, we can safely log failures as exceptions 8 years ago