mirror of
https://github.com/enpaul/vault2vault.git
synced 2025-12-17 08:58:27 +00:00
Compare commits
6 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
e2e8ca9ed9
|
|||
|
6fdbb4cc2a
|
|||
|
5c97b869a8
|
|||
|
67af43ce43
|
|||
| 0bb654c2e2 | |||
|
8e621138e9
|
2
.github/scripts/setup-env.sh
vendored
2
.github/scripts/setup-env.sh
vendored
@@ -15,7 +15,7 @@ INSTALL_POETRY_VERSION="${POETRY_VERSION:-1.3.2}";
|
||||
mkdir --parents "$CI_CACHE";
|
||||
|
||||
command -v python;
|
||||
python --version;
|
||||
python3.10 --version;
|
||||
|
||||
curl --location https://install.python-poetry.org \
|
||||
--output "$CI_CACHE/install-poetry.py" \
|
||||
|
||||
5
.github/workflows/ci.yaml
vendored
5
.github/workflows/ci.yaml
vendored
@@ -29,6 +29,11 @@ jobs:
|
||||
- name: Checkout
|
||||
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 }}
|
||||
uses: actions/setup-python@v4
|
||||
with:
|
||||
|
||||
@@ -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
2247
poetry.lock
generated
File diff suppressed because it is too large
Load Diff
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user