1. 02 Nov, 2020 1 commit
  2. 24 Oct, 2020 1 commit
    • Julien Prigent's avatar
      When disconnecting the client, we have to cancel the uaclient _publish_task. · 9925e7d0
      Julien Prigent authored
      If we don't, this can prevent reconnection since the task is still running, and the previous task instance could be hanging on a previous request that has never completed (i.e network issue).
      
      Yes, there's no timeout on request coming from the publish_loop, so we
      must ensure the publish_task is always cancelled. Hence, the
      uaclient.close_session is always called on disconnect.
      9925e7d0
  3. 17 Oct, 2020 3 commits
  4. 16 Oct, 2020 1 commit
  5. 12 Oct, 2020 2 commits
    • Julien Prigent's avatar
      [ Security ] Password encoding bug and typing adjustement · d88ead00
      Julien Prigent authored
      String are immutable, therefore the password is never encoded and it
      throws this error when it's a string:
      
      ```
      ...../cryptography/hazmat/backends/openssl/backend.py in _load_key(self, openssl_read_func, convert_func, data, password)
         1284         userdata = self._ffi.new("CRYPTOGRAPHY_PASSWORD_DATA *")
         1285         if password is not None:
      -> 1286             utils._check_byteslike("password", password)
         1287             password_ptr = self._ffi.from_buffer(password)
         1288             userdata.password = password_ptr
      
      ...../cryptography/utils.py in _check_byteslike(name, value)
           36         memoryview(value)
           37     except TypeError:
      ---> 38         raise TypeError("{} must be bytes-like".format(name))
           39
           40
      
      TypeError: password must be bytes-like
      ```
      
      This patch fixes this as well as some typing inaccuracy introduced by #281
      d88ead00
    • Julien Prigent's avatar
      [ UaCrypto ] missing InvalidSignature import · 785b8fcc
      Julien Prigent authored
      This has apparently been mistakenly removed [by this
      commit](https://github.com/FreeOpcUa/opcua-asyncio/commit/234008be689901ba2f9d32606944474a61f84801#diff-0ccb06a6a30b67aafbe098c395870604R4)
      
      And it's still required by
      [security_policies](https://github.com/FreeOpcUa/opcua-asyncio/blob/master/asyncua/crypto/security_policies.py#L287)
      
      Related issue found: https://github.com/FreeOpcUa/opcua-asyncio/issues/195
      
      Before patch:
      ```
      In [2]: from asyncua.crypto import uacrypto
      In [3]: raise uacrypto.InvalidSignature
      ---------------------------------------------------------------------------
      AttributeError                            Traceback (most recent call last)
      <ipython-input-3-93aef37181e3> in <module>
      ----> 1 raise uacrypto.InvalidSignature
      
      AttributeError: module 'asyncua.crypto.uacrypto' has no attribute 'InvalidSignature'
      ```
      
      After:
      ```
      In [2]: from asyncua.crypto import uacrypto
      In [3]: raise uacrypto.InvalidSignature
      ---------------------------------------------------------------------------
      InvalidSignature                          Traceback (most recent call last)
      <ipython-input-13-93aef37181e3> in <module>
      ----> 1 raise uacrypto.InvalidSignature
      
      InvalidSignature:
      
      AttributeError: module 'asyncua.crypto.uacrypto' has no attribute 'InvalidSignature'
      ```
      785b8fcc
  6. 28 Sep, 2020 3 commits
  7. 25 Sep, 2020 2 commits
  8. 22 Sep, 2020 1 commit
  9. 18 Sep, 2020 5 commits
  10. 11 Sep, 2020 1 commit
    • starturtle's avatar
      Update client.py · c9c998f9
      starturtle authored
      make the detailed policy ID match the signature algorithm and its other implications.
      c9c998f9
  11. 05 Sep, 2020 1 commit
  12. 02 Sep, 2020 2 commits
  13. 25 Aug, 2020 3 commits
    • Andreas Heine's avatar
      Update server-callback.py · e6146e86
      Andreas Heine authored
      e6146e86
    • oroulet's avatar
      fix typo in cmd test · 13a17153
      oroulet authored
      13a17153
    • JoeyFaulkner's avatar
      write callbacks and user metadata attaching to server callbacks (#229) · a47c1d0f
      JoeyFaulkner authored
      * getting started
      
      * remove ridiculous change to generated code
      
      * remove ridiculous change to generated code
      
      * checkpoint
      
      * another checkpoint
      
      * found the error, tests now pass
      
      * improve error when person with incorrect credentials tries to connect
      
      * add better error handling for when a user does something they aren't permitted to do
      
      * pass tests
      
      * add tests for simple permissions
      
      * add third certificate and some documentation
      
      * clean up pull request
      
      * remove pointless import
      
      * hopefully pass tests
      
      * add write subscribe option and tests
      
      * implement changes requested
      
      * add dataclasses to requirements for python 3.6
      
      * put dataclasses in the travis file instead of the dev_requirements.txt
      
      * implement user manager in iserver instead of using the certificate handler
      
      * uncomment some code
      
      * add permissions=None to base security policy object
      
      * pass crypto connect tests
      
      * fix tests
      
      * hopefully pass all the tests now
      
      * actually pass tests this time
      
      * add user to write callback
      
      * allow callbacks to be asynchronous
      
      * remove certificate handler and deal with permissions exclusively with CertificateUserManager
      
      * remove commented out code
      
      * add ability to find endpoints for unauthenticated user
      
      * add pytest mock to travis file
      
      * try to make the file less complex to pass tests
      
      * add pytest mocking to setup.py tests_require
      
      * rename callback dispatcher to callback service
      
      * implement 2/3 changes requested
      
      * fix tests
      
      * add callbacks before write and before/after read
      
      * fix callback tests (i think)
      a47c1d0f
  14. 22 Aug, 2020 1 commit
  15. 21 Aug, 2020 1 commit
  16. 19 Aug, 2020 1 commit
  17. 11 Aug, 2020 11 commits