Skip to content

Commit b3876fb

Browse files
committed
update snapshot
1 parent 76a1c50 commit b3876fb

26 files changed

Lines changed: 2356 additions & 9 deletions

Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ PROXYMOCK_ENV = http_proxy=socks5h://localhost:4140 \
55
https_proxy=socks5h://localhost:4140 \
66
SSL_CERT_FILE=~/.speedscale/certs/tls.crt
77

8-
# Find first recording directory
9-
PROXYMOCK_RECORDING := $(shell find ./proxymock -name "recorded-*" -type d | head -n 1)
8+
# Find most recent recording or snapshot directory
9+
PROXYMOCK_RECORDING := $(shell find ./proxymock \( -name "recorded-*" -o -name "snapshot-*" \) -type d -exec ls -td {} + | head -n 1)
1010

1111
# Version management
1212
CURRENT_VERSION := $(shell cat VERSION)
@@ -53,7 +53,7 @@ load-test: build proxymock-mock
5353
echo "Waiting for outerspace-go to start..."
5454
sleep 2
5555
echo "Running load tests with proxymock..."
56-
proxymock replay --in $(PROXYMOCK_RECORDING) --vus 10 --for 1m --fail-if "latency.p95 > 200"
56+
proxymock replay --in $(PROXYMOCK_RECORDING) --no-out --vus 10 --for 1m --fail-if "latency.p95 > 200"
5757
echo "Cleaning up..."
5858
-pkill -f "outerspace-go" || true
5959
-pkill -f "proxymock" || true
@@ -93,7 +93,7 @@ http-test-recording: build
9393

9494
proxymock-mock:
9595
mkdir -p logs
96-
nohup proxymock mock --in $(PROXYMOCK_RECORDING) > logs/proxymock-mock.log 2>&1 & \
96+
nohup proxymock mock --in $(PROXYMOCK_RECORDING) --no-out > logs/proxymock-mock.log 2>&1 & \
9797
sleep 2
9898
@if ! pgrep -f "proxymock mock" > /dev/null; then \
9999
echo "Error: Proxymock is NOT mocking!"; \

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v1.1.2
1+
v1.1.3

k8s/client-deployment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ spec:
1616
spec:
1717
containers:
1818
- name: outerspace-client
19-
image: ghcr.io/speedscale/outerspace-go-client:v1.1.2
19+
image: ghcr.io/speedscale/outerspace-go-client:v1.1.3
2020
env:
2121
- name: HTTP_SERVER_ADDR
2222
value: "http://outerspace-server:80"

k8s/kustomization.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,6 @@ commonLabels:
1515

1616
images:
1717
- name: ghcr.io/speedscale/outerspace-go
18-
newTag: v1.1.2
18+
newTag: v1.1.3
1919
- name: ghcr.io/speedscale/outerspace-go-client
20-
newTag: v1.1.2
20+
newTag: v1.1.3

