Compare commits
3 Commits
af31208251
...
63f864b68b
| Author | SHA1 | Date | |
|---|---|---|---|
| 63f864b68b | |||
| f12034bab9 | |||
| 700e4ce15a |
1
.gitignore
vendored
1
.gitignore
vendored
@@ -10,3 +10,4 @@ data/
|
||||
.env
|
||||
artifacts/
|
||||
.claude/
|
||||
*-credentials.txt
|
||||
|
||||
6
policies/smtp-healthcheck-ro.hcl
Normal file
6
policies/smtp-healthcheck-ro.hcl
Normal file
@@ -0,0 +1,6 @@
|
||||
# Read-only access to the SMTP credentials used by the ClaudeAdmin healthcheck
|
||||
# email notifier (run-healthcheck.sh). Scoped to exactly one KV v2 path.
|
||||
# Consumed via a periodic token at ~/.config/openbao/healthcheck-smtp.token.
|
||||
path "secret/data/smtp/healthcheck" {
|
||||
capabilities = ["read"]
|
||||
}
|
||||
@@ -20,7 +20,7 @@ TOKEN="${BAO_TOKEN:-}"
|
||||
# functional comparison: ignore comments and blank lines
|
||||
norm(){ grep -vE '^[[:space:]]*#' | grep -vE '^[[:space:]]*$' | sed 's/[[:space:]]*$//'; }
|
||||
|
||||
echo "${DRY:+[dry-run] }policies under $DIR -> $ADDR"
|
||||
echo "$([ "$DRY" = 1 ] && printf '[dry-run] ')policies under $DIR -> $ADDR"
|
||||
for f in "$DIR"/*.hcl; do
|
||||
name="$(basename "$f" .hcl)"; filetxt="$(cat "$f")"
|
||||
live="$(curl -sS -H "X-Vault-Token: $TOKEN" "$ADDR/v1/sys/policies/acl/$name" \
|
||||
|
||||
Reference in New Issue
Block a user