Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Various fixes and improvements to the web components #837

Merged
merged 10 commits into from
Jan 19, 2022

Commits on Jan 18, 2022

  1. web_util, verifier: move mTLS SSLContext generation into separate module

    The code is shared between registrar and verifier.
    
    Signed-off-by: Thore Sommer <mail@thson.de>
    THS-on committed Jan 18, 2022
    Configuration menu
    Copy the full SHA
    d999d37 View commit details
    Browse the repository at this point in the history
  2. tornado_requests: cleanup TornadoResponse class

    tornado_response was renamed to TornadoResponse.
    
    The json and yaml methods were removed because they were unsed.
    
    Signed-off-by: Thore Sommer <mail@thson.de>
    THS-on committed Jan 18, 2022
    Configuration menu
    Copy the full SHA
    667093c View commit details
    Browse the repository at this point in the history
  3. verifier: fix failure generation for V key

    The response object might not have error as a member.
    
    Signed-off-by: Thore Sommer <mail@thson.de>
    THS-on committed Jan 18, 2022
    Configuration menu
    Copy the full SHA
    f3ed24e View commit details
    Browse the repository at this point in the history
  4. web_util: move echo_json_response(..) out of config.py

    This functions is not required for the Keylime configuration, so it is
    moved into the web_util module.
    
    Signed-off-by: Thore Sommer <mail@thson.de>
    THS-on committed Jan 18, 2022
    Configuration menu
    Copy the full SHA
    5068dc3 View commit details
    Browse the repository at this point in the history
  5. registrar: cleanup start function

    Removed busy waiting for the threads and removed abstractions for starting
    and stopping threads/servers.
    
    Signed-off-by: Thore Sommer <mail@thson.de>
    THS-on committed Jan 18, 2022
    Configuration menu
    Copy the full SHA
    11d61dd View commit details
    Browse the repository at this point in the history

Commits on Jan 19, 2022

  1. agent: improve startup and shutdown

    The revocation notifier is now started in a separate process and shutdown
    is now handled a signal handler.
    
    Signed-off-by: Thore Sommer <mail@thson.de>
    THS-on committed Jan 19, 2022
    Configuration menu
    Copy the full SHA
    117b4c5 View commit details
    Browse the repository at this point in the history
  2. verifier: Also retry on HTTP 500 status code

    A timeout might cause a HTTP 500 response.
    
    Signed-off-by: Thore Sommer <mail@thson.de>
    THS-on committed Jan 19, 2022
    Configuration menu
    Copy the full SHA
    9171e9a View commit details
    Browse the repository at this point in the history
  3. config, web_util: move get_restful_params(..) to web_util

    Signed-off-by: Thore Sommer <mail@thson.de>
    THS-on committed Jan 19, 2022
    Configuration menu
    Copy the full SHA
    b98dfb4 View commit details
    Browse the repository at this point in the history
  4. tests: add initial tests for web_util module

    Signed-off-by: Thore Sommer <mail@thson.de>
    THS-on committed Jan 19, 2022
    Configuration menu
    Copy the full SHA
    d2d3434 View commit details
    Browse the repository at this point in the history
  5. agent: fix payload execution

    The payload thread is now marked as a daemon, so that it is terminated
    correctly on shutdown.
    
    Fixed that the logging of the process caused an infinity loop.
    
    Signed-off-by: Thore Sommer <mail@thson.de>
    THS-on committed Jan 19, 2022
    Configuration menu
    Copy the full SHA
    263b5e4 View commit details
    Browse the repository at this point in the history