This commit is contained in:
Ethan Paul 2024-03-21 18:33:41 -04:00 committed by GitHub
commit 562baf588b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 1200 additions and 1060 deletions

View File

@ -2,6 +2,13 @@
See also: [Github Release Page](https://github.com/enpaul/vault2vault/releases).
## Version 0.1.4
View this release on: [Github](https://github.com/enpaul/vault2vault/releases/tag/0.1.4),
[PyPI](https://pypi.org/project/vault2vault/0.1.4/)
- Fix not stripping newlines from vault password files. (#5)
## Version 0.1.3
View this release on: [Github](https://github.com/enpaul/vault2vault/releases/tag/0.1.3),

2247
poetry.lock generated

File diff suppressed because it is too large Load Diff

View File

@ -1,6 +1,6 @@
[tool.poetry]
name = "vault2vault"
version = "0.1.3"
version = "0.1.4"
license = "MIT"
authors = ["Ethan Paul <24588726+enpaul@users.noreply.github.com>"]
description = "Recursively rekey ansible-vault encrypted files and in-line variables"

View File

@ -28,7 +28,7 @@ except ImportError:
__title__ = "vault2vault"
__summary__ = "Recursively rekey ansible-vault encrypted files and in-line variables"
__version__ = "0.1.3"
__version__ = "0.1.4"
__url__ = "https://github.com/enpaul/vault2vault/"
__license__ = "MIT"
__authors__ = ["Ethan Paul <24588726+enpaul@users.noreply.github.com>"]
@ -370,7 +370,7 @@ def _load_password(
if fpath:
try:
with Path(fpath).resolve().open("rb") as infile:
return VaultSecret(infile.read())
return VaultSecret(infile.read().strip())
except (FileNotFoundError, PermissionError) as err:
raise RuntimeError(
f"Specified vault password file '{fpath}' does not exist or is unreadable"