Skip to content
This repository has been archived by the owner on Jun 2, 2022. It is now read-only.

Can't edit a secret file #4

Closed
ursuad opened this issue May 30, 2017 · 4 comments
Closed

Can't edit a secret file #4

ursuad opened this issue May 30, 2017 · 4 comments

Comments

@ursuad
Copy link

ursuad commented May 30, 2017

Symptoms
When I try to edit a secret file, I receive an error:

$ helm secrets edit dp-apache-drill/secrets.yaml
Could not create temporary file: open /var/folders/bl/sr0tdr1s3wzdn0mzwkq846l9fg7039/T/782685853: is a directory
Error: plugin "secrets" exited with error

Plugin Version

$ helm plugin list
NAME   	VERSION	DESCRIPTION
secrets	1.1.2  	This plugin provides secrets values encryption for Helm charts secure storing

Platform
macOS Sierra 10.12.5

More information
Running the script with debug enabled:

$ helm secrets edit dp-apache-drill/secrets.yaml
+ [[ 2 -lt 1 ]]
+ case "${1:-"help"}" in
+ :
+ [[ 2 -lt 2 ]]
+ edit dp-apache-drill/secrets.yaml
+ type vim
+ chart=dp-apache-drill/secrets.yaml
+ vars_load dp-apache-drill/secrets.yaml
+ export templates_dir=dp-apache-drill/secrets.yaml
+ templates_dir=dp-apache-drill/secrets.yaml
+ [[ -f dp-apache-drill/secrets.yaml/templates/secrets.yaml ]]
+ [[ -f dp-apache-drill/secrets.yaml/secrets.yml ]]
+ [[ -f dp-apache-drill/secrets.yaml ]]
+ export yml=dp-apache-drill/secrets.yaml
+ yml=dp-apache-drill/secrets.yaml
+ edit_helper
+ file dp-apache-drill/secrets.yaml
+ sops_config
+ DEC_SUFFIX=.dec
+ SOPS_CONF_FILE=.sops.yaml
++ which dp-apache-drill/secrets.yaml
+ sops ''
Could not create temporary file: open /var/folders/bl/sr0tdr1s3wzdn0mzwkq846l9fg7039/T/296699382: is a directory
Error: plugin "secrets" exited with error
@swladyka
Copy link

It's a known bug as far as I know, please temporarily try out the following command: 'sops '

@swladyka
Copy link

sops path_to_secret

@ursuad
Copy link
Author

ursuad commented May 31, 2017

Won't this ( #5 ) address this issue, or is there a use case I didn't consider?

Testing locally seems to be working.

@szibis
Copy link
Contributor

szibis commented Jun 19, 2017

This fixing this #10 with all issues with the console.

Please confirm is these issues exist right now with latest v1.2.1

@szibis szibis closed this as completed Jun 26, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants