You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.markdown
+10Lines changed: 10 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -37,6 +37,16 @@ You can obtain a free key and secret from https://testingbot.com/members/user/ed
37
37
38
38
**Hint:** Instead of passing the key and secret to the command, you can have them as environment variables `${TESTINGBOT_KEY}` and `${TESTINGBOT_SECRET}`.
39
39
40
+
### Avoiding credentials in the process list
41
+
42
+
CLI options whose value contains a password show up in `ps` / process listings. Three options can be set via environment variables instead. The CLI flag still takes precedence; the env var is used as a fallback when the flag is absent.
43
+
44
+
| CLI flag | Env var | Format |
45
+
|---------|---------|--------|
46
+
|`--auth`|`TESTINGBOT_AUTH`|`host:port:user:password` — comma-separated for multiple entries |
.desc("Require HTTP Basic auth on the /metrics (Prometheus) endpoint. Format: user:password. Off by default.").build();
141
+
.desc("Require HTTP Basic auth on the /metrics (Prometheus) endpoint. Format: user:password. Off by default. Env: TESTINGBOT_METRICS_AUTH.").build();
142
142
options.addOption(metricsAuthOpt);
143
143
144
144
Optionproxy = newOption("Y", "proxy", true, "Specify an upstream proxy.");
145
145
proxy.setArgName("PROXYHOST:PROXYPORT");
146
146
options.addOption(proxy);
147
147
148
-
OptionbasicAuth = newOption("a", "auth", true, "Performs Basic Authentication for specific hosts.");
148
+
OptionbasicAuth = newOption("a", "auth", true, "Performs Basic Authentication for specific hosts. Env: TESTINGBOT_AUTH (comma-separated for multiple entries).");
149
149
basicAuth.setArgs(Option.UNLIMITED_VALUES);
150
150
basicAuth.setArgName("host:port:user:passwd");
151
151
options.addOption(basicAuth);
152
152
153
153
OptionpacOption = Option.builder().longOpt("pac").hasArg().desc("Proxy autoconfiguration. Should be a http(s) URL").build();
154
154
options.addOption(pacOption);
155
155
156
-
OptionproxyAuth = newOption("z", "proxy-userpwd", true, "Username and password required to access the proxy configured with --proxy.");
156
+
OptionproxyAuth = newOption("z", "proxy-userpwd", true, "Username and password required to access the proxy configured with --proxy. Env: TESTINGBOT_PROXY_USERPWD.");
0 commit comments