concourse / concourse-chart

Helm chart to install Concourse
Apache License 2.0
143 stars 176 forks source link

Setting secrets.localUsers Doesn't Add User to main Team #216

Closed willisc7 closed 3 years ago

willisc7 commented 3 years ago

If I helm install concourse using secrets.localUsers, then when I do a subsequent fly login I get the following error after authentication: error: you are not a member of 'main' or the team does not exist. However, if I only remove secrets.localUsers and repeat the install I am able to login with test:test and its a member of the main team.

I am using the following values.yml:

concourse:
  web:
    externalUrl: "https://concourse.example.com"
web:
  ingress:
    enabled: true
    hosts:
      - concourse.example.com
    tls:
      - secretName: concourse-web-tls
        hosts:
          - concourse.example.com
secrets:
  localUsers: "foo:bar"
chenbh commented 3 years ago

secrets.localUsers only creates a local user, you'll also need to set concourse.web.auth.mainTeam.localUser to authorize user foo to the main team

https://github.com/concourse/concourse-chart/blob/d6b55800000fa2695c72ea93a2f47cf7d8a0fb35/values.yaml#L962-L967