Extend allowed schemes in URL-type custom fields #5557

Closed
opened 2025-12-29 19:29:23 +01:00 by adam · 1 comment
Owner

Originally created by @fknorn on GitHub (Oct 26, 2021).

NetBox version

v3.0.8

Feature type

Change to existing functionality

Proposed functionality

Allow more schemes in Custom Fields of type "URL", such as rdp://, ssh://, telnet://, etc. Currently, it appears only http:// and https:// are valid schemes.

Use case

Currently, we have a custom field called "Admin access", where we post a link how to access the respective management frontend. For many devices this could be the admin webpage, but different ones can only be accessed via e.g. ssh. It would be great to be able to post one-click access URLs for these too.

I'm not exactly sure wether the "URL" concept strictly only includes HTTP and HTTPS as valid schemes, but in earlier Netbox versions I beliefe it was possible to have other schemes than those two in URL-type fields. So was this changed for a reason or was it just collatteral of another change?

Thanks!

Database changes

Not sure if the URL scheme types are found in the databse or if it's just a simple regex check prior to storage...?

External dependencies

None, I guess.

Originally created by @fknorn on GitHub (Oct 26, 2021). ### NetBox version v3.0.8 ### Feature type Change to existing functionality ### Proposed functionality Allow more schemes in Custom Fields of type "URL", such as `rdp://`, `ssh://`, `telnet://`, etc. Currently, it appears only `http://` and `https://` are valid schemes. ### Use case Currently, we have a custom field called "Admin access", where we post a link how to access the respective management frontend. For many devices this could be the admin webpage, but different ones can only be accessed via e.g. ssh. It would be great to be able to post one-click access URLs for these too. I'm not exactly sure wether the "URL" concept strictly only includes HTTP and HTTPS as valid schemes, but in earlier Netbox versions I beliefe it was possible to have other schemes than those two in URL-type fields. So was this changed for a reason or was it just collatteral of another change? Thanks! ### Database changes Not sure if the URL scheme types are found in the databse or if it's just a simple regex check prior to storage...? ### External dependencies None, I guess.
adam added the type: feature label 2025-12-29 19:29:23 +01:00
adam closed this issue 2025-12-29 19:29:23 +01:00
Author
Owner

@fknorn commented on GitHub (Oct 26, 2021):

Apologies for overlooking this, but this can already be adjusted using the option ALLOWED_URL_SCHEMES in the config file.

@fknorn commented on GitHub (Oct 26, 2021): Apologies for overlooking this, but this can already be adjusted using the option `ALLOWED_URL_SCHEMES` in the config file.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#5557