Skip to content

Add SSH key pair management tasks - #44

Open
paulotruta wants to merge 1 commit into
mainfrom
feature/ssh-key-management
Open

Add SSH key pair management tasks#44
paulotruta wants to merge 1 commit into
mainfrom
feature/ssh-key-management

Conversation

@paulotruta

Copy link
Copy Markdown
Member

Summary

Adds three new task types to enable direct SSH access to an Edgebox instance:

  • generate_ssh_key — creates an ED25519 key pair via ssh-keygen, installs the public key in /root/.ssh/authorized_keys, and stores SSH_PUBLIC_KEY, SSH_PRIVATE_KEY, and SSH_KEY_FINGERPRINT in the shared option table.
  • get_ssh_key — reads the stored SSH key pair from the option table (generates on demand if missing).
  • revoke_ssh_key — deletes the key pair from disk, removes the public key from authorized_keys, and clears the SSH options from the database.

Why

Direct SSH access complements the existing web shell and browser dev environment by giving advanced users a persistent, scriptable terminal session. The dashboard (api repo) surfaces these tasks in the Settings page.

Test plan

  • Triggered generate_ssh_key via the dashboard and verified keys are created on disk and in the option table.
  • Triggered revoke_ssh_key and verified keys are removed from disk, authorized_keys, and the option table.
  • Confirmed the dashboard Settings page displays the active key, fingerprint, and connection instructions.

Add generate_ssh_key, get_ssh_key, and revoke_ssh_key task types to
enable direct SSH access to an Edgebox instance. The generate task
creates an ED25519 key pair, installs the public key in authorized_keys,
and stores both keys plus the fingerprint in the option table. The
revoke task removes the key pair from disk, purges it from
authorized_keys, and clears the stored options.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant