{"action":"opened","issue":{"url":"https://api.github.com/repos/noppoMan/aws-sdk-swift-core/issues/15","repository_url":"https://api.github.com/repos/noppoMan/aws-sdk-swift-core","labels_url":"https://api.github.com/repos/noppoMan/aws-sdk-swift-core/issues/15/labels{/name}","comments_url":"https://api.github.com/repos/noppoMan/aws-sdk-swift-core/issues/15/comments","events_url":"https://api.github.com/repos/noppoMan/aws-sdk-swift-core/issues/15/events","html_url":"https://github.com/noppoMan/aws-sdk-swift-core/issues/15","id":280294551,"number":15,"title":"issue with tls ciphers when used with vapor","user":{"login":"jonnymacs","id":4752548,"avatar_url":"https://avatars2.githubusercontent.com/u/4752548?v=4","gravatar_id":"","url":"https://api.github.com/users/jonnymacs","html_url":"https://github.com/jonnymacs","followers_url":"https://api.github.com/users/jonnymacs/followers","following_url":"https://api.github.com/users/jonnymacs/following{/other_user}","gists_url":"https://api.github.com/users/jonnymacs/gists{/gist_id}","starred_url":"https://api.github.com/users/jonnymacs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonnymacs/subscriptions","organizations_url":"https://api.github.com/users/jonnymacs/orgs","repos_url":"https://api.github.com/users/jonnymacs/repos","events_url":"https://api.github.com/users/jonnymacs/events{/privacy}","received_events_url":"https://api.github.com/users/jonnymacs/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-12-07T22:01:10Z","updated_at":"2017-12-07T22:01:10Z","closed_at":null,"author_association":"NONE","body":"Hi Yuki,\r\n\r\nI ran into a problem that I was able to work around but I'd like to better understand the cause to see if the workaround is viable or if I'll need another solution.\r\n\r\nI built a package that includes swift-aws/kinesis and implements a simple interface to put records in one of the various kinesis streams I have setup.\r\n\r\nI am then adding the package to a vapor project, which is an http api service that will take a request, and put the contents in a kinesis stream.\r\n\r\nThis is working on OS X. However upon building a docker image - ubuntu 16.04, swift 4.0.2, and vapor 3.1 I saw an error - `Fatal error: Unexpectedly found nil while unwrapping an Optional value` when calling putRecord on a Kinesis instance.\r\n\r\nDebugging, I was able to trace the issue to the clibressl swift package, specifically this function call to set the tls ciphers https://github.com/vapor-community/clibressl/blob/23ddb296981d17a8ee6c7418742a40cad5d2f9d0/Sources/CLibreSSL/ssl_lib.c#L1292 was returning 0 instead of 1.\r\n\r\nMy ssl expertise is limited, and I am not sure why, but it is only when executed in the vapor app that this occurs. Running the swift REPL in the docker container, and importing CLibreSSL, I cannot reproduce. \r\n\r\nMy workaround is to add CLibreSSL as an explicit dependency to my vapor package manifest. However I am a bit uncomfortable not knowing exactly what the problem is and / or consequences of doing this. It seems to me that CLibreSSL is no longer being maintained in favor of vapor/tls, but again I'm not sure what if anything should be done.  \r\n\r\nI do think it is important that this sdk work with vapor without too many additional config changes as it's an increasingly popular framework for building swift services.\r\n\r\nPlease let me know your thoughts?\r\n\r\nThanks again for this great library!"}}
{"actor":{"display_login":"jonnymacs"}}