Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/next-2.0' into drift-manager/pr
Browse files Browse the repository at this point in the history
  • Loading branch information
snaselj committed Aug 29, 2023
2 parents 65e6e2a + 77bf2b4 commit fd306ad
Show file tree
Hide file tree
Showing 13 changed files with 432 additions and 553 deletions.
22 changes: 7 additions & 15 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,17 +73,17 @@ jobs:
run: "poetry run invoke yamllint"
pylint:
needs:
- "black"
- "bandit"
- "pydocstyle"
- "flake8"
- "yamllint"
- "black"
runs-on: "ubuntu-20.04"
strategy:
fail-fast: true
matrix:
python-version: ["3.8"]
nautobot-version: ["1.4.0"]
nautobot-version: ["2.0.0-rc.2"]
env:
INVOKE_NAUTOBOT_SECRETS_PROVIDERS_PYTHON_VER: "${{ matrix.python-version }}"
INVOKE_NAUTOBOT_SECRETS_PROVIDERS_NAUTOBOT_VER: "${{ matrix.nautobot-version }}"
Expand Down Expand Up @@ -119,19 +119,11 @@ jobs:
strategy:
fail-fast: true
matrix:
python-version: ["3.8", "3.9", "3.10"]
db-backend: ["postgresql"]
nautobot-version: ["stable"]
include:
- python-version: "3.10"
db-backend: "postgresql"
nautobot-version: "1.4.0"
- python-version: "3.8"
db-backend: "mysql"
nautobot-version: "1.4.0"
- python-version: "3.10"
db-backend: "mysql"
nautobot-version: "stable"
# TBD: Fix tested versions
# python-version: ["3.8", "3.9", "3.10", "3.11"]
python-version: ["3.8"]
nautobot-version: ["2.0.0-rc.2"]
db-backend: ["postgresql", "mysql"]
runs-on: "ubuntu-20.04"
env:
INVOKE_NAUTOBOT_SECRETS_PROVIDERS_PYTHON_VER: "${{ matrix.python-version }}"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/upstream_testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: "Nautobot Upstream Monitor"

on: # yamllint disable-line rule:truthy rule:comments
schedule:
- cron: "0 4 */2 * *" # every other day at 4:00
- cron: "0 4 */2 * *" # every other day at midnight

jobs:
upstream-test:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Nautobot Secrets Providers

Nautobot Secrets Providers is a plugin for [Nautobot](https://github.com/nautobot/nautobot) 1.2.0 or higher that bundles Secrets Providers for integrating with popular secrets backends. Nautobot 1.2.0 added support for integrating with retrieving secrets from various secrets providers.
Nautobot Secrets Providers is a plugin for [Nautobot](https://github.com/nautobot/nautobot) 1.4.0 or higher that bundles Secrets Providers for integrating with popular secrets backends. Nautobot 1.4.0 added support for integrating with retrieving secrets from various secrets providers.

This plugin publishes secrets providers that are not included in the within the Nautobot core software package so that it will be easier to maintain and extend support for various secrets providers without waiting on Nautobot software releases.

Expand Down
4 changes: 2 additions & 2 deletions development/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
# -------------------------------------------------------------------------------------
# !!! USE CAUTION WHEN MODIFYING LINES BELOW

# Accepts a desired Nautobot version as build argument, default to 1.4.0
ARG NAUTOBOT_VER="1.4.0"
# Accepts a desired Nautobot version as build argument, default to `2.0.0-rc.2`
ARG NAUTOBOT_VER="2.0.0-rc.2"

# Accepts a desired Python version as build argument, default to 3.8
ARG PYTHON_VER="3.8"
Expand Down
2 changes: 1 addition & 1 deletion invoke.example.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
nautobot_secrets_providers:
project_name: "nautobot-secrets-providers"
nautobot_ver: "latest"
nautobot_ver: "2.0.0-rc.2"
local: false
python_ver: "3.8"
compose_dir: "development"
Expand Down
4 changes: 2 additions & 2 deletions nautobot_secrets_providers/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ class NautobotSecretsProvidersConfig(NautobotAppConfig):
description = "Nautobot App that provides direct integrations with Enterprise secrets management systems. Provides patterns to securely fetch secrets for use by other Nautobot Apps and Nautobot Jobs."
base_url = "secrets"
required_settings = []
min_version = "1.4.0"
max_version = "1.9999"
min_version = "2.0.0-rc.2"
max_version = "2.9999"
default_settings = {}
caching_config = {}

Expand Down
2 changes: 1 addition & 1 deletion nautobot_secrets_providers/providers/aws.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

from django import forms

from nautobot.utilities.forms import BootstrapMixin
from nautobot.core.forms import BootstrapMixin
from nautobot.extras.secrets import exceptions, SecretsProvider


Expand Down
2 changes: 1 addition & 1 deletion nautobot_secrets_providers/providers/choices.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""Choices for Thycotic Secret Server Plugin."""
from nautobot.utilities.choices import ChoiceSet
from nautobot.core.choices import ChoiceSet


class ThycoticSecretChoices(ChoiceSet):
Expand Down
2 changes: 1 addition & 1 deletion nautobot_secrets_providers/providers/delinea.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
except ImportError:
thycotic_installed = False # pylint: disable=invalid-name

from nautobot.utilities.forms import BootstrapMixin
from nautobot.core.forms import BootstrapMixin
from nautobot.extras.secrets import exceptions, SecretsProvider

from .choices import ThycoticSecretChoices
Expand Down
2 changes: 1 addition & 1 deletion nautobot_secrets_providers/providers/hashicorp.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
except ImportError:
hvac = None

from nautobot.utilities.forms import BootstrapMixin
from nautobot.core.forms import BootstrapMixin
from nautobot.extras.secrets import exceptions, SecretsProvider

from .choices import HashicorpKVVersionChoices
Expand Down
Loading

0 comments on commit fd306ad

Please sign in to comment.