8000 fix: substitution variable format interferes with provider key resolution · Issue #104 · cyberark/summon · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
fix: substitution variable format interferes with provider key resolution #104
Open
@doodlesbykumbi

Description

@doodlesbykumbi

Currently if a substring in the "secret identifier" is perceived as a substitution variable AND is not declared then Summon throws an error. This has the disastrous effect of preventing providers that accept substrings prepended with $ from ever being run.

This issue follows from @jepperson2's comment at cyberark/summon-aws-secrets#6 (comment)

For example, a secrets.yml like this one fails:

MY_SECRET1: !var fakeSecret#$temp
MY_SECRET2: !var fakeSecret##temp
MY_SECRET3: !var fakeSecret#temp#
MY_SECRET4: !var fakeSecret#te#mp

Because MY_SECRET1 has a '$' in it, it is being parsed as though a corresponding -D temp=... should be passed to the summon command. The error I'm getting is from here: https://github.com/cyberark/summon/blob/master/secretsyml/secretsyml.go#L192

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0