Commit 790501b
committed
Allow auth tokens to be set by $HTK_SERVER_TOKEN
This tightens token auth further. Using --token, another process on
your machine could in theory look at process command line to get
the auth token, and use that to access the API to increase its
privileges.
There's no known viable attacks even given that access, and this would
require a malicious process to already be running on your machine, but
it's good to be able to block that regardless.1 parent 280ede4 commit 790501b
1 file changed
+6
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
5 | 10 | | |
6 | 11 | | |
7 | 12 | | |
| |||
48 | 53 | | |
49 | 54 | | |
50 | 55 | | |
51 | | - | |
| 56 | + | |
52 | 57 | | |
53 | 58 | | |
54 | 59 | | |
| |||
0 commit comments