This is the continuation of the NetBox Secretstore app. The original plugin is
minimally maintained and has a lot of issues.
This plugin is a complete rewrite of the original plugin. It is more generic
and flexible than the original plugin. It is also regularly tested with the
latest NetBox releases to ensure compatibility and stability.
Features:
* Store secrets in the database encrypted with a public key (RSA)
* More generic and flexible than the original plugin (e.g. secrets
can be assigned to any object in NetBox)
* Secrets can be assigned to contacts to associate them with
a secret (e.g. SSH key)
* Updated user interface to make it easier to use and more intuitive
to navigate
* Regularly tested with the latest NetBox releases to ensure
compatibility and stability
NOTE: If this package has multiple flavors (see below), then use one of them instead of the name specified above. NOTE: This is a Python port. Instead of py312-netbox-secrets listed in the above command, you can pick from the names under the Packages section.
port moved here from security/py-netbox-secretstore on 2023-08-22 REASON: Has expired: No longer maintained by upstream, not compatible with NetBox 3.5, please migrate to security/py-netbox-secrets
security/py-netbox-secrets: Depend on net-mgmt/netbox
This is a NetBox plugin: it imports netbox.* modules that only exist
inside the NetBox application, and pkg-message assumes NetBox is
installed. Add net-mgmt/netbox to RUN_DEPENDS so the plugin cannot
be installed without it.
While here, add concurrent to USE_PYTHON and fix portlint warnings.
PR: 299777
MFH: 2026Q4
security/py-netbox-secrets: Backport two upstream PRs
* One patch fixes warning sthat occur during the generation of API
schemas, which prevent access to the REST API documentation:
[...]
/usr/local/lib/python3.11/site-packages/netbox_secrets/graphql/filters.py:40:
UserWarning: FilterLookup[str] may cause DuplicatedTypeName errors. Use
StrFilterLookup instead.
name: FilterLookup[str] | None = strawberry_django.filter_field()
[...]
* The other patch also resolves several DuplicatedNameType errors
that trigger exceptions which make the NetBox instance unusable:
[...]
File
"/usr/local/lib/python3.11/site-packages/strawberry/schema/schema_converter.py",
line 503, in from_input_object
self.validate_same_type_definition(type_name, type_definition, cached_type)
File
"/usr/local/lib/python3.11/site-packages/strawberry/schema/schema_converter.py",
line 1040, in validate_same_type_definition
raise DuplicatedTypeName(first_origin, second_origin, name)
strawberry.exceptions.duplicated_type_name.DuplicatedTypeName: Type
StrFilterLookup is defined multiple times in the schema
[...]
* Bump PORTREVISION due changed package content.
*: Revise USES=python:... version range constraints
and strip all lower bounds of 3.9 or 3.10 because they are implied now.
python:3.9-X -> python:-X
python:3.9+ -> python
python:3.10-X -> python:-X
python:3.10+ -> python
(options such as ,build preserved)
python: bump all USE_PYTHON=distutils consumers after RUN_DEPENDS removal
Any missed ports, feel free to bump.
Any ports that need setuptools at runtime can have the devel/py-setuptools
manually added back to RUN_DEPENDS, but understand that this practice
is deprecated; see CHANGES for details.
all: remove explicit versions in USES=python for "3.x+"
The logic in USES=python will automatically convert this to 3.8+ by
itself.
Adjust two ports that only had Python 3.7 mentioned but build fine
on Python 3.8 too.
finance/quickfix: mark BROKEN with PYTHON
libtool: compile: c++ -DHAVE_CONFIG_H -I. -I../.. -I -I. -I.. -I../.. -I../C++
-DLIBICONV_PLUG -DPYTHON_MAJOR_VERSION=3 -Wno-unused-variable
-Wno-maybe-uninitialized -O2 -pipe -DLIBICONV_PLUG -fstack-protector-strong
-fno-strict-aliasing -DLIBICONV_PLUG -Wall -ansi
-Wno-unused-command-line-argument -Wpointer-arith -Wwrite-strings
-Wno-overloaded-virtual -Wno-deprecated-declarations -Wno-deprecated -std=c++0x
-MT _quickfix_la-QuickfixPython.lo -MD -MP -MF
.deps/_quickfix_la-QuickfixPython.Tpo -c QuickfixPython.cpp -fPIC -DPIC -o
.libs/_quickfix_la-QuickfixPython.o
warning: unknown warning option '-Wno-maybe-uninitialized'; did you mean
'-Wno-uninitialized'? [-Wunknown-warning-option]
QuickfixPython.cpp:175:11: fatal error: 'Python.h' file not found
^~~~~~~~~~
1 warning and 1 error generated.
Reviewed by: portmgr, vishwin, yuri
Differential Revision: <https://reviews.freebsd.org/D40568>
security/py-netbox-secrets: New port
This is the continuation of the NetBox Secretstore app. The original
plugin is minimally maintained and has a lot of issues.
This plugin is a complete rewrite of the original plugin. It is more
generic and flexible than the original plugin. It is also regularly
tested with the latest NetBox releases to ensure compatibility and
stability.
Features:
* Store secrets in the database encrypted with a public key (RSA)
* More generic and flexible than the original plugin (e.g. secrets
can be assigned to any object in NetBox)
* Secrets can be assigned to contacts to associate them with
a secret (e.g. SSH key)
* Updated user interface to make it easier to use and more intuitive
to navigate
* Regularly tested with the latest NetBox releases to ensure
compatibility and stability
MFH: 2023Q2 (in 3 weeks, to provide a migration path for
security/py-netbox-secretstore, which is deprecated)