Skip to content

Commit 832ff13

Browse files
Merge pull request #147 from nautobot/release/3.1.1
Release/3.1.1
2 parents 10a6d56 + df49734 commit 832ff13

31 files changed

+296
-507
lines changed

.bandit.yml

Lines changed: 0 additions & 6 deletions
This file was deleted.

.cookiecutter.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,15 @@
2121
"_drift_manager": {
2222
"template": "https://github.com/nautobot/cookiecutter-nautobot-app.git",
2323
"template_dir": "nautobot-app",
24-
"template_ref": "refs/tags/nautobot-app-v2.2.1",
24+
"template_ref": "refs/tags/nautobot-app-v2.3.0",
2525
"cookie_dir": "",
2626
"branch_prefix": "drift-manager",
2727
"pull_request_strategy": "create",
2828
"post_actions": [
2929
"black"
3030
],
3131
"draft": true,
32-
"baked_commit_ref": "07ab5a6da72c934c43f1f957ce073bedbfdbfc9a"
32+
"baked_commit_ref": "f75687d1998767d0385ff1eb722abf2044208871"
3333
}
3434
}
3535
}

.dockerignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ FAQ.md
1919
.git/
2020
.gitignore
2121
.github
22-
tasks.py
2322
LICENSE
2423
**/*.log
2524
**/.vscode/

.flake8

Lines changed: 0 additions & 10 deletions
This file was deleted.

.github/PULL_REQUEST_TEMPLATE/pull_request_template.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
Thank you for your interest in contributing to Nautobot's Secrets Providers App! Please note
2+
Thank you for your interest in contributing to Secrets Providers! Please note
33
that our contribution policy recommends that a feature request or bug
44
report be opened for approval prior to filing a pull request. This
55
helps avoid wasting time and effort on something that we might not

.github/workflows/ci.yml

Lines changed: 6 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ env:
1717
APP_NAME: "nautobot-app-secrets-providers"
1818

1919
jobs:
20-
black:
20+
ruff-format:
2121
runs-on: "ubuntu-22.04"
2222
env:
2323
INVOKE_NAUTOBOT_SECRETS_PROVIDERS_LOCAL: "True"
@@ -26,20 +26,9 @@ jobs:
2626
uses: "actions/checkout@v4"
2727
- name: "Setup environment"
2828
uses: "networktocode/gh-action-setup-poetry-environment@v6"
29-
- name: "Linting: black"
30-
run: "poetry run invoke black"
31-
bandit:
32-
runs-on: "ubuntu-22.04"
33-
env:
34-
INVOKE_NAUTOBOT_SECRETS_PROVIDERS_LOCAL: "True"
35-
steps:
36-
- name: "Check out repository code"
37-
uses: "actions/checkout@v4"
38-
- name: "Setup environment"
39-
uses: "networktocode/gh-action-setup-poetry-environment@v6"
40-
- name: "Linting: bandit"
41-
run: "poetry run invoke bandit"
42-
ruff:
29+
- name: "Linting: ruff format"
30+
run: "poetry run invoke ruff --action format"
31+
ruff-lint:
4332
runs-on: "ubuntu-22.04"
4433
env:
4534
INVOKE_NAUTOBOT_SECRETS_PROVIDERS_LOCAL: "True"
@@ -61,17 +50,6 @@ jobs:
6150
uses: "networktocode/gh-action-setup-poetry-environment@v6"
6251
- name: "Check Docs Build"
6352
run: "poetry run invoke build-and-check-docs"
64-
flake8:
65-
runs-on: "ubuntu-22.04"
66-
env:
67-
INVOKE_NAUTOBOT_SECRETS_PROVIDERS_LOCAL: "True"
68-
steps:
69-
- name: "Check out repository code"
70-
uses: "actions/checkout@v4"
71-
- name: "Setup environment"
72-
uses: "networktocode/gh-action-setup-poetry-environment@v6"
73-
- name: "Linting: flake8"
74-
run: "poetry run invoke flake8"
7553
poetry:
7654
runs-on: "ubuntu-22.04"
7755
env:
@@ -96,13 +74,10 @@ jobs:
9674
run: "poetry run invoke yamllint"
9775
check-in-docker:
9876
needs:
99-
- "black"
100-
- "bandit"
101-
- "ruff"
102-
- "flake8"
77+
- "ruff-format"
78+
- "ruff-lint"
10379
- "poetry"
10480
- "yamllint"
105-
- "black"
10681
runs-on: "ubuntu-22.04"
10782
strategy:
10883
fail-fast: true

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Nautobot Secrets Providers App
1+
# Secrets Providers
22

