intellij-ansible icon indicating copy to clipboard operation
intellij-ansible copied to clipboard

Feature Request: Support for Ansible-Vault

Open zkanda opened this issue 9 years ago • 21 comments

zkanda avatar Dec 11 '15 12:12 zkanda

Agree, support for vault would be fantastic: http://docs.ansible.com/ansible/playbooks_vault.html

dblockow avatar Jan 19 '16 00:01 dblockow

Well, how do you imagine typical workflow? Automatic decoding? Or option to preview encoded data?

vermut avatar Jan 19 '16 12:01 vermut

I can imagine two workflow

  • Creating and editing encrypted data
  • Editing existing encrypted data
  • Maybe Optional Storing of password? Not sure if this is a good practice, but ansible-vault can accept parameterized --vault-password-file=PASSWORD_FILE. Which you need to store in a file anyway.

zkanda avatar Jan 20 '16 01:01 zkanda

+1 (with ideas from Zkanda) And allow to define a (default) vault-password-file, which would be used to (on-the-fly) encrypt/decrypt all vault managed(/encrypted) files

lhoss avatar Feb 03 '16 13:02 lhoss

+1

foozmeat avatar Apr 07 '16 20:04 foozmeat

+1

beneshed avatar Jun 02 '16 08:06 beneshed

+1

voorth avatar Jun 03 '16 09:06 voorth

+1

zedekiah avatar Jun 22 '16 09:06 zedekiah

+1

jeffgrant avatar Jun 28 '16 02:06 jeffgrant

+1

jamesmmchugh avatar Jun 29 '16 12:06 jamesmmchugh

+1

redj45 avatar Jul 12 '16 14:07 redj45

I have a global password file defined in /etc/ansible

I would love to right-click a vault.yml file, Choose "Ansible Vault > Encrypt" and have it encrypted without copying the path and flipping back to bash. Same with Decrypt.

dcfsc avatar Jul 20 '16 15:07 dcfsc

Transparent encrypt/decrypt would be swell :+1:

luispabon avatar Sep 06 '16 09:09 luispabon

I haven't try, but here is a workaround https://iuliusathome.blogspot.ch/2016/08/intellij-ansible-vaults-and-windows.html

jtognazzi avatar Sep 23 '16 12:09 jtognazzi

I've done something similar to the above:

Prefs->Tools->External Tools->New

Name: Vault Edit Group: Ansible Program: parameters: edit $FileName$ working dir: $FileDir

script.sh:

#!/bin/sh

EDITOR=charm
ansible-vault --vault-password-file=<path to password file> "$@"

Assuming you have the pycharm cli tool installed this will open the decrypted vault in a new tab.

foozmeat avatar Oct 20 '16 20:10 foozmeat

+10

Ivru avatar Dec 16 '16 10:12 Ivru

+1. @vermut any update on this? would love to have it as well

nitay avatar May 19 '17 05:05 nitay

Hi! To begin with - I'd like to say "Thanks" for the solutions provided before :+1:

Vault opens successfully and... closes in less than second. When I add sleep to bash script - this works.

How to force ansible-vault to wait for "save" action from PHPStorm?

lbajsarowicz avatar Jul 25 '17 06:07 lbajsarowicz

+1 for built in support in the IDE.

smehan avatar Aug 10 '17 20:08 smehan

+1

maximsnezhkov avatar Nov 16 '17 04:11 maximsnezhkov

+1

advena avatar Feb 05 '18 14:02 advena