Skip to content
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

Hashicorp feature tmkms #840

Open
wants to merge 38 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
47d90fa
HashiCorp feature
soleinik-figment Sep 8, 2022
fc45dbc
tests+clippy fixes
soleinik-figment Oct 18, 2022
6eb4673
vault_client dependency replaced with ureq
soleinik-figment Oct 19, 2022
d3f6af9
vault_client dependency replaced with ureq
soleinik-figment Oct 19, 2022
1118f18
vault_client dependency replaced with ureq
soleinik-figment Oct 20, 2022
58461d9
1.57 build fix
soleinik-figment Oct 24, 2022
0d1bb1c
remove default feature
soleinik-figment Oct 24, 2022
03b48b9
fix post-rebase code
mkaczanowski Jan 10, 2024
7e0aa90
nits
mkaczanowski Jan 10, 2024
91da779
accomodate hashicorp integration tests
mkaczanowski Jan 11, 2024
4f12d80
support tls
mkaczanowski Jan 13, 2024
b9dd7e0
minor refactor
mkaczanowski Jan 13, 2024
eeab8c0
fmt
mkaczanowski Jan 13, 2024
858e4ea
attempt to run integration tests in CI
mkaczanowski Jan 14, 2024
6ff0724
conditional vault server for tests
mkaczanowski Jan 14, 2024
c432716
spawn vault in ci job
mkaczanowski Jan 14, 2024
990ca1a
fix integration test in CI
mkaczanowski Jan 14, 2024
17c8622
nit
mkaczanowski Jan 14, 2024
3545a68
disable RUSTSEC-2023-0071 warning
mkaczanowski Jan 14, 2024
685b2a3
add exportable flag to hashicorp::upload
mkaczanowski Jan 15, 2024
a1ac3a2
allow tls skip verify even if ca_cert is not set
mkaczanowski Jan 16, 2024
030c325
rebase ontop of last changes
mkaczanowski Oct 25, 2024
7d9046a
test and upload commands dont depend on the tmkms.toml now
mkaczanowski Oct 26, 2024
90f5025
switch back to rustls with proper SKIP_VERIFY and CACERT handling
mkaczanowski Oct 26, 2024
371186b
add pubkey command
mkaczanowski Nov 2, 2024
9984d79
support optional public key caching
mkaczanowski Nov 8, 2024
1b1b87a
support custom vault endpoints paths
mkaczanowski Nov 8, 2024
8377d27
rename hand_shake to handshake
mkaczanowski Nov 8, 2024
67d61d5
update Cargo.lock
mkaczanowski Nov 11, 2024
b3ca551
bump rust version and run cargo fmt
mkaczanowski Nov 15, 2024
21873c8
support bas64 raw and priv_validator_json key format in hashicorp upl…
mkaczanowski Nov 20, 2024
dba492a
update error message from raw to base64
mkaczanowski Nov 25, 2024
8b42fe4
add exit_on_error adapter setting to handle manual token revocation, …
mkaczanowski Nov 27, 2024
a07cb70
update rusttls version
mkaczanowski Nov 27, 2024
ca20997
rustfmt
mkaczanowski Nov 27, 2024
1930ef0
second rustfmt run
mkaczanowski Nov 27, 2024
85c2b2b
panic with PoisonError rather than process::exit
mkaczanowski Nov 28, 2024
96b2252
rustfmt
mkaczanowski Nov 28, 2024
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,4 +4,5 @@
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)
]
28 changes: 25 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:
matrix:
toolchain:
- stable
- 1.74.0 # MSRV
- 1.74.0 # MSRV
runs-on: ubuntu-latest
steps:
- name: Checkout sources
Expand Down Expand Up @@ -91,11 +91,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.74.0 # MSRV
- 1.74.0 # MSRV
runs-on: ubuntu-latest
steps:
- name: Checkout sources
Expand Down Expand Up @@ -128,8 +141,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 +244,7 @@ jobs:
- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: 1.74.0 # MSRV
toolchain: 1.74.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