Skip to content

Commit df62192

Browse files
committed
feat: add additional TCP localhost listener
Ensure that the `bao` client can communicate with `bao` server via `127.0.0.1` in situations where the `bind_addr` it not listening on localhost.
1 parent c2ce6bd commit df62192

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

roles/openbao/defaults/main.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,14 @@ openbao_config: >
4444
{% else %}
4545
"tls_disable": "true"
4646
{% endif %}
47+
}{% if not openbao_bind_addr.startswith('127.') %},
48+
},
49+
{
50+
"tcp": {
51+
"address": "127.0.0.1:8200",
52+
"tls_disable": "true"
4753
}
54+
{% endif %}
4855
}],
4956
"storage": {
5057
"raft": {

0 commit comments

Comments
 (0)