dgodd / concourse-summary

MIT License
62 stars 12 forks source link

How to use it with a private pipeline and team? #24

Closed albertoleal closed 7 years ago

albertoleal commented 7 years ago

Hi, thanks for concourse-summary! We have a huge pipeline and we would like to use this project to have a quick view if our pipeline is broken!

I'm struggling with the manifest configuration and I wonder if you can help me:

We're using concourse v.2.6.0 and we have multiple teams, with private pipelines. Right now I'm trying to configure it with the following manifest:

    env:
      HOSTS: my-concourse.london.app.com?login_team=my-team-123
      CS_GROUPS: '{"my-group":{"my-concourse.london.app.com?login_team=my-team-123": {"my-awesome-pipeline" : null}}}'
      SKIP_SSL_VALIDATION: "true"

But it fails with:

No address found for my-concourse.london.app.com?login_team=my-team-123:443 over TCP (Socket::Error)
0x4f6c88: socket at /tmp/cache/crystal/src/io.cr 558:7
0x4f0fbb: exec_internal_single at /tmp/cache/crystal/src/http/client.cr 500:19
0x4ee95f: exec_internal at /tmp/cache/crystal/src/http/client.cr 487:5
0x4ee927: get at /tmp/cache/crystal/src/http/client.cr 329:3
0x502d59: get at /tmp/staged/app/src/concourse-summary/http_client.cr 43:7
0x50154a: all at /tmp/staged/app/src/concourse-summary/pipeline.cr 13:5
0x52d1df: ??? at /tmp/staged/app/src/concourse-summary/my_data.cr 40:5
0x56817a: call at /tmp/staged/app/lib/kemal/src/kemal/route_handler.cr 255:3
0x5506dd: call at /tmp/cache/crystal/src/http/server/handler.cr 24:7
0x554d64: call at /tmp/cache/crystal/src/http/server/handler.cr 24:7
0x55b0e4: call_next at /tmp/cache/crystal/src/http/server/handler.cr 24:7
0x559c7e: call at /tmp/staged/app/lib/kemal/src/kemal/static_file_handler.cr 56:9
0x565030: call at /tmp/cache/crystal/src/http/server/handler.cr 24:7
0x5626db: call at /tmp/cache/crystal/src/http/server/handler.cr 24:7
0x5676c6: call_next at /tmp/cache/crystal/src/http/server/handler.cr 24:7
0x54a93d: process at /tmp/staged/app/lib/kemal/src/kemal/init_handler.cr 11:7
0x417a88: ??? at /tmp/cache/crystal/src/fiber.cr 255:3
0x0: ??? at ??

So I tried to remove the ?login_team=system-system-rabbitmq-8723 from the config and used the query string in the browser. It rendered the page but nothing was displayed.

Or, how am I supposed to pass the credentials?

So, I'm not sure how I'm supposed to configure that :(

Cheers, Alberto (from Pivotal London)

dgodd commented 7 years ago

I haven't yet looked at team support, I'll see what I can work out

dgodd commented 7 years ago

Alberto, I think we fixed this on slack. Can I confirm? Or do you still have issues?

albertoleal commented 7 years ago

Thank you for that, Dave!