concourse / concourse-bosh-deployment

A toolchain for deploying Concourse with BOSH.
Apache License 2.0
86 stars 155 forks source link

Update basic-auth.yml #186

Closed siennathesane closed 4 years ago

siennathesane commented 5 years ago

Fixes bug related to #80.

vito commented 5 years ago

What bug does this fix? 2-level vars should work fine. That's how CredHub works. :thinking:

siennathesane commented 5 years ago

With the period, this error occurs:

  - Unable to render jobs for instance group 'web'. Errors are:
    - Unable to render templates for job 'web'. Errors are:
      - Failed to find variable '/bosh/concourse-staging/local_user' from config server: HTTP Code '404', Error: 'The request could not be completed because the credential does not exist or you do not have sufficient authorization.'

The same issue occurred in #80.

vito commented 5 years ago

That's not a bug, the var just isn't present in the config server and hasn't been provided statically. Have you tried specifying --var local_user.username=foo?

siennathesane commented 5 years ago

Providing the variable statically is not a viable option as this environment pulls all variables from config server as part of a system requirement.

vito commented 5 years ago

@mxplusb Don't you just need to set local_user as a variable in the config server then? The current usage expects a CredHub 'user' type variable. See https://docs.cloudfoundry.org/credhub/credential-types.html#cred-types

vito commented 4 years ago

Guess I'll close this, but let me know if it was still a problem and I can reopen!