Skip to content

Commit d07d14e

Browse files
committed
fixing test
1 parent eeab6f3 commit d07d14e

2 files changed

Lines changed: 10 additions & 6 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## Unreleased
44

5-
- **Observability:** New scripts **`scripts/simulate_mesh_ingest.sh`**, **`simulate_mesh_grafana.sh`**, **`simulate_capture_demo.sh`**, **`simulate_edge_scan.sh`**; Grafana dashboards **`monitoring/grafana/dashboards/spectral-mesh.json`** (cleartext/ingest wording + metric semantics row) and **`spectral-edge.json`** (**Job**/**Instance** variables, **HTTP 429** rate on throughput panel, simulation note). **`monitoring/README.md`** documents the script matrix.
5+
- **Observability:** New scripts **`scripts/simulate_mesh_ingest.sh`**, **`simulate_mesh_grafana.sh`**, **`simulate_capture_demo.sh`**, **`simulate_edge_scan.sh`**; fix **`simulate_mesh_ingest.sh`** under **`set -u`** when **`INGEST_TOKEN`** is unset (avoid empty **`extra[@]`** expansion). Grafana dashboards **`monitoring/grafana/dashboards/spectral-mesh.json`** (cleartext/ingest wording + metric semantics row) and **`spectral-edge.json`** (**Job**/**Instance** variables, **HTTP 429** rate on throughput panel, simulation note). **`monitoring/README.md`** documents the script matrix.
66
- **Docs:** Refresh **Windows/macOS** descriptions across **`README.md`**, **`docs/EDGE_VS_MESH.md`**, **`docs/EDGE.md`**, **`docs/POLICY_MESH_AND_EDGE.md`**, **`docs/ENTERPRISE_SELF_HOSTED.md`**, **`docs/SAAS_ARCHITECTURE.md`**, **`docs/INFOSEC_SUMMARY.md`**, **`docs/BACKGROUND_OF_INVENTION.md`**, and **`docs/INVENTION_DISCLOSURE_OUTLINE_US.md`** to match **ingest**, **hookwire**, optional **hooks**, and **edge** vs host rolling-buffer behavior (replacing outdated “capture stub” wording).
77
- **Windows OpenSSL discovery:** **`-windows-openssl-discovery-interval`** polls module lists via Toolhelp32 and logs **`windows_openssl_module_mapped`** (`internal/capture/winssl`).
88
- **macOS Endpoint Security (opt-in build):** **`-darwin-es-mmap-watch`** with **`go build -tags spectral_es`** (CGO) subscribes to **`ES_EVENT_TYPE_NOTIFY_MMAP`** and logs **`es_openssl_mmap`** when mapped paths look like OpenSSL (`internal/capture/esmmap`, **`internal/capture/platformhint`**). Default macOS binaries omit ES linkage; use an SDK-equipped toolchain to link **EndpointSecurity.framework**.

scripts/simulate_mesh_ingest.sh

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,17 @@ b64_encode() {
3737

3838
post_json() {
3939
local json="$1"
40-
local extra=()
40+
# With set -u, "${empty_array[@]}" errors on some Bash versions — branch instead of optional array.
4141
if [[ -n "${INGEST_TOKEN}" ]]; then
42-
extra+=(-H "X-Spectral-Capture-Token: ${INGEST_TOKEN}")
42+
curl -fsS --max-time 15 -H "Content-Type: application/json" \
43+
-H "X-Spectral-Capture-Token: ${INGEST_TOKEN}" \
44+
-X POST "$MESH_INGEST_URL" -d "$json" \
45+
-o /dev/null -w "%{http_code}\n" || true
46+
else
47+
curl -fsS --max-time 15 -H "Content-Type: application/json" \
48+
-X POST "$MESH_INGEST_URL" -d "$json" \
49+
-o /dev/null -w "%{http_code}\n" || true
4350
fi
44-
curl -fsS --max-time 15 -H "Content-Type: application/json" "${extra[@]}" \
45-
-X POST "$MESH_INGEST_URL" -d "$json" \
46-
-o /dev/null -w "%{http_code}\n" || true
4751
}
4852

4953
run_one() {

0 commit comments

Comments
 (0)