Skip to content

Commit 7a34eb5

Browse files
committed
GitHub issue template: Use sudo to collect config file contents
The config files are only readable by root since 9ff0d1a and ubuntu/authd-oidc-brokers@6116ba9
1 parent 8890fd9 commit 7a34eb5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/ISSUE_TEMPLATE/bug_report.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -98,16 +98,16 @@ body:
9898
\`\`\`
9999
100100
#### authd broker configuration
101-
$(if ! find /etc/authd/brokers.d -name '*.conf' | grep -q .; then echo ":warning: No config files in /etc/authd/brokers.d/"; else for f in /etc/authd/brokers.d/*.conf; do echo "#### $f"; echo "\`\`\`"; cat $f; echo "\`\`\`"; done; fi)
101+
$(sudo sh -c 'if ! find /etc/authd/brokers.d -name \*.conf | grep -q .; then echo ":warning: No config files in /etc/authd/brokers.d/"; else for f in /etc/authd/brokers.d/*.conf; do echo "#### $f"; echo "\`\`\`"; cat $f; echo "\`\`\`"; done; fi')
102102
103103
#### authd-msentraid configuration
104104
\`\`\`
105-
$(cat 2>&1 /var/snap/authd-msentraid/current/broker.conf | sed -E 's/[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}/<UUID redacted>/g')
105+
$(sudo cat 2>&1 /var/snap/authd-msentraid/current/broker.conf | sed -E 's/[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}/<UUID redacted>/g')
106106
\`\`\`
107107
108108
#### authd-google configuration
109109
\`\`\`
110-
$(cat 2>&1 /var/snap/authd-google/current/broker.conf | sed -E 's/client_id = .*/client_id = <redacted>/g' | sed -E 's/client_secret = .*/client_secret = <redacted>/g')
110+
$(sudo cat 2>&1 /var/snap/authd-google/current/broker.conf | sed -E 's/client_id = .*/client_id = <redacted>/g' | sed -E 's/client_secret = .*/client_secret = <redacted>/g')
111111
\`\`\`
112112
113113
EOF

0 commit comments

Comments
 (0)