Metadata-Version: 2.1
Name: shashvault
Version: 0.0.2
Summary: search Hashicorp vault path and secret
Home-page: https://gitlab.esss.lu.se/remymudingay/my_scripts/shashvault.git
Author: Remy Mudingay
Author-email: remy.mudingay@ess.eu
License: BSD
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: BSD License
Classifier: Operating System :: OS Independent
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: aiohttp (~=3.8.4)
Requires-Dist: requests (~=2.28.1)

# Vault search

This script provides the functionality to search secret paths that match a string and also display k/v when specifying a path.

## Dependancies

### Requirements
```
pip install requests aiohttp
```

### Environmental variables
- VAULT_ADDR
- VAULT_TOKEN
- VAULT_KV_PATH
- VAULT_SKIP_VERIFY

For example:
```
cat ~/.vaultenv
export VAULT_ADDR=https://hashicorp-vault.local.com:8200
export VAULT_SKIP_VERIFY=1
export VAULT_TOKEN=eqw.f8-example-token-2hinwin
export VAULT_KV_PAT=secret
```
### Usage
```
usage: shashvault [-h] [-sp SEARCH_PATH] [-ss SECRET_PATH]

Search and display secrets in HashiCorp Vault

optional arguments:
  -h, --help            show this help message and exit
  -sp SEARCH_PATH, --search-path SEARCH_PATH
                        Text to search paths
  -ss SECRET_PATH, --search-secret SECRET_PATH
                        Path to a specific secret
```

## License
BSD 2-Clause License
