netbox-secrets


Namenetbox-secrets JSON
Version 2.1.0 PyPI version JSON
download
home_pagehttps://github.com/Onemind-Services-LLC/netbox-secrets/
SummaryEnhance your secret management with encrypted storage and flexible, user-friendly features.
upload_time2024-10-18 12:17:41
maintainerPrince Kumar
docs_urlNone
authorAbhimanyu Saharan
requires_python>=3.8
licenseApache 2.0
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Netbox Secrets

This is the continuation of the [NetBox Secretstore](https://github.com/DanSheps/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

# Compatibility

| NetBox Version | Plugin Version |
|----------------|----------------|
| 3.3.x          | 1.4.x, 1.5.x   |
| 3.4.x          | 1.6.x, 1.7.x   |
| 3.5.x          | 1.8.x          |
| 3.6.x          | 1.9.x          |
| 3.7.x          | 1.10.x         |
| 4.0.x          | 2.0.x          |
| 4.1.x          | 2.1.x          |

# Installation

* Install NetBox as per NetBox documentation
* Add to local_requirements.txt:
  * `netbox-secrets`
* Install requirements: `./venv/bin/pip install -r local_requirements.txt`
* Add to PLUGINS in NetBox configuration:
  * `'netbox_secrets',`
* Run migration: `./venv/bin/python netbox/manage.py migrate`
* Run collectstatic: `./venv/bin/python netbox/manage.py collectstatic --no-input`

You can view releases at: https://github.com/Onemind-Services-LLC/netbox-secrets/releases

# Configuration

The following options are available in the configuration file:

- `apps`
  - __Type__: `List`
  - __Description__: List of apps to enable
  - __Default__: `['dcim.device', 'virtualization.virtualmachine']`
- `display_default`
  - __Type__: `String`
  - __Description__: Where to display the secret on the detail page of the defined apps
  - __Default__: `left_page`
  - __Options__: `left_page`, `right_page`, `full_width_page`, `tab_view`
- `display_setting`
  - __Type__: `Dict`
  - __Description__: Set display setting for concrete model
  - __Default__: `{}`
  - __Options__: `{'app.model': 'display_default'}`
  - __Example__: `{'dcim.device': 'full_width_page', 'virtualization.virtualmachine': 'right_page'}`
- `enable_contacts`
  - __Type__: `Boolean`
  - __Description__: Enable contacts for secret
  - __Default__: `False`
- `public_key_size`
  - __Type__: `Integer`
  - __Description__: Size of the public key
  - __Default__: `2048`
  - __Options__: `2048`, `4096`, `8192`
- `top_level_menu`
  - __Type__: `Boolean`
  - __Description__: Enable top level menu
  - __Default__: `False`

## Extra Configuration

The following options are inherited from NetBox to configure the cookies:

- `SESSION_COOKIE_SECURE`
  - __Type__: `Boolean`
  - __Description__: [Session Cookie Secure](https://docs.netbox.dev/en/stable/configuration/security/#session_cookie_secure)
- `LOGIN_TIMEOUT`
  - __Type__: `Integer`
  - __Description__: [Login Timeout](https://docs.netbox.dev/en/stable/configuration/security/#login_timeout)

__Note: These options should be set in the NetBox configuration file.__


## Screenshots

### User key (Without Session)

![user-key.png](./assets/user-key.png)

### User key (With Session)

![user-key-session.png](./assets/user-key-session.png)

### Secret Object View

![secret.png](./assets/secret.png)

### Secret Panel on Device

![secret-panel.png](./assets/secret-panel.png)

### Secret Role Object View

![role.png](./assets/role.png)

## FAQ

1. How can I migrate the data from `netbox-secretstore`?

_Note: This is a one-way migration. You can't migrate back to `netbox-secretstore`. Ensure you do not have any data including tables for netbox-secrets already in the database_

These instructions assume that you are running Netbox v3.4.x and the plugin version 1.7.x. Install a new version
of `netbox_secretstore` as:

```shell
pip install git+https://github.com/Onemind-Services-LLC/netbox-secretstore@migration/nb34
```

_Note: You should have netbox-secretstore v1.4.4 installed now._

Make sure to add both plugins to the `configuration.py` before the migration.

Run the migration:

```shell
python manage.py migrate
```

Finally, readjust the indices for the `netbox-secrets` plugin

```shell
python manage.py sqlsequencereset netbox_secrets
```

Run the output of the previous command in the database.

You can now remove `netbox-secretstore` from the application. You may have clean up your database of the old tables manually.

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/Onemind-Services-LLC/netbox-secrets/",
    "name": "netbox-secrets",
    "maintainer": "Prince Kumar",
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": "pkumar@onemindservices.com",
    "keywords": null,
    "author": "Abhimanyu Saharan",
    "author_email": "asaharan@onemindservices.com",
    "download_url": "https://files.pythonhosted.org/packages/d3/f0/2b0fc7c590ea826b277ac1a665fc8c7de6fcb1a8a917db0f2014e405ba85/netbox_secrets-2.1.0.tar.gz",
    "platform": null,
    "description": "# Netbox Secrets\n\nThis is the continuation of the [NetBox Secretstore](https://github.com/DanSheps/netbox-secretstore) app. The original plugin\nis minimally maintained and has a lot of issues. This plugin is a complete rewrite of the original plugin. It is more generic\nand flexible than the original plugin. It is also regularly tested with the latest NetBox releases to ensure compatibility\nand stability.\n\n# Features\n\n* Store secrets in the database encrypted with a public key (RSA)\n* More generic and flexible than the original plugin (e.g. secrets can be assigned to any object in NetBox)\n* Secrets can be assigned to contacts to associate them with a secret (e.g. SSH key)\n* Updated user interface to make it easier to use and more intuitive to navigate\n* Regularly tested with the latest NetBox releases to ensure compatibility and stability\n\n# Compatibility\n\n| NetBox Version | Plugin Version |\n|----------------|----------------|\n| 3.3.x          | 1.4.x, 1.5.x   |\n| 3.4.x          | 1.6.x, 1.7.x   |\n| 3.5.x          | 1.8.x          |\n| 3.6.x          | 1.9.x          |\n| 3.7.x          | 1.10.x         |\n| 4.0.x          | 2.0.x          |\n| 4.1.x          | 2.1.x          |\n\n# Installation\n\n* Install NetBox as per NetBox documentation\n* Add to local_requirements.txt:\n  * `netbox-secrets`\n* Install requirements: `./venv/bin/pip install -r local_requirements.txt`\n* Add to PLUGINS in NetBox configuration:\n  * `'netbox_secrets',`\n* Run migration: `./venv/bin/python netbox/manage.py migrate`\n* Run collectstatic: `./venv/bin/python netbox/manage.py collectstatic --no-input`\n\nYou can view releases at: https://github.com/Onemind-Services-LLC/netbox-secrets/releases\n\n# Configuration\n\nThe following options are available in the configuration file:\n\n- `apps`\n  - __Type__: `List`\n  - __Description__: List of apps to enable\n  - __Default__: `['dcim.device', 'virtualization.virtualmachine']`\n- `display_default`\n  - __Type__: `String`\n  - __Description__: Where to display the secret on the detail page of the defined apps\n  - __Default__: `left_page`\n  - __Options__: `left_page`, `right_page`, `full_width_page`, `tab_view`\n- `display_setting`\n  - __Type__: `Dict`\n  - __Description__: Set display setting for concrete model\n  - __Default__: `{}`\n  - __Options__: `{'app.model': 'display_default'}`\n  - __Example__: `{'dcim.device': 'full_width_page', 'virtualization.virtualmachine': 'right_page'}`\n- `enable_contacts`\n  - __Type__: `Boolean`\n  - __Description__: Enable contacts for secret\n  - __Default__: `False`\n- `public_key_size`\n  - __Type__: `Integer`\n  - __Description__: Size of the public key\n  - __Default__: `2048`\n  - __Options__: `2048`, `4096`, `8192`\n- `top_level_menu`\n  - __Type__: `Boolean`\n  - __Description__: Enable top level menu\n  - __Default__: `False`\n\n## Extra Configuration\n\nThe following options are inherited from NetBox to configure the cookies:\n\n- `SESSION_COOKIE_SECURE`\n  - __Type__: `Boolean`\n  - __Description__: [Session Cookie Secure](https://docs.netbox.dev/en/stable/configuration/security/#session_cookie_secure)\n- `LOGIN_TIMEOUT`\n  - __Type__: `Integer`\n  - __Description__: [Login Timeout](https://docs.netbox.dev/en/stable/configuration/security/#login_timeout)\n\n__Note: These options should be set in the NetBox configuration file.__\n\n\n## Screenshots\n\n### User key (Without Session)\n\n![user-key.png](./assets/user-key.png)\n\n### User key (With Session)\n\n![user-key-session.png](./assets/user-key-session.png)\n\n### Secret Object View\n\n![secret.png](./assets/secret.png)\n\n### Secret Panel on Device\n\n![secret-panel.png](./assets/secret-panel.png)\n\n### Secret Role Object View\n\n![role.png](./assets/role.png)\n\n## FAQ\n\n1. How can I migrate the data from `netbox-secretstore`?\n\n_Note: This is a one-way migration. You can't migrate back to `netbox-secretstore`. Ensure you do not have any data including tables for netbox-secrets already in the database_\n\nThese instructions assume that you are running Netbox v3.4.x and the plugin version 1.7.x. Install a new version\nof `netbox_secretstore` as:\n\n```shell\npip install git+https://github.com/Onemind-Services-LLC/netbox-secretstore@migration/nb34\n```\n\n_Note: You should have netbox-secretstore v1.4.4 installed now._\n\nMake sure to add both plugins to the `configuration.py` before the migration.\n\nRun the migration:\n\n```shell\npython manage.py migrate\n```\n\nFinally, readjust the indices for the `netbox-secrets` plugin\n\n```shell\npython manage.py sqlsequencereset netbox_secrets\n```\n\nRun the output of the previous command in the database.\n\nYou can now remove `netbox-secretstore` from the application. You may have clean up your database of the old tables manually.\n",
    "bugtrack_url": null,
    "license": "Apache 2.0",
    "summary": "Enhance your secret management with encrypted storage and flexible, user-friendly features.",
    "version": "2.1.0",
    "project_urls": {
        "Homepage": "https://github.com/Onemind-Services-LLC/netbox-secrets/"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "6082454a8bbc8bc4dbc857b969a290532265f42f06dde1b5258e8ff265b642fe",
                "md5": "1b191df39809d524bd952d5caa73840b",
                "sha256": "c89ffa1ab4c18f6dc8d220ab6d8e62935e8d1515dbec0b85cacc12969c0ee3df"
            },
            "downloads": -1,
            "filename": "netbox_secrets-2.1.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "1b191df39809d524bd952d5caa73840b",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 73844,
            "upload_time": "2024-10-18T12:17:37",
            "upload_time_iso_8601": "2024-10-18T12:17:37.493370Z",
            "url": "https://files.pythonhosted.org/packages/60/82/454a8bbc8bc4dbc857b969a290532265f42f06dde1b5258e8ff265b642fe/netbox_secrets-2.1.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "d3f02b0fc7c590ea826b277ac1a665fc8c7de6fcb1a8a917db0f2014e405ba85",
                "md5": "7702f295de263501533ad79a00b610b5",
                "sha256": "17154781338ac6e93333aafa1cb491e5059d13f976bacedaf9a7993395b2eef1"
            },
            "downloads": -1,
            "filename": "netbox_secrets-2.1.0.tar.gz",
            "has_sig": false,
            "md5_digest": "7702f295de263501533ad79a00b610b5",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 57356,
            "upload_time": "2024-10-18T12:17:41",
            "upload_time_iso_8601": "2024-10-18T12:17:41.308564Z",
            "url": "https://files.pythonhosted.org/packages/d3/f0/2b0fc7c590ea826b277ac1a665fc8c7de6fcb1a8a917db0f2014e405ba85/netbox_secrets-2.1.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-10-18 12:17:41",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "Onemind-Services-LLC",
    "github_project": "netbox-secrets",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "netbox-secrets"
}
        
Elapsed time: 0.86762s