Skip to content

Commit c21b7f5

Browse files
feat(auth_nocache): support for auth-nocache
* This option can be enabled on OpenVPN clients, to silence warnings like: ``` openvpn[12345]: WARNING: this configuration may cache passwords in memory -- use the auth-nocache option to prevent this ```
1 parent 667bc1f commit c21b7f5

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

openvpn/files/client.jinja

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,7 @@ http-proxy {{ config.http_proxy }}
3333
{%- if config.auth_user_pass is defined %}
3434
auth-user-pass {{ config.auth_user_pass }}
3535
{%- endif %}
36+
37+
{%- if config.auto_nocache is defined %}
38+
auth-nocache
39+
{%- endif %}

pillar.example

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -282,6 +282,7 @@ openvpn:
282282
auth_user_pass_content: |
283283
user
284284
password
285+
auth_nocache: ~
285286
fast_io: ~
286287
pull: ~
287288
tls-client: ~

0 commit comments

Comments
 (0)