Add SSH key pair management to Settings dashboard - #83
Open
paulotruta wants to merge 1 commit into
Open
Conversation
Add a new SSH Key Access section to the Settings page that lets users generate, download, regenerate, and revoke an ED25519 key pair for direct SSH access to the Edgebox instance. - TaskFactory: GENERATE_SSH_KEY, GET_SSH_KEY, REVOKE_SSH_KEY constants and factory methods. - SettingsController: new actions wired into ALLOWED_ACTIONS, SSH key options read in index(), and a downloadPrivateKey route that serves the private key as an attachment. - HomeController: action descriptions and icons for the three SSH task types so they render correctly in the Actions overview. - settings/index.html.twig: SSH section with download button, macOS/ Linux and Windows connection instructions, and an Advanced panel with the public key, fingerprint, connection command, and regenerate/ revoke controls. - settings/action.html.twig: status messages for the SSH actions.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a new SSH Key Access section to the Settings page so users can manage direct SSH access to their Edgebox instance from the dashboard.
What's included
GENERATE_SSH_KEY,GET_SSH_KEY,REVOKE_SSH_KEYconstants and factory methods.ALLOWED_ACTIONS/ACTION_CONTROLLER_TITLES, SSH key options read inindex(), and adownloadPrivateKeyroute that serves the private key as a downloadableid_ed25519attachment.generate_ssh_key,revoke_ssh_key, andget_ssh_keyactions.Why
Direct SSH access complements the existing web shell and browser dev environment by giving advanced users a persistent, scriptable terminal session. This PR is the dashboard half — the
edgeboxctlhalf is edgebox-iot/edgeboxctl#44.Test plan
id_ed25519.