Jump to content
Askriz

API access to app as Ansible plugin

Recommended Posts

Hey guys,

I'm using Ansible to deploy some services, and inside the config some variables are encrypted using Ansible Vault. Usually I need to copy-paste the password from Enpass to the terminal when Ansible asks for the password, but it also supports passing a path to an executable file that should print the password to stdout so that it can access for example the system keyring. Since you haven't published any official API documentation on how to talk to the desktop app, I've written a small script that mimics the browser extension's behavior and talks to the desktop app. With this implemented, whenever Ansible needs my password and my database is locked, the usual popup appears. Otherwise, it automatically fetches the password given some specific url. Now, since you have not published any API docs, is it fine to write apps that use the internal API? Do you have any objections as for making my small client public on github?

 

Best

  • Like 1

Share this post


Link to post
Share on other sites

On that topic, a general quick query would be great for more than just Ansible.  I am also curious about this kind of thing (query vSphere password for automation scripts).  If the Devs are OK with this, I'd use it!

Share this post


Link to post
Share on other sites

@computergeek125 My script worked with Enpass 5. I haven't fixed it to work with Enpass 6 yet - the communication changed quite a bit. I would also like any of the devs' response here before sharing anything.

Edited by Askriz

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...