You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm open to check which library would work better for Npgsql. Also, after Shay's work on legacy entity framework reflection, I think that if we decide to keep Mono.Security, we could make the assembly required only when user need to connect through SSL. If not, the user can go only with Npgsql.dll assembly. This would help to fix an old request of having a single Npgsql assembly to be deployed.
IMHO, it isn't really a problem to keep packaging Mono.Security with Npgsql. I know that some other projects do so, since .NET doesn't provide some needed security features which Mono.Security does.
The question is rather, does Npgsql require Mono.Security in order to provide all SSL features provided by the Postgresql backend? If not, then it should probably be removed as a needless dependency. If Npgsql can't provide all backend-supported SSL features with Mono.Security, then we should probably keep it...
But we need someone who actually knows something about all this to help :)
Based on npgsql_v2.2.0, I've created a (SVN) patch file to drop all Mono.Security stuff - no problem on running with conventional connection, but not tested with an SSL connection (I've got no server for testing).
Maybe someone else can test and prepare a github push request - at least for a branch "No-Mono.Security-Support" (or similar)?
Npgsql 2.2 (just released) uses SSLStream rather than Mono.Security by default, so it is in effect a way of testing whether Mono.Security is required. We hope that we get no negative feedback about it, which would mean it's safe to remove Mono.Security altogether in 3.0.
In the meantime it's also important to start writing tests for SSL (#291), which currently aren't covered at all in our suite.
In any case, any chance you can submit your modification as a github pull request for review/testing?
I've created the provided patch to drop the Mono.Security.dll from my projects. Especially when distributing those projects which reference a GAC lib like Mono.Security, it is always a problem if you haven't manually inserted it into the own project. Setup (e.g. setup of Click Once applications) would search for it, don't find it and stop installing.
Currently, I'm not familiar with github, branches, etc. Maybe it's pretty simple but I haven't got the time to
get me into a souverain position.
Activity
roji commentedon Dec 12, 2013
@franciscojunior said in npgsql-devel:
Regarding the Mono.Security support, I don't have much information about that yet. Sebastien Pouliot is the guy responsible for the security part of Mono. I don't know if he is still playing with this today. I did some tests (which culminated in my suggestion to remove the Mono.Security assembly) where I could get SSLStream to work where with Mono.Security I couldn't: http://fxjr.blogspot.com.br/2013/07/sslstream-support-added-to-npgsql.html
Also in the past we were getting reports of errors when trying to connect to Postgresql through SSL, although I didn't receive more information why the errors were happening.
I'm open to check which library would work better for Npgsql. Also, after Shay's work on legacy entity framework reflection, I think that if we decide to keep Mono.Security, we could make the assembly required only when user need to connect through SSL. If not, the user can go only with Npgsql.dll assembly. This would help to fix an old request of having a single Npgsql assembly to be deployed.
roji commentedon Dec 15, 2013
IMHO, it isn't really a problem to keep packaging Mono.Security with Npgsql. I know that some other projects do so, since .NET doesn't provide some needed security features which Mono.Security does.
The question is rather, does Npgsql require Mono.Security in order to provide all SSL features provided by the Postgresql backend? If not, then it should probably be removed as a needless dependency. If Npgsql can't provide all backend-supported SSL features with Mono.Security, then we should probably keep it...
But we need someone who actually knows something about all this to help :)
roji commentedon Aug 31, 2014
Try to cover as much of the Postgresql backend SSL capabilities in tests (#291), and based on that get rid of Mono.Security...
jochenwezel commentedon Sep 2, 2014
Based on npgsql_v2.2.0, I've created a (SVN) patch file to drop all Mono.Security stuff - no problem on running with conventional connection, but not tested with an SSL connection (I've got no server for testing).
Maybe someone else can test and prepare a github push request - at least for a branch "No-Mono.Security-Support" (or similar)?
roji commentedon Sep 2, 2014
@jochenwezel, thanks for the contribution.
Npgsql 2.2 (just released) uses SSLStream rather than Mono.Security by default, so it is in effect a way of testing whether Mono.Security is required. We hope that we get no negative feedback about it, which would mean it's safe to remove Mono.Security altogether in 3.0.
In the meantime it's also important to start writing tests for SSL (#291), which currently aren't covered at all in our suite.
In any case, any chance you can submit your modification as a github pull request for review/testing?
jochenwezel commentedon Sep 2, 2014
I've created the provided patch to drop the Mono.Security.dll from my projects. Especially when distributing those projects which reference a GAC lib like Mono.Security, it is always a problem if you haven't manually inserted it into the own project. Setup (e.g. setup of Click Once applications) would search for it, don't find it and stop installing.
Currently, I'm not familiar with github, branches, etc. Maybe it's pretty simple but I haven't got the time to
get me into a souverain position.
roji commentedon Feb 12, 2015
We have a report that Mono.Security does not run well under medium trust: https://groups.google.com/forum/#!msg/npgsql-help/6DwOZDR7Jag/_rI7Jh9uj4UJ
[-]Consider getting rid of Mono.Security[/-][+]Drop Mono.Security[/+]roji commentedon Mar 23, 2015
Done by @Emill as part of #532
Get rid of Mono.Security