summarylogtreecommitdiffstats
path: root/0006-systemd-stop-passing-credentials-on-the-command-line.patch
blob: cf1013c52fa105a8b118286a16ece1dd385e11a0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
From 73944a6b8c1685cae8b75e4f48b4162d1cf733d3 Mon Sep 17 00:00:00 2001
From: Jared Van Bortel <cebtenzzre@gmail.com>
Date: Mon, 16 Feb 2026 00:13:06 -0500
Subject: [PATCH 6/6] systemd: stop passing credentials on the command line

Co-authored-by: Cursor <cursoragent@cursor.com>
---
 systemd/system/pia-pf-refresh@.service   | 2 +-
 systemd/system/pia-reset-tunnel@.service | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/systemd/system/pia-pf-refresh@.service b/systemd/system/pia-pf-refresh@.service
index 2f58da6..35cb9bb 100644
--- a/systemd/system/pia-pf-refresh@.service
+++ b/systemd/system/pia-pf-refresh@.service
@@ -8,7 +8,7 @@ ConditionPathExists=/etc/pia.conf
 User=pia
 EnvironmentFile=/etc/pia.conf
 Type=oneshot
-ExecStart=/usr/bin/pia-portforward --ifname %I --username $PIA_USERNAME --password $PIA_PASSWORD --refresh $RTORRENT $TRANSMISSION
+ExecStart=/usr/bin/pia-portforward --ifname %I --refresh $RTORRENT $TRANSMISSION
 
 # Filesystem
 ProtectSystem=strict
diff --git a/systemd/system/pia-reset-tunnel@.service b/systemd/system/pia-reset-tunnel@.service
index 5963fef..41c55a4 100644
--- a/systemd/system/pia-reset-tunnel@.service
+++ b/systemd/system/pia-reset-tunnel@.service
@@ -11,7 +11,7 @@ Type=oneshot
 ExecStart=/usr/bin/pia-setup-tunnel \
     --netdev-template /etc/pia-tools/%I.netdev.tmpl \
     --network-template /etc/pia-tools/%I.network.tmpl \
-    --region $PIA_REGION --username $PIA_USERNAME --password $PIA_PASSWORD --ifname %I
+    --region $PIA_REGION --ifname %I
 ExecStartPost=-/usr/bin/ip link set down dev %I
 ExecStartPost=-/usr/bin/ip link del %I
 ExecStartPost=/usr/bin/networkctl reload
-- 
2.53.0