Skip to content

Hashicorp feature tmkms #840

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 45 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
f0d36de
HashiCorp feature
soleinik-figment Sep 8, 2022
3cf2954
tests+clippy fixes
soleinik-figment Oct 18, 2022
44beb15
vault_client dependency replaced with ureq
soleinik-figment Oct 19, 2022
ef2a1a2
vault_client dependency replaced with ureq
soleinik-figment Oct 19, 2022
9ca41f9
vault_client dependency replaced with ureq
soleinik-figment Oct 20, 2022
cd5a019
1.57 build fix
soleinik-figment Oct 24, 2022
dac4810
remove default feature
soleinik-figment Oct 24, 2022
37bd066
fix post-rebase code
mkaczanowski Jan 10, 2024
8b07718
nits
mkaczanowski Jan 10, 2024
a24d1e6
accomodate hashicorp integration tests
mkaczanowski Jan 11, 2024
8273e8f
support tls
mkaczanowski Jan 13, 2024
bd31739
minor refactor
mkaczanowski Jan 13, 2024
c7d3035
fmt
mkaczanowski Jan 13, 2024
b0eb795
attempt to run integration tests in CI
mkaczanowski Jan 14, 2024
3c0636a
conditional vault server for tests
mkaczanowski Jan 14, 2024
243f3d1
spawn vault in ci job
mkaczanowski Jan 14, 2024
0d4730c
fix integration test in CI
mkaczanowski Jan 14, 2024
8756d7a
nit
mkaczanowski Jan 14, 2024
0efb266
disable RUSTSEC-2023-0071 warning
mkaczanowski Jan 14, 2024
93a9f32
add exportable flag to hashicorp::upload
mkaczanowski Jan 15, 2024
7df404d
allow tls skip verify even if ca_cert is not set
mkaczanowski Jan 16, 2024
3ed461c
rebase ontop of last changes
mkaczanowski Oct 25, 2024
a538dd5
test and upload commands dont depend on the tmkms.toml now
mkaczanowski Oct 26, 2024
422f875
switch back to rustls with proper SKIP_VERIFY and CACERT handling
mkaczanowski Oct 26, 2024
3d3084b
add pubkey command
mkaczanowski Nov 2, 2024
16ac8da
support optional public key caching
mkaczanowski Nov 8, 2024
74be649
support custom vault endpoints paths
mkaczanowski Nov 8, 2024
9a0ea7f
rename hand_shake to handshake
mkaczanowski Nov 8, 2024
7d8b873
bump rust version and run cargo fmt
mkaczanowski Nov 15, 2024
a9257bf
support bas64 raw and priv_validator_json key format in hashicorp upl…
mkaczanowski Nov 20, 2024
664364c
update error message from raw to base64
mkaczanowski Nov 25, 2024
710f021
add exit_on_error adapter setting to handle manual token revocation, …
mkaczanowski Nov 27, 2024
2daccd7
update rusttls version
mkaczanowski Nov 27, 2024
0baf33f
rustfmt
mkaczanowski Nov 27, 2024
919e7c8
second rustfmt run
mkaczanowski Nov 27, 2024
a77765e
panic with PoisonError rather than process::exit
mkaczanowski Nov 28, 2024
0ffeea7
rustfmt
mkaczanowski Nov 28, 2024
23af3e3
bump ureq version
mkaczanowski Dec 16, 2024
5b051b6
update ureq to 3.0.0 for better TLS handling
mkaczanowski Dec 17, 2024
0bdc66e
update ureq dependency
mkaczanowski Feb 17, 2025
603fa8a
ignore non-local-definitions
mkaczanowski Feb 17, 2025
183dd2f
disable unknown lints due to rust version crosscheck
mkaczanowski Feb 17, 2025
3640553
update rustc flags order
mkaczanowski Feb 17, 2025
d543c25
rebase on main and fix merge issues
mkaczanowski May 30, 2025
1833e9e
update cargo lock
mkaczanowski May 30, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .cargo/audit.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
ignore = [
"RUSTSEC-2019-0036", # failure: type confusion if __private_get_type_id__ is overridden
"RUSTSEC-2020-0036", # failure is officially deprecated/unmaintained
"RUSTSEC-2023-0071", # rsa marvin attack, waiting for an upstream fix (rsa package is used by hashicorp feature)
"RUSTSEC-2024-0421",
"RUSTSEC-2024-0436",
]
32 changes: 28 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ on:

env:
CARGO_INCREMENTAL: 0
RUSTFLAGS: "-Dwarnings"
# > 1.84.0 (current stable) introduces new lint, this is to suppress it until
# the issue is fixed
RUSTFLAGS: "-Aunknown-lints -Anon-local-definitions -Dwarnings"

jobs:
check:
Expand Down Expand Up @@ -50,7 +52,7 @@ jobs:
matrix:
toolchain:
- stable
- 1.81.0 # MSRV
- 1.81.0 # MSRV
runs-on: ubuntu-latest
steps:
- name: Checkout sources
Expand Down Expand Up @@ -91,11 +93,24 @@ jobs:

test:
name: Test Suite
services:
vault:
image: vault:1.13.3
ports:
- "8400:8400"
env:
VAULT_DEV_ROOT_TOKEN_ID: test
VAULT_DEV_LISTEN_ADDRESS: 0.0.0.0:8400
options: >-
--health-cmd "vault status -address='http://127.0.0.1:8400'"
--health-interval 10s
--health-timeout 5s
--health-retries 5
strategy:
matrix:
toolchain:
- stable
- 1.81.0 # MSRV
- 1.81.0 # MSRV
runs-on: ubuntu-latest
steps:
- name: Checkout sources
Expand Down Expand Up @@ -128,8 +143,17 @@ jobs:
- name: Install libudev-dev
run: sudo apt-get update && sudo apt-get install libudev-dev

# used by integration test to configure running hashicorp vault container
- name: Install HashiCorp vault CLI
run: wget -O- https://apt.releases.hashicorp.com/gpg | sudo gpg --dearmor -o /usr/share/keyrings/hashicorp-archive-keyring.gpg &&
gpg --no-default-keyring --keyring /usr/share/keyrings/hashicorp-archive-keyring.gpg --fingerprint &&
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/hashicorp-archive-keyring.gpg] https://apt.releases.hashicorp.com $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/hashicorp.list &&
sudo apt update && sudo apt install vault

- name: Run cargo test
uses: actions-rs/cargo@v1
env:
NO_VAULT_SERVER: true
with:
command: test
args: --all-features -- --test-threads 1
Expand Down Expand Up @@ -222,7 +246,7 @@ jobs:
- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: 1.81.0 # MSRV
toolchain: 1.81.0 # MSRV
override: true

- name: Install libudev-dev
Expand Down
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,7 @@ tmkms.toml
*.swp

\.idea/
/state
/secrets
/.vscode
**/*.bin
Loading
Loading