1

我正在尝试使用 Github 身份验证设置 Concourse(以前我使用 1.4.1,但那不起作用,所以我正在尝试最新版本,2.6)。我完全按照说明进行 bosh 部署,除了 Github 身份验证之外,一切似乎都正常工作。

当我登录时,它会尝试重定向到来自 Github oauth 的成功回调:

https://concourse.example.com/auth/github/callback?code=XXXXXXXXXX&state=XXXXXXXX

但是大厅服务器只是坐在那里,最终超时。尝试使用 登录时fly -t concourse login,它会将我重定向到https://concourse.example.com/auth/github?team_name=main&fly_local_port=52713,但该地址最终也会超时。

我究竟做错了什么?为什么这些地址都不起作用?

我的 bosh 清单(我知道 Bosh 工作正常,我部署了许多服务器):


name: concourse

director_uuid: XXXX-XXXX-XXXX-XXXX-XXXX

releases:
- name: concourse
  version: latest
- name: garden-runc
  version: latest
- name: slack-notification-resource
  version: latest

stemcells:
- alias: trusty
  os: ubuntu-trusty
  version: latest

instance_groups:
- name: web
  instances: 1
  vm_type: concourse_web
  stemcell: trusty
  azs: [z1]
  networks: [{name: concourse}]
  jobs:
  - name: atc
    release: concourse
    properties:
      # replace with your CI's externally reachable URL e.g https://blah
      external_url: https://concourse.example.com
      # configure GitHub auth
      github_auth:
        client_id: XXXXXXXXX
        client_secret: XXXXXXXXXXXXXXXXXX
        authorize:
          - organization: example
            teams: all
      postgresql_database: &atc_db atc
  - name: tsa
    release: concourse
    properties: {}

- name: db
  instances: 1
  vm_type: concourse_db
  stemcell: trusty
  persistent_disk_type: default
  azs: [z1]
  networks: [{name: concourse}]
  jobs:
  - name: postgresql
    release: concourse
    properties:
      databases:
      - name: *atc_db
        # make up a role and password
        role: xxxxx
        password: xxxxxxxxxxx

- name: worker
  instances: 1
  vm_type: concourse_worker
  stemcell: trusty
  azs: [z1]
  networks: [{name: concourse}]
  jobs:
  - name: groundcrew
    release: concourse
    properties:
      additional_resource_types:
      - type: slack-notification
        image: /var/vcap/packages/slack-notification-resource
  - name: baggageclaim
    release: concourse
    properties: {}
  - name: garden
    release: garden-runc
    properties:
      garden:
        listen_network: tcp
        listen_address: 0.0.0.0:7777
  - name: slack-notification-resource
    release: slack-notification-resource
    properties: {}

update:
  canaries: 1
  max_in_flight: 1
  serial: false
  canary_watch_time: 1000-60000
  update_watch_time: 1000-60000

我没有 Github 企业,所以基本的应该可以工作 - 尽管我已经尝试过设置它,以及手动 oauth。什么都没有 - 大厅服务器只是不响应请求。

有任何想法吗?这两天一直在做这个,我很困惑。摧毁和重新部署大厅数十次,没有任何变化。

4

0 回答 0