Skip to content

Secrets fail to be interpolated if there are spaces around the parentheses #2126

Closed

Description

@brownjohnf

Bug Report

If you include spaces around your secrets variable, it's ignored by concourse and inserted as a raw string. For example:

GITHUB_USERNAME: (( github-username ))

Will contain (( github-username )). If you remove the extra spaces, it interpolates correctly.

  • Concourse version: v3.8.0
  • Deployment type (BOSH/Docker/binary): binary
  • Infrastructure/IaaS: AWS/on-prem
  • Browser (if applicable): n/a
  • Did this used to work? Not as far as I know

Activity

  1. brownjohnf commented on Apr 4, 2018

    @brownjohnf
    Author
  2. avanier commented on Apr 4, 2018

    @avanier
    Contributor

    I'm interested to hear about this one. Might be a good ticket to sink my noob teeth in.

  3. jama22 commented on Apr 16, 2018

    @jama22

    Not sure if its quite a bug, so erring on the side of marking this as an enhancement request to allow whitespace after (( and before )). I mean, the documentation technically shows no whitespace. I can see why you would want to have the whitespace for legibility reasons.

  4. avanier commented on Apr 22, 2018

    @avanier
    Contributor

    So, I did a bit of digging, and right now this is deferred here to a library from bosh-cli.

    @jama-pivotal Do you think it's best to :

    • PR on the library at the risk of causing mayhem in bosh-cli
      • Can we even bump that library without causing mayhem to Concourse?
    • Fork said library into the Concourse code base
    • Let sleeping dogs lie (don't fix it if it ain't borken <- spelled properly)
  5. vito commented on Mar 12, 2019

    @vito
    Contributor

    @avanier 🐢 A PR upstream would probably be sufficient. I can't think of a reason not to allow whitespace, aside from wanting to ensure consistent syntax from project to project. In any case it's a change to a dependency so I'd just defer to their decision.

  6. stale commented on Jul 16, 2019

    @stale

    Beep boop! This issue has been idle for long enough that it's time to check
    in and see if it's still important.

    If it is, what is blocking it? Would anyone be interested in submitting a
    PR
    or
    continuing the discussion to help move things forward?

    If no activity is observed within the next week, this issue will be
    exterminated closed, in accordance with our stale issue
    process
    .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions