Skip to content

Logged out users can see build tasks #2116

Closed

Description

@benmoss
  • Concourse version: 3.9.2

We noticed that when we refreshed the page on a build while logged out of our Concourse, we were able to briefly see the job information. This seems like a bug since once the page finishes loading it shows us the "Log in to view" message instead.

concourse-bug

Activity

  1. changed the title [-]Logged out users can see job tasks[/-] [+]Logged out users can see build tasks[/+] on Mar 27, 2018
  2. jama22 commented on Apr 2, 2018

    @jama22

    @benmoss Hmmm, does this happen for all the jobs, or just a specific one? Also, can you provide browser details (in case its browser specific). Trying to reproduce on some of our internal environments here and I'm having difficulty getting repro'd locally

  3. benmoss commented on Apr 2, 2018

    @benmoss
    Author

    @jama-pivotal it happens for all jobs. this is my browser info, though i'm pretty sure it's not browser specific. I think it only happens when you have public pipelines though.

    I looked into the API calls that the Javascript is making and it looks like the API is showing the build values and only the UI is hiding them, so I'm not sure if this is intentional or not. The actual logs aren't leaked, just the build plan.

  4. xtremerui commented on May 4, 2018

    @xtremerui
    Contributor

    this is a bug in UX. There is indeed a flash of build plans showing first and then disappear.

  5. vito commented on Feb 12, 2019

    @vito
    Contributor

    Beyond the UX aspect, this is something we should either document for exposed pipelines (step names are visible through the API) or fix on the server-side (don't allow fetching plan if job isn't public).

    Scheduling this for 'API' to explore whether we can just disallow access to that endpoint.

  6. jamieklassen commented on Feb 26, 2019

    @jamieklassen

    so #3392 is marked as 'fixing' this issue, but there are some error cases (specifically 401 errors on the plan and prep endpoints) that need to be handled differently in the UI, because now we have 'endless loading' in the cases described above. @vito do you want to merge this and make a separate issue for the UI part?

    EDIT: No wait, it's a draft PR! we can push more commits on the same branch.

  7. vito commented on Mar 12, 2019

    @vito
    Contributor

    @pivotal-jamie-klassen Right - let's try just making the rest of the changes on the same branch, and then I'll merge it all at once.

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