Closed QuintinWillison closed 3 years ago
Is there an update on this bug or an expectation when this will be fixed?
Hi @SpencerWallsworth - sorry for the (very slow!) response but I only just now noticed your comment when I was looking through issues. There is no precise timescale I can provide, however we are looking at ramping up development on this client library in the next couple of months and, as such, this issue is high on the backlog to be worked on then.
We use
NSURLSessionConfiguration
'sdefaultSessionConfiguration
singleton in ARTURLSessionServerTrust.m.We should be using
ephemeralSessionConfiguration
instead as that "uses no persistent storage for caches, cookies, or credentials".Additionally we should also be insisting on TLS protocol negotiation at a minimum of version 1.2. Possibly by using
TLSMinimumSupportedProtocol
, though that seems to have been deprecated and replaced withTLSMinimumSupportedProtocolVersion
but we need to consider using that API cautiously when it comes to backwards compatibility.When working on this issue please ensure to check other use of
NSURLSession
APIs as, for example, thesharedSession
singleton is also problematic for the same reasons.Also, for the purposes of breadcrumbs, see the question I asked in Slack to which paddybyers responded with:
┆Issue is synchronized with this Jira Bug by Unito