6 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
0bb654c2e2 Merge pull request #7 from enpaul/enp/ci
Update CI to always use python3.10 for metaenv
2024-03-21 18:33:05 -04:00
8e621138e9 Update CI to always use python3.10 for metaenv 2024-03-21 18:28:27 -04:00
6 changed files with 1206 additions and 1061 deletions

View File

@@ -15,7 +15,7 @@ INSTALL_POETRY_VERSION="${POETRY_VERSION:-1.3.2}";
mkdir --parents "$CI_CACHE"; mkdir --parents "$CI_CACHE";
command -v python; command -v python;
python --version; python3.10 --version;
curl --location https://install.python-poetry.org \ curl --location https://install.python-poetry.org \
--output "$CI_CACHE/install-poetry.py" \ --output "$CI_CACHE/install-poetry.py" \

View File

@@ -29,6 +29,11 @@ jobs:
- name: Checkout - name: Checkout
uses: actions/checkout@v2 uses: actions/checkout@v2
- name: Install Python 3.10
uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Install Python ${{ matrix.python.version }} - name: Install Python ${{ matrix.python.version }}
uses: actions/setup-python@v4 uses: actions/setup-python@v4
with: with:

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"