1. 10 Aug, 2011 4 commits
  2. 09 Aug, 2011 1 commit
  3. 03 Aug, 2011 2 commits
  4. 01 Aug, 2011 10 commits
  5. 29 Jul, 2011 5 commits
    • Lucas Carvalho's avatar
      Fixed the test. · cba740a0
      Lucas Carvalho authored
      This test must prove that when the signature_certificate_file_list
      has a path to the file system and urls, the file system path has high
      priority over the urls.
      cba740a0
    • Lucas Carvalho's avatar
      NetworkcacheClient must use libconnection · f2ed2e68
      Lucas Carvalho authored
      To download contents in a correct way, it must use the
      libnetworkcache.
      f2ed2e68
    • Lucas Carvalho's avatar
      Moved the method parseUrl to a utils file. · 00e24d33
      Lucas Carvalho authored
      This file must provide all the utils function, to avoid duplicating
      code.
      00e24d33
    • Lucas Carvalho's avatar
      Added utils file. · 3b4bc05a
      Lucas Carvalho authored
      This file must provide all the utils function, to avoid duplicating
      code.
      3b4bc05a
    • Lucas Carvalho's avatar
      Created a new library libconnection. · a6be7424
      Lucas Carvalho authored
      This library aims to handle all the possibles way to do a GET to an http
      server.
      
      So, it must contains all the code related to HTTP calls to avoid to
      polute the NetworkcacheClient class with this kind of code.
      
      The NetworkcacheClient should use this library to download any kind of
      file which is necessary.
      
      Using this library NetworkcacheClient must be able to:
       - download a file under HTTP without authentication
       - download a file under HTTP with basic authentication
       - download a file under HTTPS CA (Certificate Authority)
       - download a file under HTTPS CA with basic authentication
       - download a file under HTTPS with Certification Authentication
      
      So currently, this library only provides a way to:
        - download a file under HTTPS CA (Certificate Authority)
        - download a file under HTTPS CA with basic authentication
      
      (work in progress)
      a6be7424
  6. 27 Jul, 2011 1 commit
  7. 22 Jul, 2011 2 commits
  8. 21 Jul, 2011 9 commits
  9. 20 Jul, 2011 3 commits
    • Lucas Carvalho's avatar
      Allows to check multi trusted certificates. · 6376f720
      Lucas Carvalho authored
      Actually, the user can configure the buildout.cfg and set multiples
      certificates files.
      
      It means that libnetworkcache must be able to check if the signature
      which comes from shadir is trustable or not, based on these certificates.
      
      A given signature can not appear twice in the same directory-key, if it
      happens a DiretoryNotFound error must be raised.
      6376f720
    • Lucas Carvalho's avatar
      Added tests to signature.py. · c6f62c94
      Lucas Carvalho authored
      c6f62c94
    • Lucas Carvalho's avatar
      Renamed the parameters. · a4eed283
      Lucas Carvalho authored
      Renamed signature_public_file to signature_certificate_file, because the
      name is cleaner once the content of the file is a X509 certificate
      file. It is also known as Public Key Certificate.
      
      Renamed signature_private_file to signature_private_key_file, because
      the is is cleaner once the content of the file is a private RSA key.
      a4eed283
  10. 19 Jul, 2011 2 commits
    • Lucas Carvalho's avatar
      Updated setup.py with new dependencies. · 7bcff9e6
      Lucas Carvalho authored
      Actually, the slapos.libnetworkcache has new dependeincies because
      M2Cryto is required to handle the signatures inside NetworkcacheClient class
      and the argparse is required by signature.py script.
      7bcff9e6
    • Lucas Carvalho's avatar
      Added signature script. · 197d0c83
      Lucas Carvalho authored
      Now it is possible to create the signature files easily using the
      command generate-signature-key with the correct arguments.
      
      The command generate-signature-key works without any argument as well.
      
      To check the arguments you must run with the parameter --help/-h.
      
      It'll generate two file, one is a private key and the other is a
      X509 certificate file.
      
      Those files must be used by networkcache to play with signature.
      
      The private key is required to sign the message before uploading it to
      shadir. And the certification file is required to verify the signature.
      197d0c83
  11. 18 Jul, 2011 1 commit