contribute.xml 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224
  1. <PAGE>
  2. <INCLUDE file="inc/header.tmpl" />
  3. <VAR match="VAR_SEL_CONTRIBUTE" replace="selected" />
  4. <VAR match="VAR_SEL_CONTRIB_MAIN" replace="selected" />
  5. <PARSE file="menu1.xml" />
  6. <PARSE file="menu2-contribute.xml" />
  7. <INCLUDE file="inc/content.tmpl" />
  8. <h1>Contributing to OpenConnect</h1>
  9. <p>Contributions to OpenConnect are very welcome. You don't need to be able to write
  10. code. Testing, documentation improvements and especially translations are all
  11. extremely useful. Some specific suggestions and requests for help can be found below.</p>
  12. <h2>Submitting Patches</h2>
  13. <p>Patches can be sent to the <a href="mail.html">mailing list</a> or directly to <a
  14. href="mailto:dwmw2@infradead.org">the author</a> in private email. We are also experimenting
  15. with using GitLab, so please feel free to file issues and submit merge requests at
  16. <a href="https://gitlab.com/openconnect/openconnect">https://gitlab.com/openconnect/openconnect</a>.</p>
  17. <p>When submitting patches to be included in OpenConnect, please certify that your
  18. patch meets the criteria below by including include a <i>sign-off</i>
  19. line in your email which looks like this:
  20. </p>
  21. <tt>Signed-off-by: Random J Developer &amp;lt;random@developer.example.org&amp;gt;</tt>
  22. <p>This confirms that you are permitted to submit the patch for inclusion in
  23. OpenConnect under the LGPLv2.1 licence. The full text of the certificate is as follows:
  24. <ul><li><p><b>Developer's Certificate of Origin 1.1</b></p>
  25. <p>By making a contribution to this project, I certify that:</p>
  26. <ol>
  27. <li>The contribution was created in whole or in part by me and I
  28. have the right to submit it under the open source license
  29. indicated in the file; <b>or</b></li>
  30. <li>The contribution is based upon previous work that, to the best
  31. of my knowledge, is covered under an appropriate open source
  32. license and I have the right under that license to submit that
  33. work with modifications, whether created in whole or in part
  34. by me, under the same open source license (unless I am
  35. permitted to submit under a different license), as indicated
  36. in the file; <b>or</b></li>
  37. <li>The contribution was provided directly to me by some other
  38. person who certified <i>(1)</i>, <i>(2)</i> or <i>(3)</i> and I have not modified
  39. it.</li>
  40. </ol><p>and also that:</p>
  41. <ul><li>I understand and agree that this project and the contribution
  42. are public and that a record of the contribution <i>(including all
  43. personal information I submit with it, including my sign-off)</i> is
  44. maintained indefinitely and may be redistributed consistent with
  45. this project or the open source license(s) involved.
  46. </li></ul>
  47. </li></ul>
  48. <h1>What needs doing?</h1>
  49. <a name="translation"/>
  50. <h2>Translations</h2>
  51. <p>One of the main things needed at the present time is translations into
  52. languages other than English. All contributions will be gratefully received.</p>
  53. <p>Translations for OpenConnect are maintained in the GNOME
  54. <a href="https://l10n.gnome.org/module/NetworkManager-openconnect/">NetworkManager-openconnect module</a>.
  55. Translations can be contributed by joining the GNOME team as described on their
  56. <a href="https://wiki.gnome.org/TranslationProject">TranslationProject</a>
  57. wiki page, or simply by editing one of the language files in the <tt><a
  58. href="https://git.infradead.org/users/dwmw2/openconnect.git/tree/HEAD:/po">po/</a></tt>
  59. directory and sending the resulting patch (or file) to the <a
  60. href="mail.html">mailing list</a>.</p>
  61. <p>If there are questions about the messages because the intent is not clear, or if the
  62. messages could be improved to make translation easier or better, please also feel free to
  63. ask or make suggestions on the mailing list.</p>
  64. <h2>Documentation / Web Site</h2>
  65. <p>OpenConnect is designed with the principle that <i>"if it needs documenting, fix it instead"</i>. That isn't
  66. to say that we don't have documentation. But if a user finds something non-obvious and has to look it up
  67. in the documentation, then that in itself is a little bit of a usability failure. Software should Just Work™.</p>
  68. <p>So if you find something that is more complex than it needs to be, and you think it should
  69. Just Work™ then please don't hesitate to
  70. <a href="mailto:openconnect-devel@lists.infradead.org?subject=Usability improvement suggestion">tell us</a>
  71. bout it.</p>
  72. <p>Any improvements to the documentation are most welcome. In particular:</p>
  73. <ul>
  74. <li><b>Update web site to be <a href="https://search.google.com/test/mobile-friendly?url=www.infradead.org%2Fopenconnect/">mobile-friendly</a></b><br/>
  75. The current template is definitely showing its age, and could very much do with an overhaul.</li>
  76. </ul>
  77. <h2>Testing</h2>
  78. <p>All testing is valuable, and please do let us know if anything doesn't work when you think
  79. it should. There are some things which the regular developers don't have easy access to test,
  80. some help with testing these would be particularly welcome:</p>
  81. <ul>
  82. <li><b>Various authentication methods for Pulse Secure.</b><br/>
  83. Although it looked sane at first, the Pulse protocol has a lot of horrid
  84. special cases. Aside from the <a href="tncc.html">Host Checker</a> most
  85. should be working, but please test and let us know if anything is
  86. missing or wrong.</li>
  87. </ul>
  88. <a name="new-protocols"/>
  89. <h2>New Protocols</h2>
  90. <p>There are some other protocols which would be good to add to OpenConnect. Getting a new
  91. protocol to the point where it basically works to send and receive traffic is only a
  92. few hours of work, and can be very rewarding.</p>
  93. <p>For some protocols we already know how they work on the wire and it's mostly just
  94. a matter of writing the code. For others we might have to <a href="mitm.html">observe
  95. the existing clients</a> to learn how they work.</p>
  96. <p>These would be great projects for someone to take on as a learning exercise, or
  97. perhaps even Google Summer of Code projects.</p>
  98. <ul>
  99. <li><b><a href="https://www.checkpoint.com/products/endpoint-remote-access-vpn-software-blade/">CheckPoint VPN</a></b><br/>
  100. This is an IPSec-based VPN with fallback to using the SSL transport. Some discussion of OpenConnect support in this <a href="https://gitlab.com/openconnect/openconnect/issues/13">GitLab ticket</a>,
  101. and working code contributed in <a href="https://gitlab.com/openconnect/openconnect/-/merge_requests/207">MR !207</a>.</li>
  102. <li><b>Cisco / Nortel IPSec VPN</b><br/>
  103. These IPSec-based protocols are already supported by <a href="https://www.unix-ag.uni-kl.de/~massar/vpnc/">vpnc</a> to differing extents, but vpnc is no longer actively maintained.
  104. Since OpenConnect now has ESP support, and since some of these protocols also fall back to operating over TCP when UDP and native ESP aren't available, it may make sense to implement them in OpenConnect now.</li>
  105. <li><b>External authentication support for multiple protocols.</b><br/>
  106. Many VPNs now use SAML or other technologies to hand off the login/authentication
  107. process to a <a href="https://en.wikipedia.org/wiki/Single_sign-on">single sign-on</a> (SSO)
  108. provider. Okta and Microsoft Azure are well known cloud-based SSO providers.
  109. We have numerous <a href="https://gitlab.com/openconnect/openconnect/-/issues?label_name%5B%5D=External+Auth%2FSAML%2FSSO">issues</a> and
  110. <a href="https://gitlab.com/openconnect/openconnect/-/merge_requests?label_name[]=External+Auth%2FSAML%2FSSO">merge requests</a> labeled
  111. <tt>External Auth/SAML/SSO</tt>. This is an area where there is a large amount of
  112. commonal functionality across protocols, but also a large amount of variation in
  113. the details, and where we need careful help designing suitable interfaces for
  114. the interactions between OpenConnect's core code, VPN protocol-specific authentication code,
  115. and external interfaces for authentication (e.g. web browsers or graphical pop-up
  116. interfaces).</li>
  117. </ul>
  118. <p>Suggestions for other protocols which OpenConnect could usefully implement are also welcome.</p>
  119. <h2>Other enhancements</h2>
  120. One of the main other improvements that would be welcome, is implementing a full WebView in the graphical clients. Currently for protocols like Juniper, OpenConnect screen-scrapes the HTML pages used for login, and attempts to make sense of them. This is The main thing that would be
  121. Other items on the TODO list include:
  122. <ul>
  123. <li><b>WebView support in graphical clients.</b><br/>
  124. OpenConnect currently screen-scrapes the HTML login pages for protocols like Juniper, which is fragile and error-prone. It would be great if the graphical interfaces like NetworkManager could use a real WebView to show the pages, which would work with JavaScript and various other customisations that the admins often make. This might make an excellent Google Summer of Code project, or would also suit someone just trying to contribute in their spare time.</li>
  125. <li><b>Better support for running or emulating the '<a href="csd.html">Cisco Secure Desktop</a>' trojan.</b><br/>
  126. The Cisco <tt>hostscan</tt> tool seems to download and interpret a manifest file from the server and send back results based on the "questions" therein. A native implementation of this would be useful.</li>
  127. <li><b>GUI for OS X, perhaps based on <a href="https://tunnelblick.net/">Tunnelblick</a>.</b></li>
  128. <li><b>Full Android keystore support.</b><br/>
  129. OpenConnect's support for the Android keystore predates the Android keystore actually doing anything useful. We assume we can just ask for the private key and be given it. A real keystore would only allow us to perform signature operations using the key, and wouldn't just give it to us. Modern versions of Android can support this, and we should add support for it.</li>
  130. <li><b>Mac OS X keychain support.</b><br/>
  131. Likewise, using keys stored in the OS X keychain would be extremely useful.</li>
  132. </ul>
  133. <h2>Simplify OpenConnect's approach to interacting with external scripts and program</h2>
  134. Currently we have a vast proliferation of slightly different interfaces for OpenConnect to call scripts with slightly different interfaces, despite serving similar purposes.
  135. <h3>Routing and DNS configuration</h3>
  136. <ul>
  137. <li><a href="https://gitlab.com/openconnect/vpnc-scripts">vpnc-script and vpnc-script-win.js</a>
  138. handle this in a <i>relatively</i> uniform cross-protocol way, but there are still bugs tied to
  139. historical assumptions based on the Cisco AnyConnect protocol (e.g. <a
  140. href="https://gitlab.com/openconnect/openconnect/-/commit/a2b8134edf8e5f8e942dedf105e2813a0824b919">a2b8134e</a>
  141. and <a href="https://gitlab.com/openconnect/openconnect/-/issues/433">#433</a>).</li>
  142. <li>Need ways to <b>test</b> these scripts on operating systems other than Linux.</li>
  143. </ul>
  144. <h3>Trojans / security scanners</h3>
  145. <ul>
  146. <li>Cisco <a href="csd.html">CSD</a>. Historically, this involved running a black-box binary provided by the server, then running it with a wrapper, and now running a "wrapper" script that doesn't
  147. actually invoke the binary at all but just emulates its behavior and output. For backwards-compatibility with the binary version, the script receives <b>input</b> via a mixture of CLI args and
  148. environment variables. It connects to the VPN server independently from the main client process. It doesn't actually return any meaningful <b>output</b>. Instead, the main client process must
  149. continue running in the background, reloading a "wait" URL in a loop, until the server's response to that wait URL indicates that the CSD process has completed successfully.</li>
  150. <li>Juniper/Pulse <a href="tncc.html">TNCC (Host Checker)</a>. Historically, this involved running a black-box Java binary provided by the server, now a "wrapper" script that emulate's the binary's
  151. behavior. The script receives <b>input</b> via a mixture of environment variables and standard input. It connects to the VPN server independently from the main client process, receives a token,
  152. and pipes its <b>output</b> back to the main client process.</li>
  153. <li>GlobalProtect <a href="hip.html">HIP</a>. The script receives <b>input</b> via a mixture of command-line arguments and environment variables (due to a mistaken attempt to closely copy the
  154. interface of CSD). The script does not communicate independently with the VPN server. It merely generates a blob of XML, and pipes that <b>output</b> back to the main client process.</li>
  155. </ul>
  156. <h3>External/SAML/SSO authentication scripts</h3>
  157. <p>Most VPN protocols have some authentication modes which OpenConnect cannot handle on its own using its usual techniques of creating and submitting authentication forms from server-provided data (or
  158. screen-scraping). These essentially require running a full web browser environment, due to requiring JavaScript or browser plugins for the authentication to complete.</p>
  159. <p>The individual VPN protocols vary substantially in how the VPN client is expected to communicate with the web browser doing the authentication:</p>
  160. <ul>
  161. <li>Cisco HPKE: the VPN client launches a browser with the URL for the SSO entry point. When the authentication is complete, the browser redirects to an HTTP GET of
  162. <tt>http://localhost:29786/...</tt>. This means the client has to run its own HTTP <b>server</b> in order to capture the output.</li>
  163. <li>GlobalProtect SAML: the VPN client either launches a browser with either (a) the URL for the SSO entry point (<tt>saml-auth-method=REDIRECT</tt>) or (b) an HTML page containing the SSO entry
  164. point (<tt>saml-auth-method=POST</tt>). The authentication is complete when the browser opens a page containing special HTTP headers. This means that the <b>browser</b> has to be specially instrumented
  165. in order to capture the output.</li>
  166. <li>Juniper, Pulse, F5, Fortinet: needs discovery documentation</li>
  167. </ul>
  168. <p>The <tt>open_webview</tt> hook needs implementing for Qt/KDE and Windows GUIs.</p>
  169. <p>The webview/external-browser options and API functions should perhaps be renamed to something like "external auth handler",
  170. since one of the goals and strong points of OpenConnect is to make VPN login interfaces scriptable without relying on a
  171. graphical browser in many cases.</p>
  172. </p>
  173. <INCLUDE file="inc/footer.tmpl" />
  174. </PAGE>