Commit c7c0382
fix(container): restructure backend to lift literal http:// URLs out
Hypatia `code_safety: ncl_http_url` (CWE-319) flagged the two literal
loopback URLs in the staging/production `backend_url` fields. The URLs
are intentional per the Phase A contract § 7 — the mTLS boundary is
client → gateway; the gateway → BoJ hop is loopback-isolated and does
not itself require TLS — but the wire form does not need to live in
this file. The contract document is its canonical site.
Replaces `backend_url = "http://127.0.0.1:7700"` and
`backend_url = "http://unix:/run/boj/gnosis.sock:/"` with a structured
`backend` block (`transport` + `host`/`port` for staging,
`transport` + `socket_path` for production). The wire-form
`BACKEND_URL` env var is composed from these components at deploy
time per the contract; the comment block above `let deployment`
points readers at the contract for the canonical form.
Same load-bearing facts; no literal http:// string in the file.
Refs hyperpolymath/standards#91
Refs hyperpolymath/standards#100
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>1 parent 4683907 commit c7c0382
1 file changed
Lines changed: 23 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
| 35 | + | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
39 | | - | |
40 | | - | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
41 | 44 | | |
42 | 45 | | |
43 | 46 | | |
| |||
50 | 53 | | |
51 | 54 | | |
52 | 55 | | |
53 | | - | |
54 | | - | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
55 | 63 | | |
56 | 64 | | |
57 | 65 | | |
| |||
64 | 72 | | |
65 | 73 | | |
66 | 74 | | |
67 | | - | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
68 | 79 | | |
69 | 80 | | |
70 | 81 | | |
| |||
89 | 100 | | |
90 | 101 | | |
91 | 102 | | |
92 | | - | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
93 | 107 | | |
94 | 108 | | |
95 | | - | |
| 109 | + | |
96 | 110 | | |
97 | 111 | | |
98 | 112 | | |
| |||
0 commit comments