k8s/server-deployment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ spec:
1616
spec:
1717
containers:
1818
- name: outerspace-server
19-
image: ghcr.io/speedscale/outerspace-go:v1.1.2
19+
image: ghcr.io/speedscale/outerspace-go:v1.1.3
2020
ports:
2121
- containerPort: 8080
2222
name: http
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"id":"0a6566cc-5f7b-4bf7-a395-6480de0820fa","meta":{"name":"outerspace-server-with-nasa","startTime":"2025-09-09T16:14:28.403788523Z","endTime":"2025-09-09T16:15:29.195657324Z","createdAt":"2025-09-09T16:15:58.975099784Z","executionStartTime":"2025-09-09T16:15:59.987476533Z","executionEndTime":"2025-09-09T16:16:00.751328380Z","services":["outerspace-server"],"namespaces":[{"inspector":{"clusterName":"staging-decoy"},"name":"default"}],"serviceName":"outerspace-server"},"tokenConfigId":"standard","status":"Complete","processingDetails":"No Errors","recordsProcessed":"20","tokenizerConfig":{"name":"standard","id":"standard","generatorExpectedEnvironment":{},"responderExpectedEnvironment":{},"protected":true},"tags":{"action.jsonl_size":"17477","affected-by-transforms.jsonl_size":"0","analyzer":"v2.3.783","artifactsVersion":"1","bad-rrs.jsonl_size":"0","cmdline":"analyzer snapshot --snapshot s3://staging-sstenant-elastic/default/scenarios/0a6566cc-5f7b-4bf7-a395-6480de0820fa.json --raw s3select://staging-sstenant-elastic/default --upload-to s3://staging-sstenant-elastic/default/scenarios --app-url api-gateway:9443 --notify-tenant 185cf1fa-a110-498a-b8ed-4e067062fe4c --import-type rpc","full_action.grpc.gz_size":"3346","generator_var_cache.jsonl_size":"0","raw.jsonl_size":"92706","reaction.jsonl_size":"40974","responder_var_cache.jsonl_size":"0","rrpair_transforms.jsonl_size":"0","sig_rr_mappings.jsonl_size":"1103","snapshot-log.jsonl_size":"8600","streams.jsonl_size":"0","summary.json_size":"4905","tokens.jsonl_size":"7348","transform-changes.jsonl_size":"960"},"filter_expression":{"conditions":[{"filters":[{"include":true,"timeRange":{"startTime":"2025-09-09T16:00:56Z","endTime":"2025-09-09T16:15:56.999Z"}}]},{"filters":[{"include":true,"source":"RRPAIR_SOURCE_GOPROXY"}]},{"filters":[{"include":true,"service":"outerspace-server"}]}]},"created":{"ts":"2025-09-09T16:15:58.980880663Z","actor":{"id":"2bc3c186-42be-4951-a7b7-f31e99b3af5e","type":"ActorType_USER","displayName":"Ken Ahrens (ken@speedscale.com)"},"credential":{"type":"CredentialType_BEARER_TOKEN"}},"inTraffic":{"outerspace-server:outerspace-server:80":{"name":"outerspace-server","port":80,"numRequests":10,"resBodyBytes":3781,"detectedTechHash":{"HTTP":"both","JSON":"res"},"detectedTech":"HTTP,JSON","protocol":"http","firstDetectedTech":"JSON","percentageOfTotal":100,"avgLatency":87,"totalDuration":869,"totalBytes":"3567","totalBytesHumanized":"3.6 kB","hostname":"outerspace-server"}},"outTraffic":{"outerspace-server:api.nasa.gov:443":{"name":"outerspace-server","port":443,"numRequests":2,"resBodyBytes":2408,"detectedTechHash":{"HTTP":"both","JSON":"res","TLS":"both"},"detectedTech":"TLS,HTTP,JSON","protocol":"https","tls":true,"alpn":"h2","firstDetectedTech":"JSON","percentageOfTotal":20,"avgLatency":154,"totalDuration":307,"totalBytes":"1204","totalBytesHumanized":"1.2 kB","hostname":"api.nasa.gov"},"outerspace-server:api.spacexdata.com:443":{"name":"outerspace-server","port":443,"numRequests":6,"resBodyBytes":21196,"detectedTechHash":{"HTTP":"both","JSON":"res","TLS":"both"},"detectedTech":"JSON,TLS,HTTP","protocol":"https","tls":true,"alpn":"h2","firstDetectedTech":"JSON","percentageOfTotal":60,"avgLatency":21,"totalDuration":124,"totalBytes":"19769","totalBytesHumanized":"20 kB","hostname":"api.spacexdata.com"},"outerspace-server:numbersapi.com:80":{"name":"outerspace-server","port":80,"numRequests":2,"resBodyBytes":171,"detectedTechHash":{"HTTP":"both","JSON":"res"},"detectedTech":"HTTP,JSON","protocol":"http","firstDetectedTech":"JSON","percentageOfTotal":20,"avgLatency":4,"totalDuration":7,"totalBytes":"85","totalBytesHumanized":"85 B","hostname":"numbersapi.com"}},"processingStepEvents":{"prepare":{"name":"prepare","description":"preparing snapshot","startTime":"2025-09-09T16:15:59.987015637Z","endTime":"2025-09-09T16:16:00.032677892Z","severity":"RES_INFO","complete":true,"duration":"0.045662255s","Tags":{"stage":"0","stagesTotal":"2"}},"transform":{"name":"transform","description":"stage 1/2: queried 20 rrpairs","startTime":"2025-09-09T16:16:00.032677892Z","endTime":"2025-09-09T16:16:00.478905116Z","severity":"RES_INFO","complete":true,"duration":"0.446227224s","Tags":{"stage":"1","stagesTotal":"2"}},"upload":{"name":"upload","description":"stage 2/2: 20/0 request-response pairs processed (3.373ms per RRPair)","startTime":"2025-09-09T16:16:00.478905116Z","endTime":"2025-09-09T16:16:00.478905116Z","severity":"RES_INFO","duration":"0s","Tags":{"rrsProcessed":"20","rrsTotal":"0","stage":"2","stagesTotal":"2"}}}}
Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
### RESPONSE (MOCK) ###
2+
```
3+
Access-Control-Allow-Origin: *
4+
Access-Control-Expose-Headers: X-RateLimit-Limit\, X-RateLimit-Remaining
5+
Age: 2
6+
Content-Encoding: gzip
7+
Content-Type: application/json
8+
Date: Tue\, 09 Sep 2025 16:14:29 GMT
9+
Strict-Transport-Security: max-age=31536000; includeSubDomains; preload
10+
Vary: Accept-Encoding
11+
Via: https/1.1 api-umbrella (ApacheTrafficServer [cMsSf ])
12+
X-Api-Umbrella-Request-Id: cp5t0tkhsljd51193gq0
13+
X-Cache: MISS
14+
X-Content-Type-Options: nosniff
15+
X-Frame-Options: DENY
16+
X-Ratelimit-Limit: 10
17+
X-Ratelimit-Remaining: 9
18+
X-Vcap-Request-Id: 0bbac544-5dd5-4bbe-691e-5806c3ee029a
19+
```
20+
21+
```
22+
{
23+
"date": "2025-09-09",
24+
"explanation": "What's that rising up from the Earth? When circling the Earth on the International Space Station early in July, astronaut Nicole Ayers saw an unusual type of lightning rising up from the Earth: a gigantic jet. The powerful jet appears near the center of the featured image in red, white, and blue. Giant jet lightning has only been known about for the past 25 years. The atmospheric jets are associated with thunderstorms and extend upwards towards Earth's ionosphere. The lower part of the frame shows the Earth at night, with Earth's thin atmosphere tinted green from airglow. City lights are visible, sometimes resolved, but usually creating diffuse white glows in intervening clouds. The top of the frame reveals distant stars in the dark night sky. The nature of gigantic jets and their possible association with other types of Transient Luminous Events (TLEs) such as blue jets and red sprites remain active topics of research.",
25+
"hdurl": "https://apod.nasa.gov/apod/image/2509/JetIss_nasa_6604.jpg",
26+
"media_type": "image",
27+
"service_version": "v1",
28+
"title": "Up from the Earth: Gigantic Jet Lightning",
29+
"url": "https://apod.nasa.gov/apod/image/2509/JetIss_nasa_960.jpg"
30+
}
31+
```
32+
33+
### SIGNATURE ###
34+
```
35+
http:host is api.nasa.gov
36+
http:method is GET
37+
http:queryparams is api_key=DEMO_KEY
38+
http:url is /planetary/apod
39+
```
40+
41+
### REQUEST ###
42+
```
43+
GET https://api.nasa.gov:443/planetary/apod?api_key=DEMO_KEY HTTP/2.0
44+
Accept-Encoding: gzip
45+
Host: api.nasa.gov, api.nasa.gov
46+
User-Agent: Go-http-client/2.0
47+
```
48+
49+
```
50+
```
51+
52+
### METADATA ###
53+
```
54+
direction: OUT
55+
uuid: 610f2ea4-6ce0-4084-a2a7-a5e9d1b2e914
56+
ts: 2025-09-09T16:14:28.882708885Z
57+
duration: 153ms
58+
tags: captureMode=proxy, decoded=true, k8sAppLabel=outerspace-server, k8sAppPodName=outerspace-server-5ccc5d6597-xhkl6, k8sAppPodNamespace=default, k8sClusterName=staging-decoy, proxyId=outerspace-server-5ccc5d6597-xhkl6, proxyProtocol=, proxyType=transparent, proxyVersion=v2.3.781, sequence=14, source=goproxy, trimmed=
59+
```
60+
61+
### INTERNAL - DO NOT MODIFY ###
62+
```
63+
json: {"msgType":"rrpair","resource":"outerspace-server","ts":"2025-09-09T16:14:28.882708885Z","isTls":true,"l7protocol":"https","duration":153,"alpn":"h2","tags":{"captureMode":"proxy","decoded":"true","k8sAppLabel":"outerspace-server","k8sAppPodName":"outerspace-server-5ccc5d6597-xhkl6","k8sAppPodNamespace":"default","k8sClusterName":"staging-decoy","proxyId":"outerspace-server-5ccc5d6597-xhkl6","proxyLocation":"out","proxyProtocol":"","proxyType":"transparent","proxyVersion":"v2.3.781","sequence":"14","source":"goproxy","trimmed":""},"uuid":"YQ8upGzgQISip6Xp0bLpFA==","direction":"OUT","cluster":"staging-decoy","namespace":"default","service":"outerspace-server","tech":"JSON","network_address":"api.nasa.gov:443","command":"GET","location":"/planetary/apod","status":"200","dlpModified":false,"dlpRule":"decoy-email-2","http":{"req":{"url":"/planetary/apod","uri":"/planetary/apod?api_key=DEMO_KEY","version":"2.0","method":"GET","host":"api.nasa.gov","headers":{"Accept-Encoding":["gzip"],"Host":["api.nasa.gov","api.nasa.gov"],"User-Agent":["Go-http-client/2.0"]},"queryParams":{"api_key":["DEMO_KEY"]}},"res":{"contentType":"application/json","statusCode":200,"statusMessage":"200 OK","headers":{"Access-Control-Allow-Origin":["*"],"Access-Control-Expose-Headers":["X-RateLimit-Limit, X-RateLimit-Remaining"],"Age":["2"],"Content-Encoding":["gzip"],"Content-Type":["application/json"],"Date":["Tue, 09 Sep 2025 16:14:29 GMT"],"Strict-Transport-Security":["max-age=31536000; includeSubDomains; preload"],"Vary":["Accept-Encoding"],"Via":["https/1.1 api-umbrella (ApacheTrafficServer [cMsSf ])"],"X-Api-Umbrella-Request-Id":["cp5t0tkhsljd51193gq0"],"X-Cache":["MISS"],"X-Content-Type-Options":["nosniff"],"X-Frame-Options":["DENY"],"X-Ratelimit-Limit":["10"],"X-Ratelimit-Remaining":["9"],"X-Vcap-Request-Id":["0bbac544-5dd5-4bbe-691e-5806c3ee029a"]},"bodyBase64":"eyJkYXRlIjoiMjAyNS0wOS0wOSIsImV4cGxhbmF0aW9uIjoiV2hhdCdzIHRoYXQgcmlzaW5nIHVwIGZyb20gdGhlIEVhcnRoPyBXaGVuIGNpcmNsaW5nIHRoZSBFYXJ0aCBvbiB0aGUgSW50ZXJuYXRpb25hbCBTcGFjZSBTdGF0aW9uIGVhcmx5IGluIEp1bHksIGFzdHJvbmF1dCBOaWNvbGUgQXllcnMgc2F3IGFuIHVudXN1YWwgdHlwZSBvZiBsaWdodG5pbmcgcmlzaW5nIHVwIGZyb20gdGhlIEVhcnRoOiBhIGdpZ2FudGljIGpldC4gVGhlIHBvd2VyZnVsIGpldCBhcHBlYXJzIG5lYXIgdGhlIGNlbnRlciBvZiB0aGUgZmVhdHVyZWQgaW1hZ2UgaW4gcmVkLCB3aGl0ZSwgYW5kIGJsdWUuIEdpYW50IGpldCBsaWdodG5pbmcgaGFzIG9ubHkgYmVlbiBrbm93biBhYm91dCBmb3IgdGhlIHBhc3QgMjUgeWVhcnMuIFRoZSBhdG1vc3BoZXJpYyBqZXRzIGFyZSBhc3NvY2lhdGVkIHdpdGggdGh1bmRlcnN0b3JtcyBhbmQgZXh0ZW5kIHVwd2FyZHMgdG93YXJkcyBFYXJ0aCdzIGlvbm9zcGhlcmUuICBUaGUgbG93ZXIgcGFydCBvZiB0aGUgZnJhbWUgc2hvd3MgdGhlIEVhcnRoIGF0IG5pZ2h0LCB3aXRoIEVhcnRoJ3MgdGhpbiBhdG1vc3BoZXJlIHRpbnRlZCBncmVlbiBmcm9tIGFpcmdsb3cuIENpdHkgbGlnaHRzIGFyZSB2aXNpYmxlLCBzb21ldGltZXMgcmVzb2x2ZWQsIGJ1dCB1c3VhbGx5IGNyZWF0aW5nIGRpZmZ1c2Ugd2hpdGUgZ2xvd3MgaW4gaW50ZXJ2ZW5pbmcgY2xvdWRzLiAgVGhlIHRvcCBvZiB0aGUgZnJhbWUgcmV2ZWFscyBkaXN0YW50IHN0YXJzIGluIHRoZSBkYXJrIG5pZ2h0IHNreS4gVGhlIG5hdHVyZSBvZiBnaWdhbnRpYyBqZXRzIGFuZCB0aGVpciBwb3NzaWJsZSBhc3NvY2lhdGlvbiB3aXRoIG90aGVyIHR5cGVzIG9mIFRyYW5zaWVudCBMdW1pbm91cyBFdmVudHMgKFRMRXMpIHN1Y2ggYXMgYmx1ZSBqZXRzIGFuZCByZWQgc3ByaXRlcyByZW1haW4gYWN0aXZlIHRvcGljcyBvZiByZXNlYXJjaC4iLCJoZHVybCI6Imh0dHBzOi8vYXBvZC5uYXNhLmdvdi9hcG9kL2ltYWdlLzI1MDkvSmV0SXNzX25hc2FfNjYwNC5qcGciLCJtZWRpYV90eXBlIjoiaW1hZ2UiLCJzZXJ2aWNlX3ZlcnNpb24iOiJ2MSIsInRpdGxlIjoiVXAgZnJvbSB0aGUgRWFydGg6IEdpZ2FudGljIEpldCBMaWdodG5pbmciLCJ1cmwiOiJodHRwczovL2Fwb2QubmFzYS5nb3YvYXBvZC9pbWFnZS8yNTA5L0pldElzc19uYXNhXzk2MC5qcGcifQ==","body":"{\"date\":\"2025-09-09\",\"explanation\":\"What's that rising up from the Earth? When circling the Earth on the International Space Station early in July, astronaut Nicole Ayers saw an unusual type of lightning rising up from the Earth: a gigantic jet. The powerful jet appears near the center of the featured image in red, white, and blue. Giant jet lightning has only been known about for the past 25 years. The atmospheric jets are associated with thunderstorms and extend upwards towards Earth's ionosphere. The lower part of the frame shows the Earth at night, with Earth's thin atmosphere tinted green from airglow. City lights are visible, sometimes resolved, but usually creating diffuse white glows in intervening clouds. The top of the frame reveals distant stars in the dark night sky. The nature of gigantic jets and their possible association with other types of Transient Luminous Events (TLEs) such as blue jets and red sprites remain active topics of research.\",\"hdurl\":\"https://apod.nasa.gov/apod/image/2509/JetIss_nasa_6604.jpg\",\"media_type\":\"image\",\"service_version\":\"v1\",\"title\":\"Up from the Earth: Gigantic Jet Lightning\",\"url\":\"https://apod.nasa.gov/apod/image/2509/JetIss_nasa_960.jpg\"}"}},"tokenList":{"JWT:api.nasa.gov":{"id":"JWT:api.nasa.gov","tokens":[{"uuid":"YQ8upGzgQISip6Xp0bLpFA==","token":{"location":"http.req.headers.Host[0]","pattern":"DATA_PATTERN_JWT","replacementValue":"YXBpLm5hc2EuZ292"}},{"uuid":"YQ8upGzgQISip6Xp0bLpFA==","token":{"location":"http.req.headers.Host[1]","pattern":"DATA_PATTERN_JWT","replacementValue":"YXBpLm5hc2EuZ292"}}]},"URI:*":{"id":"URI:*","tokens":[{"uuid":"YQ8upGzgQISip6Xp0bLpFA==","token":{"location":"http.req.headers.Access-Control-Allow-Origin[0]","pattern":"DATA_PATTERN_URI","replacementValue":"Kg=="}},{"uuid":"YQ8upGzgQISip6Xp0bLpFA==","token":{"location":"http.res.headers.Access-Control-Allow-Origin[0]","pattern":"DATA_PATTERN_URI","replacementValue":"Kg=="}}]},"UUID:0bbac544-5dd5-4bbe-691e-5806c3ee029a":{"id":"UUID:0bbac544-5dd5-4bbe-691e-5806c3ee029a","tokens":[{"uuid":"YQ8upGzgQISip6Xp0bLpFA==","token":{"location":"http.req.headers.X-Vcap-Request-Id[0]","pattern":"DATA_PATTERN_UUID","replacementValue":"MGJiYWM1NDQtNWRkNS00YmJlLTY5MWUtNTgwNmMzZWUwMjlh"}}]}},"session":"","signature":{"http:host":"YXBpLm5hc2EuZ292","http:method":"R0VU","http:queryparams":"YXBpX2tleT1ERU1PX0tFWQ==","http:url":"L3BsYW5ldGFyeS9hcG9k"},"netinfo":{"id":"8","startTime":"2025-09-09T16:14:28.882006047Z","downstream":{"established":"2025-09-09T16:14:28.638947312Z","ipAddress":"10.244.0.237","port":38276,"bytesSent":"148"},"upstream":{"established":"2025-09-09T16:14:28.718353221Z","ipAddress":"56.136.214.159","port":443,"hostname":"api.nasa.gov","bytesSent":"1178"}},"mutableSignature":{"http:host":"api.nasa.gov","http:method":"GET","http:queryparams":"api_key=DEMO_KEY","http:url":"/planetary/apod"}}
64+
```

0 commit comments

Comments
 (0)