Skip to content

Two API requests done towards api.github.com anytime someone visits ACS UI #10522

Closed

Description

@Sparc0

problem

Anytime anyone visit our cloudstack webui you get two notifications in top right corner saying:

Forbidden
API rate limit exceeded for REDACTED_IP. (But here's the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.)

It does not matter if you are logged in our not. It's because for some reason my browser do two API requests towards Github.

versions

ACS: 4.20.0

The steps to reproduce the bug

  1. Visit the webui
  2. Open browser console
  3. F5
  4. Two API requests towards Github is made to https://api.github.com/repos/apache/cloudstack/releases

What to do about it?

Can this behavior be disabled somehow?

Activity

  1. changed the title [-]Two API requests done towards api.github.com anytime i someone visits ACS UI[/-] [+]Two API requests done towards api.github.com anytime someone visits ACS UI[/+] on Mar 6, 2025
  2. added this to the 4.20.1 milestone on Mar 7, 2025
  3. DaanHoogland commented on Mar 7, 2025

    @DaanHoogland
    Contributor

    @Sparc0 , I see only one call, but that IMNSHO is one too many. I will look into the functionality requiring this and into disabling this by default.

  4. DaanHoogland commented on Mar 7, 2025

    @DaanHoogland
    Contributor

    @Sparc0 the reason you might see two calls to api.github is because you have oauth enabled, is that true?

  5. Sparc0 commented on Mar 7, 2025

    @Sparc0
    Author

    I dont use oauth.
    This is a complete fresh and new mgmt server installed and i was met by the error on first login.

    Image

    Since it does it towards https://api.github.com/repos/apache/cloudstack/releases does the UI check i run the latest version or something?

  6. DaanHoogland commented on Mar 7, 2025

    @DaanHoogland
    Contributor

    @Sparc0 , another question, you should only get this when you log on as "Root Admin". Are you saying you get it as any user?

    Since it does it towards https://api.github.com/repos/apache/cloudstack/releases does the UI check i run the latest version or something?

    Yes, it should tell you if there is a newer version.

  7. Sparc0 commented on Mar 7, 2025

    @Sparc0
    Author

    We only have one user at the moment, have not setup LDAP or any other local users yet. I could try that next week see if that helps.

  8. DaanHoogland commented on Mar 9, 2025

    @DaanHoogland
    Contributor

    @Sparc0 , I created a PR that would reduce the double call to api.github, but I could not reproduce that part, so it is purely theoratical. Can you try #10533 ?

  9. Sparc0 commented on Mar 10, 2025

    @Sparc0
    Author

    Sure, do you want me to clone your PR and build it using this instructions?
    OR is the EL9 packages that blue mentions here available somewhere?

  10. DaanHoogland commented on Mar 10, 2025

    @DaanHoogland
    Contributor

    The packages are in a private lab to be used for integration tests. If you can build, please do. If all else fails we can arrange some file transfer.

  11. DaanHoogland commented on Apr 7, 2025

    @DaanHoogland
    Contributor

    @Sparc0 , did you manage to test?

  12. Sparc0 commented on Apr 7, 2025

    @Sparc0
    Author

    Not yet, have been occupied with other things.

  13. sureshanaparti commented on Apr 14, 2025

    @sureshanaparti
    Contributor

    @Sparc0 I couldn't reproduce this (https://api.github.com/repos/apache/cloudstack/releases called once during login), Can you verify with PR #10533?

  14. Sparc0 commented on Apr 26, 2025

    @Sparc0
    Author

    I still have not had time to compile and test.
    @sureshanaparti i guess your IP you are behind is not getting rate limited by Github thats why you only call it once and also get no notification because it works.

    I work on a very huge tech company, and probably why one of our IPs i get NATed to is rate limited by Github. And maybe why it tries to do two API calls because the first one fails.

    But as Daan wrote in a earlier comment that one is even too many.

    @Sparc0 , I see only one call, but that IMNSHO is one too many. I will look into the functionality requiring this and into disabling this by default.

    I tried login on the UI build for 10533, but i got the warning again. only once, not twice.

  15. modified the milestones: 4.20.1, 4.20.2 on Jun 3, 2025
  16. moved this from Dev In Progress to on Hold in Apache CloudStack BugFest - Issueson Aug 20, 2025
  17. weizhouapache commented on Oct 8, 2025

    @weizhouapache
    Member

    fixed by #10533

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

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions