- A supported NetBox installation
- Python environment with access to NetBox dependencies
- Database already configured for NetBox
pip install netbox-secretsgit clone <your-fork-or-repo-url>
cd netbox-secrets
pip install -e .Add the plugin to NetBox configuration:
# configuration.py
PLUGINS = [
'netbox_secrets',
]NetBox Secrets is configured via PLUGINS_CONFIG in configuration.py.
A list of NetBox models where secrets can be assigned and displayed. Each entry is app_label.model.
Example:
PLUGINS_CONFIG = {
'netbox_secrets': {
'apps': [
'dcim.device',
'virtualization.virtualmachine',
],
}
}Controls where the secrets panel appears on supported object pages.
- Type:
str - Default:
tab_view - Allowed values:
left_page,right_page,full_width_page,tab_view
Overrides display_default per model.
- Type:
dict - Example:
PLUGINS_CONFIG = {
'netbox_secrets': {
'apps': ['dcim.device', 'virtualization.virtualmachine'],
'display_default': 'tab_view',
'display_setting': {
'dcim.device': 'full_width_page',
'virtualization.virtualmachine': 'right_page',
},
}
}Minimum RSA key size allowed for user keys.
- Type:
int - Default:
2048
Whether the plugin appears as a top-level menu item.
- Type:
bool - Default:
False
These are standard NetBox settings that affect session key cookies:
SESSION_COOKIE_SECURELOGIN_TIMEOUT
Refer to the NetBox security configuration docs for details.
./manage.py migrate
./manage.py collectstatic --no-input- Upgrade the package
pip install --upgrade netbox-secrets- Run migrations and collectstatic again
./manage.py migrate
./manage.py collectstatic --no-input- Remove the plugin from
PLUGINSinconfiguration.py - Uninstall the package:
pip uninstall netbox-secrets