Commit graph

7 commits

Author SHA1 Message Date
Harald Hoyer c132ba1722 fix(test): ensure vault-hier processes are terminated
- Add `killall vault-hier` to cleanup script in `test_local.sh`.
- Prevent potential leftover processes from interfering with tests.
2025-03-20 17:02:00 +01:00
Harald Hoyer b445634b53 feat(test): enhance test_local.sh with error handling and API port
- Added fixed API_PORT and API_URL variables for easier debugging.
- Introduced robust error handling functions and cleanup traps.
- Enhanced test flow with detailed logs and fallback logic for token creation.
- Increased server start wait time for reliability and added new document operations.
2025-03-20 16:31:40 +01:00
Harald Hoyer 26e81cef17 feat: add CLI commands and server default behavior
- Introduced CLI commands for server, login, upload, sign, verify, and more using `clap`.
- Updated Dockerfile and docker-compose to default to `server` command on startup.
- Enhanced `test_local.sh` for testing the server and client operations.
- Added multipart support to `reqwest` and new CLI documentation in `README.md`.
- Updated `Cargo.toml` with new dependencies to support CLI and multipart uploads.
2025-03-20 16:23:29 +01:00
Harald Hoyer c662dfbfd8 feat(test): enhance test_local.sh with better cleanup
- Replace `curl` with `wget` for Vault health check.
- Ensure cleanup of temporary files and directories.
2025-03-20 15:51:13 +01:00
Harald Hoyer 5c0dcdb97a feat: disable Vault UI in local testing and compose setup
- Set `ui` to `false` in test_local.sh and docker-compose.yml.
- This change ensures the Vault UI is disabled for local tests.
- Helps streamline configurations for non-UI testing environments.
2025-03-20 15:49:25 +01:00
Harald Hoyer a3fa6c2e8d Improve test script portability
- Replace #!/bin/bash with #!/usr/bin/env bash for better portability
- This helps ensure scripts run correctly on different systems where bash
  might be located in different paths

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-03-20 13:19:17 +01:00
Harald Hoyer 07cf031bbb Initial commit: Vault Hierarchical Initializer
This commit adds the full implementation of vault-hier, a Rust utility for:
- Initializing HashiCorp Vault in production mode (non-dev)
- Handling Vault seal/unseal operations with key thresholds
- Using Docker Compose for containerized operation
- Supporting persistent storage via Docker volumes

Key components:
- Rust application for Vault interaction
- Docker and Docker Compose configuration
- Test scripts for local development
- Nix flake for development dependencies

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-03-20 12:49:44 +01:00