33
<p align="center">
44
<img src="https://raw.githubusercontent.com/nautobot/nautobot-app-secrets-providers/develop/docs/images/icon-nautobot-secrets-providers.png" class="logo" height="200px">
@@ -8,7 +8,7 @@
88
<a href="https://pypi.org/project/nautobot-secrets-providers/"><img src="https://img.shields.io/pypi/v/nautobot-secrets-providers"></a>
99
<a href="https://pypi.org/project/nautobot-secrets-providers/"><img src="https://img.shields.io/pypi/dm/nautobot-secrets-providers"></a>
1010
<br>
11-
An <a href="https://www.networktocode.com/nautobot/apps/">App</a> for <a href="https://nautobot.com/">Nautobot</a>.
11+
An <a href="https://networktocode.com/nautobot-apps/">App</a> for <a href="https://nautobot.com/">Nautobot</a>.
1212
</p>
1313

1414
## Overview
@@ -59,4 +59,4 @@ Any PRs with fixes or improvements are very welcome!
5959

6060
## Questions
6161

62-
For any questions or comments, please check the [FAQ](https://docs.nautobot.com/projects/secrets-providers/en/latest/user/faq/) first. Feel free to also swing by the [Network to Code Slack](https://networktocode.slack.com/) (channel `#nautobot`), sign up [here](http://slack.networktocode.com/) if you don't have an account.
62+
For any questions or comments, please check the [FAQ](https://docs.nautobot.com/projects/secrets-providers/en/latest/user/faq/) first. Feel free to also swing by the [Network to Code Slack](https://networktocode.slack.com/) (channel `#nautobot`), sign up [here](http://slack.networktocode.com/) if you don't have an account.

development/nautobot_config.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
# Debug
1111
#
1212

13-
DEBUG = is_truthy(os.getenv("NAUTOBOT_DEBUG", False))
13+
DEBUG = is_truthy(os.getenv("NAUTOBOT_DEBUG", "false"))
1414
_TESTING = len(sys.argv) > 1 and sys.argv[1] == "test"
1515

1616
if DEBUG and not _TESTING:
@@ -48,9 +48,10 @@
4848
"PASSWORD": os.getenv("NAUTOBOT_DB_PASSWORD", ""), # Database password
4949
"HOST": os.getenv("NAUTOBOT_DB_HOST", "localhost"), # Database server
5050
"PORT": os.getenv(
51-
"NAUTOBOT_DB_PORT", default_db_settings[nautobot_db_engine]["NAUTOBOT_DB_PORT"]
51+
"NAUTOBOT_DB_PORT",
52+
default_db_settings[nautobot_db_engine]["NAUTOBOT_DB_PORT"],
5253
), # Database port, default to postgres
53-
"CONN_MAX_AGE": int(os.getenv("NAUTOBOT_DB_TIMEOUT", 300)), # Database timeout
54+
"CONN_MAX_AGE": int(os.getenv("NAUTOBOT_DB_TIMEOUT", "300")), # Database timeout
5455
"ENGINE": nautobot_db_engine,
5556
}
5657
}

docs/admin/install.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ The app is available as a Python package via PyPI and can be installed with `pip
6767
pip install nautobot-secrets-providers
6868
```
6969

70-
To ensure Nautobot's Secrets Providers App is automatically re-installed during future upgrades, create a file named `local_requirements.txt` (if not already existing) in the Nautobot root directory (alongside `requirements.txt`) and list the `nautobot-secrets-providers` package:
70+
To ensure Secrets Providers is automatically re-installed during future upgrades, create a file named `local_requirements.txt` (if not already existing) in the Nautobot root directory (alongside `requirements.txt`) and list the `nautobot-secrets-providers` package:
7171

7272
```shell
7373
echo nautobot-secrets-providers >> local_requirements.txt

docs/admin/providers/hashicorp_setup.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,15 @@ PLUGINS_CONFIG = {
1616
```
1717

