Skip to content

[FR] Global proxy settings #9644

Open

Description

@matmair

Please verify that this feature request has NOT been suggested before.

  • I checked and didn't find a similar feature request

Problem statement

Some parts of inventree do not respect globabl proxy settings / some settings are not passed to all install methods

Suggested solution

  1. Add global settings for http/https proxy that is respected by ApiCall mixin and other build-in calls
  2. Add global setting for excluded domains / addresses where the proxy should not be used
  3. Maybe: Add a system check to detect if a proxy might be causing issues

Describe alternatives you've considered

Using well-respected HTTP_PROXY / HTTPS_PROXY environment variables but that does not really work.

Examples of other systems

Netbox partially does that

Do you want to develop this?

  • I want to develop this.

Activity

  1. added
    enhancement
    plugin
    setup
    on May 7, 2025
  2. matmair commented on May 7, 2025

    @matmair
    MemberAuthor

    @SergeoLacruz I think you asked for something similar a while ago - any insights?

  3. SergeoLacruz commented on May 8, 2025

    @SergeoLacruz
    Contributor

    I need proxy settings for my plugin that accesses the Mouser api. I added values to the plugin settings. But those are visible to all admin users which might not be wanted. So I added environment variables which are only visible to the server admin. Anyhow this allows only one proxy setting for all Inventree users. User dependent plugin settings might be even better. I think my question was about user dependent settings: #4605

  4. matmair commented on May 9, 2025

    @matmair
    MemberAuthor

    Thank you for your insights. This would also not be user-dependant.

    I am probably missing details of your security approach, but superusers of an InvenTree instance can access the environment variables or files on the underlying server in the same scope as the InvenTree server process itself. So I do not really see how this approach would be any safer than using a setting that is "hidden".

  5. SergeoLacruz commented on May 9, 2025

    @SergeoLacruz
    Contributor

    Thats true. But hidden settings have not been available yet when we started that,

  6. added this to the horizon milestone on Jun 8, 2025
  7. modified the milestones: horizon, 2.0.0 on Jun 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementpluginsetup

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions