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

Feature: Allow User to control their VM #124

Merged
merged 34 commits into from
Jul 5, 2024
Merged

Feature: Allow User to control their VM #124

merged 34 commits into from
Jul 5, 2024

Commits on Jun 19, 2024

  1. Feature: VmClient

    1yam committed Jun 19, 2024
    Configuration menu
    Copy the full SHA
    f771d21 View commit details
    Browse the repository at this point in the history
  2. Fix: Protocol (http/https) should not be hardcoded.

    One place hardcoded `http://`, the other one `https://`.
    hoh authored and 1yam committed Jun 19, 2024
    Configuration menu
    Copy the full SHA
    ac78d53 View commit details
    Browse the repository at this point in the history
  3. Fix: There was no test for notify_allocation().

    hoh authored and 1yam committed Jun 19, 2024
    Configuration menu
    Copy the full SHA
    5672776 View commit details
    Browse the repository at this point in the history
  4. WIP: Copy authentication functions from aleph-vm

    hoh authored and 1yam committed Jun 19, 2024
    Configuration menu
    Copy the full SHA
    301814a View commit details
    Browse the repository at this point in the history
  5. Fix: vm client sessions wasn't close + authentifications for test wil…

    …l use localhost as domain
    1yam committed Jun 19, 2024
    Configuration menu
    Copy the full SHA
    9abb642 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    6860015 View commit details
    Browse the repository at this point in the history
  7. Refactor: logs didn't need to generate full header

    Fix: extracts domain from node url instead of sending url
    
    Fix: using vmclient sessions in get_logs instead of creating new one
    1yam committed Jun 19, 2024
    Configuration menu
    Copy the full SHA
    52faf6e View commit details
    Browse the repository at this point in the history
  8. Add: get_logs test

    1yam committed Jun 19, 2024
    Configuration menu
    Copy the full SHA
    328e087 View commit details
    Browse the repository at this point in the history
  9. Fix: black in aleph_vm_authentification.py

    fix: isort issue
    
    Fix: mypy issue
    
    Fix: black
    
    Fix: isort
    1yam committed Jun 19, 2024
    Configuration menu
    Copy the full SHA
    5c61b9b View commit details
    Browse the repository at this point in the history
  10. Fix: fully remove _generate_header call in get_logs

    Fix
    
    Fix: using real path server instead of fake server for test
    
    Fix: create playload
    1yam committed Jun 19, 2024
    Configuration menu
    Copy the full SHA
    a30f690 View commit details
    Browse the repository at this point in the history
  11. Fix: black issue

    1yam committed Jun 19, 2024
    Configuration menu
    Copy the full SHA
    fa998ae View commit details
    Browse the repository at this point in the history

Commits on Jun 20, 2024

  1. Fix: test fix workflow

    1yam committed Jun 20, 2024
    Configuration menu
    Copy the full SHA
    49c81b5 View commit details
    Browse the repository at this point in the history

Commits on Jun 27, 2024

  1. Configuration menu
    Copy the full SHA
    149778b View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    017bf01 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    7ec6c42 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    93dbb22 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    f93f202 View commit details
    Browse the repository at this point in the history
  6. style: run linting:fmt

    Psycojoker authored and 1yam committed Jun 27, 2024
    Configuration menu
    Copy the full SHA
    3abcf36 View commit details
    Browse the repository at this point in the history
  7. Fix: Required an old version of aleph-message

    hoh authored and 1yam committed Jun 27, 2024
    Configuration menu
    Copy the full SHA
    ca16c5a View commit details
    Browse the repository at this point in the history
  8. Fix: Newer aleph-message requires InstanceEnvironment

    Else tests were breaking.
    hoh authored and 1yam committed Jun 27, 2024
    Configuration menu
    Copy the full SHA
    5162096 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    65a0dfe View commit details
    Browse the repository at this point in the history
  10. Fix: Pythom 3.12 fails setup libsecp256k1

    When "using bundled libsecp256k1", the setup using `/tmp/venv/bin/hatch run testing:test` fails to proceed on Python 3.12.
    
    That library `secp256k1` has been unmaintained for more than 2 years now (0.14.0, Nov 6, 2021), and seems to not support Python 3.12.
    
    The error in the logs:
    ```
    File "/tmp/pip-build-env-ye8d6ort/overlay/lib/python3.12/site-packages/setuptools/_distutils/dist.py", line 862, in get_command_obj
     cmd_obj = self.command_obj[command] = klass(self)
                                                    ^^^^^^^^^^^
          TypeError: 'NoneType' object is not callable
          [end of output]
    ```
    
    See failing CI run:
    https://github.com/aleph-im/aleph-sdk-python/actions/runs/9613634583/job/26516767722
    hoh authored and 1yam committed Jun 27, 2024
    Configuration menu
    Copy the full SHA
    225b42a View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    93bffa9 View commit details
    Browse the repository at this point in the history

Commits on Jun 28, 2024

  1. Configuration menu
    Copy the full SHA
    b53505d View commit details
    Browse the repository at this point in the history
  2. Fix: linting issue

    1yam committed Jun 28, 2024
    Configuration menu
    Copy the full SHA
    3c66af0 View commit details
    Browse the repository at this point in the history
  3. Fix: mypy issue

    1yam committed Jun 28, 2024
    Configuration menu
    Copy the full SHA
    0c62cd5 View commit details
    Browse the repository at this point in the history
  4. fix: black

    1yam committed Jun 28, 2024
    Configuration menu
    Copy the full SHA
    0fab7c3 View commit details
    Browse the repository at this point in the history

Commits on Jul 2, 2024

  1. Configuration menu
    Copy the full SHA
    5380da5 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    fc1e6af View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    2f180e3 View commit details
    Browse the repository at this point in the history

Commits on Jul 3, 2024

  1. fix: debug code remove

    1yam committed Jul 3, 2024
    Configuration menu
    Copy the full SHA
    d271038 View commit details
    Browse the repository at this point in the history

Commits on Jul 4, 2024

  1. Update vmclient.py

    Co-authored-by: Olivier Le Thanh Duong <[email protected]>
    1yam and olethanh authored Jul 4, 2024
    Configuration menu
    Copy the full SHA
    5e88161 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    d9b1892 View commit details
    Browse the repository at this point in the history
  3. Implement VmConfidentialClient class (#138)

    * Problem: A user cannot initialize an already created confidential VM.
    
    Solution: Implement `VmConfidentialClient` class to be able to initialize and interact with confidential VMs.
    
    * Problem: Auth was not working
    
    Corrections:
     *  Measurement type returned was missing field needed for validation of measurements
     * Port number was not handled correctly in authentifaction
     * Adapt to new auth protocol where domain is moved to the operation field (While keeping compat with the old format)
     * Get measurement was not working since signed with the wrong method
     * inject_secret was not sending a json
     * Websocked auth was sending a twice serialized json
     * update 'vendorized' aleph-vm auth file from source
    
    Co-authored-by: Olivier Le Thanh Duong <[email protected]>
    nesitor and olethanh authored Jul 4, 2024
    Configuration menu
    Copy the full SHA
    247dbfc View commit details
    Browse the repository at this point in the history