Code Monkey home page Code Monkey logo

Comments (9)

duijf avatar duijf commented on June 17, 2024 2

@haroldyangui We are receiving this error message from GitHub:

{
    "message": "Although you appear to have the correct authorization credentials, the `[redacted]` organization has an IP allow list enabled, and x.x.x.x is not permitted to access this resource.",
    "documentation_url":"https://docs.github.com/rest/reference/apps#list-repositories-accessible-to-the-user-access-token"
}

So it appears that your organization has IP whitelisting configured on GitHub which means that we are not able to fetch the repositories list from Studio. I wasn't aware this was possible, but it seems like this is a feature of GitHub Enterprise Cloud.

  • We don't handle this case gracefully and need to improve the error (and still show the repositories of the accounts / GH app installations that we did manage to fetch).
  • We don't currently publish a list of all the IP addresses that we use to fetch data from SCM providers (we need to discuss if we can commit to publishing this list + making sure it's updated / doesn't change a lot)

from studio-support.

Suor avatar Suor commented on June 17, 2024 1

@duijf do you want to take this issue?

from studio-support.

Suor avatar Suor commented on June 17, 2024

@haroldyangui Github does not permit listing repositories for your DVC Studio installation, is it possible that installation is suspended or in some other weird state? You may try fixing this by going to your profile in DVC Studio and clicking configure button next to Github App here. You'll be redirected to a page on Github with DVC Studio Github App settings. You might need to unsuspend it or review or select accessible repos, if all that fails you can simply uninstall DVC Studio from your Github account and then install it again.

We don't handle this error properly now thus this unhelpful message, I'll look into that.

from studio-support.

Suor avatar Suor commented on June 17, 2024

@haroldyangui I also see that you have installed DVC Studio both into your personal and into an organization account. So need to check both. Not sure link above will guide you to both places (how does it work @duijf?), but it should be:

https://github.com/settings/installations and https://github.com/organizations/ORGANIZATION-NAME/settings/installations (Organization page -> Settings -> Installed Github Apps)

from studio-support.

duijf avatar duijf commented on June 17, 2024

Like I posted before, we don't have great error handling capabilities on this page yet. I will proceed with a quick fix to unbreak the create view page for you @haroldyangui so you'll be able to create views for repos outside of this specific GitHub org.

from studio-support.

duijf avatar duijf commented on June 17, 2024

@haroldyangui A fix to unbreak the "Create view" page for you is scheduled for tomorrow. After the fix, you will still be unable to see the repositories from the org with the IP whitelist, but at least you will be able to add new views for your other repos.

from studio-support.

duijf avatar duijf commented on June 17, 2024

@haroldyangui The "Create View" page should be unbroken for you now, but you will still not be able to view / add repositories for this specific organization until:

  • The organization removes the IP whitelisting requirement.
  • We publish a list of our IP addresses for the organization to include in their whitelisting policy.

Hopefully this gives you the chance to try out Studio and see whether you like it :)

Some follow up for us:

  • Currently we just hide the specific organization if we fail to fetch it's data, but don't actually tell you why we cannot fetch certain GitHub organizations. There is an internal ticket to improve this and I will post a follow-up here once it has been implemented.
  • We need to consider whether we're willing to publish a stable range of IP addresses that we use to import stuff from GitHub. I've filed #26 to track this.

For now, I will close this one as the most urgent part has been solved (and we have tickets for further improvement).

@haroldyangui Please feel free to re-open this issue if you feel like something is still left unaddressed 😄

from studio-support.

shcheklein avatar shcheklein commented on June 17, 2024

@duijf thank you for addressing this?

but don't actually tell you why we cannot fetch certain GitHub organizations.

how hard would it be to show that something is wrong with the connection (in the settings page?).

from studio-support.

duijf avatar duijf commented on June 17, 2024

how hard would it be to show that something is wrong with the connection (in the settings page?).

@shcheklein FYI I created this (internal) ticket to show it on the "Create new view" page: https://github.com/iterative/viewer/issues/2317

Having this on the settings page in addition means making external requests when the settings page is loaded or saving the results of the DB + having some sort of refresh mechanism. Both are possible, but it requires some work.

I would start with adding this to the "create new view" page on load, since we're making those external requests there already. We probably want some reporting on that page anyway, since the external requests we're making can fail for other reasons as well. (E.g. GitHub downtime currently means some repos would not be shown, also without a notice to the user).

from studio-support.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.