Skip to content

[feature] report.ssh_key() formatting in Hosts #1818

@KS-7250

Description

@KS-7250

Is your feature request related to a problem? Please describe.

  • Using report.ssh_key() for private keys in my tome grab_sshkeys always displays it in the hosts tab with no wrapping, causing it to go way off the screen when hidden. I have to scroll all the way to the right just to click the unhide button.

Used with (sample):

content = file.read("/root/.ssh/id_rsa")
report.ssh_key("root", content)
Image
  • Additionally, when viewed, it's not formatted in a generic private ssh key manner. When you copy+paste it into vim for example, it comes out all together separated by spaces instead of in a normal ssh key format. This forces the end user to split it by spaces and format the key themselves, costing time when grabbing many ssh private keys. I shouldn't have to do a bunch of .split()s and string manip to get a key that I can copy from Realm's Hosts tab.
Image
  • When pasted into vim:
Image

Describe the solution you'd like

  1. Wrapping for the Secret tab in Hosts whether content is shown or hidden by asterisks.
  2. Support for formatting ssh keys, whether it be a separate function in eldritch or automatically.
  3. Should be a copy button for credentials that copies them in a way that they can be pasted into a terminal. (ex. pasting an ssh key into vim for use)

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions