-
Notifications
You must be signed in to change notification settings - Fork 63
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
!var:directory #181
Comments
Hey @OJFord , As to your issue here, I do understand your need here but sadly I think the difficulty of implementing such a feature is beyond reasonable viability within the current architecture. The reason I say all this is due to the interaction boundary between
Since the plaintext interaction occurs in
As you can see, it's a very complex implementation issue for seemingly an innocuous change. To properly solve this use case for you, the first step that would have to be done is re-architecting the communication protocol between I will let someone else from the team comment on this too but I do not believe that we can realistically solve this with the current developer resources for the foreseeable future. Srdjan |
Published in CyberArk Aha! idea portal |
This is already doable with: -D 'var=value' causes substitution of value to $var. You can use the same secrets.yml file for different environments, using -D to substitute variables. This flag can be used multiple times. Example summon -D ENV=production --yaml 'SQL_PASSWORD: !var env/$ENV/db-password' deploy.sh |
That's not the same, your |
Is your feature request related to a problem? Please describe
Essentially the same problem
!var:file
solves (which is fantastic) but for a directory.Describe the solution you would like
Whether this works (and how) is probably provider-specific, but I'm familiar with (go)pass, which already uses a directory structure, for example my GitHub password might be in
pass show passwords/web/github
.Using the same example, I'd like to be able to
summon --yaml 'WEB_PASSWORDS: !var:dir passwords/web' ls '$WEB_PASSWORDS'
:Describe alternatives you have considered
I suppose the only alternative is multiple vars and a wrapper script, which would need updating every time the (number or name of) files within the directory changed.
Additional context
The text was updated successfully, but these errors were encountered: