Skip to content

Executor host key file #160

Open
Open
@Metallion

Description

@Metallion

Problem

The openvdc console command connects via ssh to an executor node which then in turn connects an instance's console. The problem is executor's host key is generated on startup. That means if the executor is restarted, there will be a problem with the client's known_hosts file.

Solution

  • Keep the executor host key somewhere under /etc/openvdc
  • If the key is not present, generate it on executor startup.
  • After generation, the key should be written to its proper path under /etc/openvdc
  • Key generation should be done in go. We don't want to use Linux commands because we might run executor on Windows in the future.

The pem package can be used to handle private key pem files.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions