You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/configuration/security.md
+15-5Lines changed: 15 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,19 +20,29 @@ A list of permitted URL schemes referenced when rendering links within NetBox. N
20
20
21
21
## AUTH_PASSWORD_VALIDATORS
22
22
23
-
This parameter acts as a pass-through for configuring Django's built-in password validators for local user accounts. If configured, these will be applied whenever a user's password is updated to ensure that it meets minimum criteria such as length or complexity. An example is provided below. For more detail on the available options, please see [the Django documentation](https://docs.djangoproject.com/en/stable/topics/auth/passwords/#password-validation).
23
+
This parameter acts as a pass-through for configuring Django's built-in password validators for local user accounts. These rules are applied whenever a user's password is created or updated to ensure that it meets minimum criteria such as length or complexity. The default configuration is shown below.
The default configuration enforces the follow criteria:
40
+
41
+
* A password must be at least 12 characters in length.
42
+
* A password must have at least one uppercase letter, one lowercase letter, and one numeric digit.
43
+
44
+
Although it is not recommended, the default validation rules can be disabled by setting `AUTH_PASSWORD_VALIDATORS = []` in the configuration file. For more detail on customizing password validation, please see [the Django documentation](https://docs.djangoproject.com/en/stable/topics/auth/passwords/#password-validation).
Copy file name to clipboardExpand all lines: docs/configuration/system.md
+14-1Lines changed: 14 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -87,6 +87,19 @@ addresses (and [`DEBUG`](./development.md#debug) is true).
87
87
88
88
---
89
89
90
+
## ISOLATED_DEPLOYMENT
91
+
92
+
!!! info "This feature was introduced in NetBox v4.1."
93
+
94
+
Default: False
95
+
96
+
Set this configuration parameter to True for NetBox deployments which do not have Internet access. This will disable miscellaneous functionality which depends on access to the Internet.
97
+
98
+
!!! note
99
+
If Internet access is available via a proxy, set [`HTTP_PROXIES`](#http_proxies) instead.
100
+
101
+
---
102
+
90
103
## JINJA2_FILTERS
91
104
92
105
Default: `{}`
@@ -143,7 +156,7 @@ LOGGING = {
143
156
144
157
## MEDIA_ROOT
145
158
146
-
Default: $INSTALL_ROOT/netbox/media/
159
+
Default: `$INSTALL_ROOT/netbox/media/`
147
160
148
161
The file path to the location where media files (such as image attachments) are stored. By default, this is the `netbox/media/` directory within the base NetBox installation path.
Copy file name to clipboardExpand all lines: docs/customization/custom-fields.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -74,6 +74,8 @@ If a default value is specified for a selection field, it must exactly match one
74
74
75
75
An object or multi-object custom field can be used to refer to a particular NetBox object or objects as the "value" for a custom field. These custom fields must define an `object_type`, which determines the type of object to which custom field instances point.
76
76
77
+
By default, an object choice field will make all objects of that type available for selection in the drop-down. The list choices can be filtered to show only objects with certain values by providing a `query_params` dict in the Related Object Filter field, as a JSON value. More information about `query_params` can be found [here](./custom-scripts.md#objectvar).
78
+
77
79
## Custom Fields in Templates
78
80
79
81
Several features within NetBox, such as export templates and webhooks, utilize Jinja2 templating. For convenience, objects which support custom field assignment expose custom field data through the `cf` property. This is a bit cleaner than accessing custom field data through the actual field (`custom_field_data`).
Copy file name to clipboardExpand all lines: docs/customization/custom-validation.md
-4Lines changed: 0 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -86,8 +86,6 @@ CUSTOM_VALIDATORS = {
86
86
87
87
#### Referencing Related Object Attributes
88
88
89
-
!!! info "This feature was introduced in NetBox v4.0."
90
-
91
89
The attributes of a related object can be referenced by specifying a dotted path. For example, to reference the name of a region to which a site is assigned, use `region.name`:
92
90
93
91
```python
@@ -104,8 +102,6 @@ CUSTOM_VALIDATORS = {
104
102
105
103
#### Validating Request Parameters
106
104
107
-
!!! info "This feature was introduced in NetBox v4.0."
108
-
109
105
In addition to validating object attributes, custom validators can also match against parameters of the current request (where available). For example, the following rule will permit only the user named "admin" to modify an object:
Copy file name to clipboardExpand all lines: docs/development/extending-models.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -50,7 +50,7 @@ If you're adding a relational field (e.g. `ForeignKey`) and intend to include th
50
50
51
51
## 5. Update API serializer
52
52
53
-
Extend the model's API serializer in `<app>.api.serializers` to include the new field. In most cases, it will not be necessary to also extend the nested serializer, which produces a minimal representation of the model.
53
+
Extend the model's API serializer in `<app>.api.serializers` to include the new field.
Copy file name to clipboardExpand all lines: docs/development/models.md
+14-1Lines changed: 14 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,7 +18,7 @@ Depending on its classification, each NetBox model may support various features
18
18
|[Custom links](../customization/custom-links.md)|`CustomLinksMixin`|`custom_links`| These models support the assignment of custom links |
19
19
|[Custom validation](../customization/custom-validation.md)|`CustomValidationMixin`| - | Supports the enforcement of custom validation rules |
20
20
|[Export templates](../customization/export-templates.md)|`ExportTemplatesMixin`|`export_templates`| Users can create custom export templates for these models |
21
-
|[Job results](../features/background-jobs.md)|`JobsMixin`|`jobs`|Users can create custom export templates for these models |
21
+
|[Job results](../features/background-jobs.md)|`JobsMixin`|`jobs`|Background jobs can be scheduled for these models|
22
22
|[Journaling](../features/journaling.md)|`JournalingMixin`|`journaling`| These models support persistent historical commentary |
23
23
|[Synchronized data](../integrations/synchronized-data.md)|`SyncedDataMixin`|`synced_data`| Certain model data can be automatically synchronized from a remote data source |
24
24
|[Tagging](../models/extras/tag.md)|`TagsMixin`|`tags`| The models can be tagged with user-defined tags |
@@ -34,7 +34,9 @@ These are considered the "core" application models which are used to model netwo
0 commit comments