4 Commits

Author SHA1 Message Date
e2e8ca9ed9 Update chanelog with version 0.1.4 2024-03-21 18:33:32 -04:00
6fdbb4cc2a Bump version to 0.1.4 2024-03-21 18:33:32 -04:00
5c97b869a8 Fix not stripping newlines out of vault password files
Fixes #5
2024-03-21 18:33:31 -04:00
67af43ce43 Update transient dependencies 2024-03-21 18:33:31 -04:00
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). 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 ## Version 0.1.3
View this release on: [Github](https://github.com/enpaul/vault2vault/releases/tag/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] [tool.poetry]
name = "vault2vault" name = "vault2vault"
version = "0.1.3" version = "0.1.4"
license = "MIT" license = "MIT"
authors = ["Ethan Paul <24588726+enpaul@users.noreply.github.com>"] authors = ["Ethan Paul <24588726+enpaul@users.noreply.github.com>"]
description = "Recursively rekey ansible-vault encrypted files and in-line variables" description = "Recursively rekey ansible-vault encrypted files and in-line variables"

View File

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