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

Add end to end encryption #223

Merged

Commits on Jan 21, 2022

  1. Create secutil package

    yunkon-kim committed Jan 21, 2022
    Configuration menu
    Copy the full SHA
    f623dee View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    ec1fc24 View commit details
    Browse the repository at this point in the history

Commits on Jan 24, 2022

  1. Configuration menu
    Copy the full SHA
    2843f0b View commit details
    Browse the repository at this point in the history
  2. Add secret exchange and update mechanism

    - Add etcd key for secret exchange
    - Add keyring and keyring mutex to mange the other hosts' secret
    - Add UpdateKeyring() and GetKey() for an agent to use this
    - Add watchSecret() to dynamically update changes on other hosts' secret
    - Add compareAndSwapSecret() to chceck and upate the host's secret
    yunkon-kim committed Jan 24, 2022
    Configuration menu
    Copy the full SHA
    35b4d24 View commit details
    Browse the repository at this point in the history
  3. Encrypt and decrypt messages between hosts (agents)

    - Encrypt a message by the corresponding host's public key before sending
    - Decrypt a message by the private key after receiving
    yunkon-kim committed Jan 24, 2022
    Configuration menu
    Copy the full SHA
    456ea2b View commit details
    Browse the repository at this point in the history
  4. Test and debug the end-to-end encryption

    - Funtionize decapsulate() and encapsulate() to reduce complexity
    - Create directory or folder if not exist
    - Add logging to secutil
    - Fix invalid MarshalPKCS8PrivateKey() to MarshalPKIXPublicKey()
    - Fix wrong path parameter of LoadPublicKeyFromFile()
    - Fix etcd key to watch the other hosts' secret
    - Ignore secret files
    - Do lint
    yunkon-kim committed Jan 24, 2022
    Configuration menu
    Copy the full SHA
    296f581 View commit details
    Browse the repository at this point in the history

Commits on Jan 25, 2022

  1. Encrypt and decrypt packets by condition

    - Add condition to encrypt and decrypt packets
    - Display bytes length before and after encryption
    yunkon-kim committed Jan 25, 2022
    Configuration menu
    Copy the full SHA
    fe2da03 View commit details
    Browse the repository at this point in the history