Skip to content

Allow configuring NETBOX_COPILOT_URL via configuration #21775

@MyEcoria

Description

@MyEcoria

NetBox version

v4.5.5

Feature type

Change to existing functionality

Proposed functionality

Currently, the NETBOX_COPILOT_URL setting (https://github.com/netbox-community/netbox/blob/main/netbox/netbox/settings.py#L664) is hardcoded in the NetBox codebase. This proposal introduces the ability to configure this value via the standard NetBox configuration mechanism.

The implementation would:

Replace the hardcoded value with a configurable setting:

NETBOX_COPILOT_URL = getattr(
configuration,
"NETBOX_COPILOT_URL",
"https://static.copilot.netboxlabs.ai/load.js"
)

Use case

This feature enables several practical use cases:

Allowing organizations to use a self-hosted version of the Copilot script
Improving security and compliance by avoiding reliance on externally hosted JavaScript
Enabling customization or extension of Copilot behavior
Supporting restricted or air-gapped environments where external resources cannot be loaded

Currently, achieving this requires modifying the NetBox source code, which complicates upgrades and maintenance. Making this configurable aligns with existing NetBox patterns and provides a cleaner solution.

Database changes

None.

External dependencies

None.

Metadata

Metadata

Assignees

No one assigned

    Labels

    netboxstatus: declinedA proposed feature which has been considered and declined (duplicates will be rejected)type: featureIntroduction of new functionality to the application

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions