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

Support for SSH Agent Settings #192

Open
mxcd opened this issue Mar 16, 2020 · 1 comment
Open

Support for SSH Agent Settings #192

mxcd opened this issue Mar 16, 2020 · 1 comment

Comments

@mxcd
Copy link

mxcd commented Mar 16, 2020

As of now it is not possible to programmatically edit the SSH Agent settings and e.g. make an attachment a SSH Key

image

@Evidlo
Copy link
Member

Evidlo commented Apr 26, 2020

I've not used KeeAgent before, but I did some poking and the information is stored as an attachment on the Entry.

In [49]: e                                                                                                          
Out[49]: Entry: "goobar_entry (None)"

In [50]: settings = etree.fromstring(kp.find_attachments(element=e, filename='KeeAgent.settings', recursive=False, f
    ...: irst=True).data)                                                                                           

In [51]: print(etree.tostring(settings).decode('utf8'))                                                             
<EntrySettings xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <AllowUseOfSshKey>false</AllowUseOfSshKey>
  <AddAtDatabaseOpen>false</AddAtDatabaseOpen>
  <RemoveAtDatabaseClose>false</RemoveAtDatabaseClose>
  <UseConfirmConstraintWhenAdding>false</UseConfirmConstraintWhenAdding>
  <UseLifetimeConstraintWhenAdding>false</UseLifetimeConstraintWhenAdding>
  <LifetimeConstraintDuration>600</LifetimeConstraintDuration>
  <Location>
    <SelectedType>attachment</SelectedType>
    <AttachmentName>remarkable</AttachmentName>
    <SaveAttachmentToTempFile>false</SaveAttachmentToTempFile>
    <FileName>/home/evan/.ssh/remarkable</FileName>
  </Location>
</EntrySettings>

This isn't part of the KeePass spec, so there needs to be some discussion on how we would break this into api.

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

No branches or pull requests

2 participants