diff --git a/CHANGELOG.md b/CHANGELOG.md index bf6bb7a..3f2bf4a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # Nautobot Secrets Providers Changelog +## v1.4.1 (2023-06-07) + +### Fixed + +- [#91](https://github.com/nautobot/nautobot-plugin-secrets-providers/issues/91) Fixed Hashicorp Vault Authentication with AWS Credentials when region is not set. + ## v1.4.0 (2023-04-19) ### Added diff --git a/nautobot_secrets_providers/providers/hashicorp.py b/nautobot_secrets_providers/providers/hashicorp.py index ca3cf46..96c1ef2 100644 --- a/nautobot_secrets_providers/providers/hashicorp.py +++ b/nautobot_secrets_providers/providers/hashicorp.py @@ -151,11 +151,12 @@ def get_client(cls, secret=None): elif auth_method == "aws": session = boto3.Session() aws_creds = session.get_credentials() + aws_region = session.region_name or "us-east-1" client.auth.aws.iam_login( access_key=aws_creds.access_key, secret_key=aws_creds.secret_key, session_token=aws_creds.token, - region=session.region_name, + region=aws_region, role=vault_settings.get("role_name", None), **login_kwargs, ) diff --git a/pyproject.toml b/pyproject.toml index 9e0f8bd..23ac173 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "nautobot-secrets-providers" -version = "1.4.0" +version = "1.4.1" description = "Nautobot Secrets Providers Plugin." authors = ["Network to Code, LLC "] license = "Apache-2.0"