Skip to content

Commit bb2235b

Browse files
Merge pull request #9354 from netbox-community/develop
Release v3.2.3
2 parents 50b6ded + a6aec9e commit bb2235b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+805
-148
lines changed

.github/ISSUE_TEMPLATE/bug_report.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ body:
1414
attributes:
1515
label: NetBox version
1616
description: What version of NetBox are you currently running?
17-
placeholder: v3.2.2
17+
placeholder: v3.2.3
1818
validations:
1919
required: true
2020
- type: dropdown

.github/ISSUE_TEMPLATE/feature_request.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ body:
1414
attributes:
1515
label: NetBox version
1616
description: What version of NetBox are you currently running?
17-
placeholder: v3.2.2
17+
placeholder: v3.2.3
1818
validations:
1919
required: true
2020
- type: dropdown

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@ The complete documentation for NetBox can be found at [docs.netbox.dev](https://
6060
          
6161
[![NS1](https://raw.githubusercontent.com/wiki/netbox-community/netbox/images/sponsors/ns1.png)](https://ns1.com/)
6262
<br />
63+
[![Sentry](https://raw.githubusercontent.com/wiki/netbox-community/netbox/images/sponsors/sentry.png)](https://sentry.io/)
64+
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
6365
[![Stellar Technologies](https://raw.githubusercontent.com/wiki/netbox-community/netbox/images/sponsors/stellar.png)](https://stellar.tech/)
6466

6567
</div>

SECURITY.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# Security Policy
2+
3+
## No Warranty
4+
5+
Per the terms of the Apache 2 license, NetBox is offered "as is" and without any guarantee or warranty pertaining to its operation. While every reasonable effort is made by its maintainers to ensure the product remains free of security vulnerabilities, users are ultimately responsible for conducting their own evaluations of each software release.
6+
7+
## Recommendations
8+
9+
Administrators are encouraged to adhere to industry best practices concerning the secure operation of software, such as:
10+
11+
* Do not expose your NetBox installation to the public Internet
12+
* Do not permit multiple users to share an account
13+
* Enforce minimum password complexity requirements for local accounts
14+
* Prohibit access to your database from clients other than the NetBox application
15+
* Keep your deployment updated to the most recent stable release
16+
17+
## Reporting a Suspected Vulnerability
18+
19+
If you believe you've uncovered a security vulnerability and wish to report it confidentially, you may do so via email. Please note that any reported vulnerabilities **MUST** meet all the following conditions:
20+
21+
* Affects the most recent stable release of NetBox, or a current beta release
22+
* Affects a NetBox instance installed and configured per the official documentation
23+
* Is reproducible following a prescribed set of instructions
24+
25+
Please note that we **DO NOT** accept reports generated by automated tooling which merely suggest that a file or file(s) _may_ be vulnerable under certain conditions, as these are most often innocuous.
26+
27+
If you believe that you've found a vulnerability which meets all of these conditions, please email a brief description of the suspected bug and instructions for reproduction to **[email protected]**. For any security concerns regarding NetBox deployed via Docker, please see the [netbox-docker](https://github.com/netbox-community/netbox-docker) project.
28+
29+
### Bug Bounties
30+
31+
As NetBox is provided as free open source software, we do not offer any monetary compensation for vulnerability or bug reports, however your contributions are greatly appreciated.

base_requirements.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,10 @@ psycopg2-binary
102102
# https://github.com/yaml/pyyaml
103103
PyYAML
104104

105+
# Sentry SDK
106+
# https://github.com/getsentry/sentry-python
107+
sentry-sdk
108+
105109
# Social authentication framework
106110
# https://github.com/python-social-auth/social-core
107111
social-auth-core
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# Error Reporting
2+
3+
## Sentry
4+
5+
### Enabling Error Reporting
6+
7+
NetBox v3.2.3 and later support native integration with [Sentry](https://sentry.io/) for automatic error reporting. To enable this functionality, simply set `SENTRY_ENABLED` to True in `configuration.py`. Errors will be sent to a Sentry ingestor maintained by the NetBox team for analysis.
8+
9+
```python
10+
SENTRY_ENABLED = True
11+
```
12+
13+
### Using a Custom DSN
14+
15+
If you prefer instead to use your own Sentry ingestor, you'll need to first create a new project under your Sentry account to represent your NetBox deployment and obtain its corresponding data source name (DSN). This looks like a URL similar to the example below:
16+
17+
```
18+
19+
```
20+
21+
Once you have obtained a DSN, configure Sentry in NetBox's `configuration.py` file with the following parameters:
22+
23+
```python
24+
SENTRY_ENABLED = True
25+
SENTRY_DSN = "https://[email protected]/0"
26+
```
27+
28+
### Assigning Tags
29+
30+
You can optionally attach one or more arbitrary tags to the outgoing error reports if desired by setting the `SENTRY_TAGS` parameter:
31+
32+
```python
33+
SENTRY_TAGS = {
34+
"custom.foo": "123",
35+
"custom.bar": "abc",
36+
}
37+
```
38+
39+
!!! warning "Reserved tag prefixes"
40+
Avoid using any tag names which begin with `netbox.`, as this prefix is reserved by the NetBox application.
41+
42+
### Testing
43+
44+
Once the configuration has been saved, restart the NetBox service.
45+
46+
To test Sentry operation, try generating a 404 (page not found) error by navigating to an invalid URL, such as `https://netbox/404-error-testing`. (Be sure that debug mode has been disabled.) After receiving a 404 response from the NetBox server, you should see the issue appear shortly in Sentry.
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
# Error Reporting Settings
2+
3+
## SENTRY_DSN
4+
5+
Default: None
6+
7+
Defines a Sentry data source name (DSN) for automated error reporting. `SENTRY_ENABLED` must be True for this parameter to take effect. For example:
8+
9+
```
10+
SENTRY_DSN = "https://[email protected]/0"
11+
```
12+
13+
---
14+
15+
## SENTRY_ENABLED
16+
17+
Default: False
18+
19+
Set to True to enable automatic error reporting via [Sentry](https://sentry.io/).
20+
21+
---
22+
23+
## SENTRY_SAMPLE_RATE
24+
25+
Default: 1.0 (all)
26+
27+
The sampling rate for errors. Must be a value between 0 (disabled) and 1.0 (report on all errors).
28+
29+
---
30+
31+
## SENTRY_TAGS
32+
33+
An optional dictionary of tag names and values to apply to Sentry error reports.For example:
34+
35+
```
36+
SENTRY_TAGS = {
37+
"custom.foo": "123",
38+
"custom.bar": "abc",
39+
}
40+
```
41+
42+
!!! warning "Reserved tag prefixes"
43+
Avoid using any tag names which begin with `netbox.`, as this prefix is reserved by the NetBox application.
44+
45+
---
46+
47+
## SENTRY_TRACES_SAMPLE_RATE
48+
49+
Default: 0 (disabled)
50+
51+
The sampling rate for transactions. Must be a value between 0 (disabled) and 1.0 (report on all transactions).
52+
53+
!!! warning "Consider performance implications"
54+
A high sampling rate for transactions can induce significant performance penalties. If transaction reporting is desired, it is recommended to use a relatively low sample rate of 10% to 20% (0.1 to 0.2).

docs/release-notes/version-3.2.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,33 @@
11
# NetBox v3.2
22

3+
## v3.2.3 (2022-05-12)
4+
5+
### Enhancements
6+
7+
* [#8805](https://github.com/netbox-community/netbox/issues/8805) - Add "mixed" option for device airflow indication
8+
* [#8894](https://github.com/netbox-community/netbox/issues/8894) - Include full names when listing users
9+
* [#8998](https://github.com/netbox-community/netbox/issues/8998) - Enable filtering racks & reservations by site group
10+
* [#9122](https://github.com/netbox-community/netbox/issues/9122) - Introduce `clearcache` management command & clear cache during upgrade
11+
* [#9221](https://github.com/netbox-community/netbox/issues/9221) - Add definition list support for Markdown
12+
* [#9260](https://github.com/netbox-community/netbox/issues/9260) - Apply user preferences to tables under object detail views
13+
* [#9278](https://github.com/netbox-community/netbox/issues/9278) - Linkify device types count under manufacturers list
14+
* [#9280](https://github.com/netbox-community/netbox/issues/9280) - Allow adopting existing components when installing a module
15+
* [#9314](https://github.com/netbox-community/netbox/issues/9314) - Add device and VM filters for FHRP group assignments
16+
* [#9340](https://github.com/netbox-community/netbox/issues/9340) - Introduce support for error reporting via Sentry
17+
* [#9343](https://github.com/netbox-community/netbox/issues/9343) - Add Ubiquiti SmartPower power outlet type
18+
19+
### Bug Fixes
20+
21+
* [#9190](https://github.com/netbox-community/netbox/issues/9190) - Prevent exception when attempting to instantiate module components which already exist on the parent device
22+
* [#9267](https://github.com/netbox-community/netbox/issues/9267) - Remove invalid entry in IP address role choices
23+
* [#9296](https://github.com/netbox-community/netbox/issues/9296) - Improve Markdown link sanitization
24+
* [#9306](https://github.com/netbox-community/netbox/issues/9306) - Include VC master interfaces when selecting a LAG/bridge for a VC member interface
25+
* [#9311](https://github.com/netbox-community/netbox/issues/9311) - Permit creating contact assignment without a priority via the REST API
26+
* [#9313](https://github.com/netbox-community/netbox/issues/9313) - Remove HTML code from CSV output of many-to-many relationships
27+
* [#9330](https://github.com/netbox-community/netbox/issues/9330) - Add missing `module_type` field to REST API serializers for modular device component templates
28+
29+
---
30+
331
## v3.2.2 (2022-04-28)
432

533
### Enhancements

mkdocs.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ nav:
7373
- Required Settings: 'configuration/required-settings.md'
7474
- Optional Settings: 'configuration/optional-settings.md'
7575
- Dynamic Settings: 'configuration/dynamic-settings.md'
76+
- Error Reporting: 'configuration/error-reporting.md'
7677
- Remote Authentication: 'configuration/remote-authentication.md'
7778
- Core Functionality:
7879
- IP Address Management: 'core-functionality/ipam.md'
@@ -123,6 +124,7 @@ nav:
123124
- Microsoft Azure AD: 'administration/authentication/microsoft-azure-ad.md'
124125
- Okta: 'administration/authentication/okta.md'
125126
- Permissions: 'administration/permissions.md'
127+
- Error Reporting: 'administration/error-reporting.md'
126128
- Housekeeping: 'administration/housekeeping.md'
127129
- Replicating NetBox: 'administration/replicating-netbox.md'
128130
- NetBox Shell: 'administration/netbox-shell.md'

netbox/circuits/tables/circuits.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ class CircuitTable(NetBoxTable):
5959
)
6060
commit_rate = CommitRateColumn()
6161
comments = columns.MarkdownColumn()
62-
contacts = tables.ManyToManyColumn(
62+
contacts = columns.ManyToManyColumn(
6363
linkify_item=True
6464
)
6565
tags = columns.TagColumn(

0 commit comments

Comments
 (0)