Skip to content

Commit f779d19

Browse files
committed
Sync: Automated sync from main to public branch.
1 parent 3957037 commit f779d19

File tree

2 files changed

+46
-6
lines changed

2 files changed

+46
-6
lines changed

image/Dockerfile

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,15 @@ ARG BUILD_ID=devel
1212
LABEL build=$BUILD_ID
1313

1414
# Install dependencies
15-
RUN apk add --no-cache curl
16-
RUN apk add --no-cache ansible
17-
RUN apk add --no-cache jq
18-
RUN apk add --no-cache python3 py3-pip py3-yaml
19-
RUN apk add --no-cache bash # Added: For re-encryption subprocess
15+
RUN apk add --no-cache \
16+
curl \
17+
ansible \
18+
jq \
19+
python3 \
20+
py3-pip \
21+
py3-yaml \
22+
bash \
23+
openssl
2024
RUN python3 -m venv /opt/venv && \
2125
/opt/venv/bin/pip install --no-cache-dir hvac pyyaml
2226

test/openbao_config.yml

Lines changed: 37 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,48 @@ policies:
1010
path "pki-intermediate/*" {
1111
capabilities = ["read", "list"]
1212
}
13-
path "kv/data/trusted_external" {
13+
# issue/sign for deploys
14+
path "pki-intermediate/issue/*" {
15+
capabilities = ["create", "update"]
16+
}
17+
path "pki-intermediate/issue/internal-api" {
18+
capabilities = ["create", "update"]
19+
}
20+
path "pki-intermediate/sign/*" {
21+
capabilities = ["create", "update"]
22+
}
23+
path "pki-intermediate/config/*" {
24+
capabilities = ["read"]
25+
}
26+
path "pki-intermediate/roles/*" {
27+
capabilities = ["read"]
28+
}
29+
# Allow full access to the PKI KV Cache
30+
path "secret/data/pki_cache/*" {
31+
capabilities = ["create", "read", "update", "delete", "list"]
32+
}
33+
# If using KV version 1, or for listing metadata in KV version 2
34+
path "secret/metadata/pki_cache/*" {
35+
capabilities = ["list", "read"]
36+
}
37+
path "secret/data/trusted_internal/*" {
38+
capabilities = ["read"]
39+
}
40+
path "secret/metadata/trusted_internal" {
41+
capabilities = ["list"]
42+
}
43+
path "secret/data/trusted_external/*" {
1444
capabilities = ["read"]
1545
}
46+
path "secret/metadata/trusted_external" {
47+
capabilities = ["list"]
48+
}
1649
path "auth/token/lookup*" {
1750
capabilities = ["read"]
1851
}
52+
path "sys/mounts" {
53+
capabilities = ["read"]
54+
}
1955
user:
2056
hcl_content: |
2157
path "secret/*" {

0 commit comments

Comments
 (0)