Commit f6458f2
committed
fix: address Copilot review 2 on PR #7
Four follow-ups from the second pass:
1. Banner no longer prints the env-provided password verbatim. When
the credential comes from JSS_SINGLE_USER_PASSWORD, the banner
confirms "(hidden — set via JSS_SINGLE_USER_PASSWORD)" instead of
echoing the value to stdout. Default rung-1 'me' still prints
(the user doesn't know it yet, and it has no secrecy property).
Avoids leaking real passwords into terminal scrollback, shell
history capture, CI logs, and shared sessions.
2. `--host [::1]` (bracketed IPv6) now parses cleanly. Brackets are
stripped at CLI parse time, so options.host stays canonical
('::1'), and formatUrl re-adds brackets only where URLs need
them. Previously the bracketed form would round-trip through
formatUrl as http://[[::1]]:PORT (invalid).
3. LAN-exposure warning no longer references a `--single-user-
password` jspod flag that doesn't exist. It now points users to
JSS_SINGLE_USER_PASSWORD=... or binding to 127.0.0.1.
4. README's "Default Configuration" code block previously claimed
TOKEN_SECRET was "(auto)" / "auto-generated". The code actually
uses a static fallback ('jspod-default-secret-change-in-
production'). Documentation now matches reality. A real
per-data-dir secret-generator can land in a follow-up PR.
Refs #1 #3 #61 parent 89d9fe7 commit f6458f2
2 files changed
Lines changed: 23 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
201 | 201 | | |
202 | 202 | | |
203 | 203 | | |
204 | | - | |
| 204 | + | |
| 205 | + | |
205 | 206 | | |
206 | 207 | | |
207 | 208 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
59 | | - | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
60 | 64 | | |
61 | 65 | | |
62 | 66 | | |
| |||
143 | 147 | | |
144 | 148 | | |
145 | 149 | | |
146 | | - | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
147 | 160 | | |
148 | 161 | | |
149 | 162 | | |
150 | 163 | | |
151 | 164 | | |
152 | 165 | | |
153 | | - | |
154 | | - | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
155 | 170 | | |
156 | 171 | | |
157 | 172 | | |
158 | | - | |
159 | | - | |
| 173 | + | |
160 | 174 | | |
161 | 175 | | |
162 | 176 | | |
163 | 177 | | |
164 | | - | |
| 178 | + | |
165 | 179 | | |
166 | 180 | | |
167 | 181 | | |
| |||
0 commit comments