Skip to content

Commit ed1b8bc

Browse files
arthansonjeremystretch
authored andcommitted
16349 add warning to custom script docs
1 parent 684cdda commit ed1b8bc

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

docs/customization/custom-scripts.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ They can also be used as a mechanism for validating the integrity of data within
1717

1818
Custom scripts are Python code which exists outside the NetBox code base, so they can be updated and changed without interfering with the core NetBox installation. And because they're completely custom, there is no inherent limitation on what a script can accomplish.
1919

20+
!!! danger "Only install trusted scripts"
21+
Custom scripts have unrestricted access to change anything in the databse and are inherently unsafe and should only be installed and run from trusted sources. You should also review and set permissions for who can run scripts if the script can modify any data.
22+
2023
## Writing Custom Scripts
2124

2225
All custom scripts must inherit from the `extras.scripts.Script` base class. This class provides the functionality necessary to generate forms and log activity.

0 commit comments

Comments
 (0)