Compare commits

...

4 Commits

Author SHA1 Message Date
Ethan Paul de4ff0031f
Update changelog for version 0.1.3 2023-04-03 12:01:05 -04:00
Ethan Paul 50a5481108
Bump version to 0.1.3 2023-04-03 11:58:58 -04:00
Ethan Paul 3586a4e277
Merge pull request #3 from brycelowe/fix/password-binary-encoding
fix: remove encoding from password file reads
2023-04-03 11:57:12 -04:00
Bryce Lowe 45ab9addb3
fix: remove encoding from password file reads
The password files are opened in binary mode so an encoding argument isn't necessary and causes the script to crash.

Fixes #2
2023-04-01 21:50:40 -07:00
3 changed files with 11 additions and 3 deletions

View File

@ -2,6 +2,14 @@
See also: [Github Release Page](https://github.com/enpaul/vault2vault/releases).
## Version 0.1.3
View this release on: [Github](https://github.com/enpaul/vault2vault/releases/tag/0.1.3),
[PyPI](https://pypi.org/project/vault2vault/0.1.3/)
- Fix incorrect encoding specification when opening password files. Contributed by
[brycelowe](https://github.com/brycelowe) (#2)
## Version 0.1.2
View this release on: [Github](https://github.com/enpaul/vault2vault/releases/tag/0.1.2),

View File

@ -1,6 +1,6 @@
[tool.poetry]
name = "vault2vault"
version = "0.1.2"
version = "0.1.3"
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.2"
__version__ = "0.1.3"
__url__ = "https://github.com/enpaul/vault2vault/"
__license__ = "MIT"
__authors__ = ["Ethan Paul <24588726+enpaul@users.noreply.github.com>"]
@ -369,7 +369,7 @@ def _load_password(
if fpath:
try:
with Path(fpath).resolve().open("rb", encoding="utf-8") as infile:
with Path(fpath).resolve().open("rb") as infile:
return VaultSecret(infile.read())
except (FileNotFoundError, PermissionError) as err:
raise RuntimeError(