1818
- `url` - (required) The URL to the HashiCorp Vault instance (e.g. `http://localhost:8200`).
19-
- `auth_method` - (optional / defaults to "token") The method used to authenticate against the HashiCorp Vault instance. Either `"approle"`, `"aws"`, `"kubernetes"` or `"token"`. For information on using AWS authentication with vault see the [authentication](#authentication) section above.
19+
- `auth_method` - (optional / defaults to "token") The method used to authenticate against the HashiCorp Vault instance. Either `"approle"`, `"aws"`, `"kubernetes"` or `"token"`.
2020
- `ca_cert` - (optional) Path to a PEM formatted CA certificate to use when verifying the Vault connection. Can alternatively be set to `False` to ignore SSL verification (not recommended) or `True` to use the system certificates.
2121
- `default_mount_point` - (optional / defaults to "secret") The default mount point of the K/V Version 2 secrets engine within Hashicorp Vault.
2222
- `kv_version` - (optional / defaults to "v2") The version of the KV engine to use, can be `v1` or `v2`
2323
- `k8s_token_path` - (optional) Path to the kubernetes service account token file. Defaults to "/var/run/secrets/kubernetes.io/serviceaccount/token".
24-
- `token` - (optional) Required when `"auth_method": "token"` or `auth_method` is not supplied. The token for authenticating the client with the HashiCorp Vault instance. As with other sensitive service credentials, we recommend that you provide the token value as an environment variable and retrieve it with `{"token": os.getenv("NAUTOBOT_HASHICORP_VAULT_TOKEN")}` rather than hard-coding it in your `nautobot_config.py`.
24+
- `token` - (optional) Required when `"auth_method": "token"` or `auth_method` is not supplied. The token for authenticating the client with the HashiCorp Vault instance. As with other sensitive service credentials, we recommend that you provide the `token` value as an environment variable and retrieve it with `{"token": os.getenv("NAUTOBOT_HASHICORP_VAULT_TOKEN")}` rather than hard-coding it in your `nautobot_config.py`.
2525
- `role_name` - (optional) Required when `"auth_method": "kubernetes"`, optional when `"auth_method": "aws"`. The Vault Kubernetes role or Vault AWS role to assume which the pod's service account has access to.
26-
- `role_id` - (optional) Required when `"auth_method": "approle"`. As with other sensitive service credentials, we recommend that you provide the role_id value as an environment variable and retrieve it with `{"role_id": os.getenv("NAUTOBOT_HASHICORP_VAULT_ROLE_ID")}` rather than hard-coding it in your `nautobot_config.py`.
27-
- `secret_id` - (optional) Required when `"auth_method": "approle"`.As with other sensitive service credentials, we recommend that you provide the secret_id value as an environment variable and retrieve it with `{"secret_id": os.getenv("NAUTOBOT_HASHICORP_VAULT_SECRET_ID")}` rather than hard-coding it in your `nautobot_config.py`.
26+
- `role_id` - (optional) Required when `"auth_method": "approle"`. As with other sensitive service credentials, we recommend that you provide the `role_id` value as an environment variable and retrieve it with `{"role_id": os.getenv("NAUTOBOT_HASHICORP_VAULT_ROLE_ID")}` rather than hard-coding it in your `nautobot_config.py`.
27+
- `secret_id` - (optional) Required when `"auth_method": "approle"`.As with other sensitive service credentials, we recommend that you provide the `secret_id value` as an environment variable and retrieve it with `{"secret_id": os.getenv("NAUTOBOT_HASHICORP_VAULT_SECRET_ID")}` rather than hard-coding it in your `nautobot_config.py`.
2828
- `login_kwargs` - (optional) Additional optional parameters to pass to the login method for [`approle`](https://hvac.readthedocs.io/en/stable/source/hvac_api_auth_methods.html#hvac.api.auth_methods.AppRole.login), [`aws`](https://hvac.readthedocs.io/en/stable/source/hvac_api_auth_methods.html#hvac.api.auth_methods.Aws.iam_login) and [`kubernetes`](https://hvac.readthedocs.io/en/stable/source/hvac_api_auth_methods.html#hvac.api.auth_methods.Kubernetes.login) authentication methods.
2929
- `namespace` - (optional) Namespace to use for the [`X-Vault-Namespace` header](https://github.com/hvac/hvac/blob/main/hvac/adapters.py#L287) on all hvac client requests. Required when the [`Namespaces`](https://developer.hashicorp.com/vault/docs/enterprise/namespaces#usage) feature is enabled in Vault Enterprise.
3030

0 commit comments

Comments
 (0)