-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rename Project and Improve Docs (#19)
* add config examples * Updates to docs * Update name * Bump version: 0.3.4 → 0.3.5 * Version check fix
- Loading branch information
1 parent
900cd85
commit 32050e7
Showing
7 changed files
with
126 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ on: | |
workflow_dispatch: | ||
|
||
env: | ||
VERSION: 0.3.4 | ||
VERSION: 0.3.5 | ||
|
||
jobs: | ||
docker: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
# Configuration Examples | ||
|
||
## Basic Configuration - Simple | ||
|
||
At a bare minimum, Vault must be configured with an address and some authentication method | ||
|
||
```yaml | ||
vault: | ||
address: https://vault.exampledomainname.com | ||
authentication: | ||
token: | ||
``` | ||
## Complete Simple Configuration using Token Authentication for Expiration Monitoring | ||
An example of the absolute bare minimum configuration to monitor a single secret. | ||
```yaml | ||
vault: | ||
address: https://vault.exampledomainname.com | ||
authentication: | ||
token: | ||
|
||
secret_expiration_monitoring: | ||
- name: simple_service | ||
secrets: | ||
- mount_point: secrets | ||
secret_path: expiring_secrets | ||
``` | ||
## Complete Complex Configuration for Expiration Monitoring | ||
Uses all non-exclusive settings for monitoring a secret. | ||
```yaml | ||
vault: | ||
address: https://vault.exampledomainname.com | ||
namespace: thenamespace # optional, don't set for root/open source | ||
# If multiple options are set, goes approle, kubernetes, token | ||
authentication: | ||
# Configuration for approle | ||
approle: | ||
mount_point: someapproleauth # default approle | ||
role_id: ab462-0462ac | ||
secret_id_variable: VAULT_MONITOR_SECRET_ID # the associated environmental variable must be set | ||
|
||
|
||
refresh_interval: 10 # default is 30 seconds | ||
port: 8350 # default is 9935 | ||
|
||
secret_expiration_monitoring: | ||
metadata_fieldnames: | ||
last_renewal_timestamp: "first_last_renewal_timestamp" # default is last_renewal_timestamp | ||
expiration_timestamp: "first_expiration_timestamp" # default is expiration_timestamp | ||
prometheus_labels: # Global configuration for prometheus labels | ||
team: tomtom | ||
environment: prod | ||
owner: Eugene Davis | ||
services: | ||
- name: complicated_service | ||
# Allow overriding the default labels - must *update* the existing defaults (optional) | ||
prometheus_labels: | ||
environment: dev # Cannot add a key that doesn't already exist in the global configuration | ||
secrets: | ||
- mount_point: secrets | ||
secret_path: expiration_secrets | ||
recursive: True # Require the list permission, but be able to monitor every sub-secret (optional, default False) | ||
|
||
metadata_fieldnames: # Allow overriding the defaults per-service (optional) - the earlier configured fieldnames will be ignored for this service | ||
last_renewal_timestamp: "some_last_renewal_timestamp" | ||
expiration_timestamp: "some_expiration_timestamp" | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[tool.poetry] | ||
name = "sp-devsup-vault-expiration-monitoring" | ||
version = "0.3.4" | ||
name = "vault-assesment-prometheus-exporter" | ||
version = "0.3.5" | ||
description = "Prometheus exporter to monitor custom metadata for KV2 secrets for (self-imposed) expiration." | ||
authors = ["Eugene Davis <[email protected]>"] | ||
readme = "README.md" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters