Skip to content

Commit 3dedf17

Browse files
committed
chore(cassettes): include X-Privacy-Mode header in VCR recordings
Add x-privacy-mode to ALLOWED_HEADERS so the header is preserved in cassettes, making it visible that all API requests use privacy mode.
1 parent 1eea05e commit 3dedf17

File tree

117 files changed

+2089
-1843
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

117 files changed

+2089
-1843
lines changed

tests/cassettes/client/vcr/test_count_incidents_for_mcp_basic.yaml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,13 @@ interactions:
1414
- api.gitguardian.com
1515
User-Agent:
1616
- GitGuardian-MCP-Server/0.5.0
17+
X-Privacy-Mode:
18+
- 'true'
1719
method: GET
1820
uri: https://api.gitguardian.com/v1/incidents-for-mcp/count
1921
response:
2022
body:
21-
string: '{"count": 12096}'
23+
string: '{"count": 12098}'
2224
headers:
2325
access-control-expose-headers:
2426
- X-App-Version
@@ -33,7 +35,7 @@ interactions:
3335
cross-origin-opener-policy:
3436
- same-origin
3537
date:
36-
- Thu, 02 Apr 2026 07:56:13 GMT
38+
- Fri, 03 Apr 2026 08:42:05 GMT
3739
referrer-policy:
3840
- strict-origin-when-cross-origin
3941
server:
@@ -43,11 +45,11 @@ interactions:
4345
vary:
4446
- Cookie
4547
x-app-version:
46-
- v2.425.0
48+
- v2.426.0
4749
x-content-type-options:
4850
- nosniff
4951
x-envoy-upstream-service-time:
50-
- '108'
52+
- '82'
5153
x-frame-options:
5254
- DENY
5355
x-secrets-engine-version:

tests/cassettes/client/vcr/test_count_incidents_for_mcp_with_combined_filters.yaml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ interactions:
1414
- api.gitguardian.com
1515
User-Agent:
1616
- GitGuardian-MCP-Server/0.5.0
17+
X-Privacy-Mode:
18+
- 'true'
1719
method: GET
1820
uri: https://api.gitguardian.com/v1/incidents-for-mcp/count?status__in=TRIGGERED%2CASSIGNED&severity__in=10%2C20&validity__in=valid
1921
response:
@@ -33,7 +35,7 @@ interactions:
3335
cross-origin-opener-policy:
3436
- same-origin
3537
date:
36-
- Thu, 02 Apr 2026 07:56:15 GMT
38+
- Fri, 03 Apr 2026 08:42:07 GMT
3739
referrer-policy:
3840
- strict-origin-when-cross-origin
3941
server:
@@ -43,11 +45,11 @@ interactions:
4345
vary:
4446
- Cookie
4547
x-app-version:
46-
- v2.425.0
48+
- v2.426.0
4749
x-content-type-options:
4850
- nosniff
4951
x-envoy-upstream-service-time:
50-
- '62'
52+
- '52'
5153
x-frame-options:
5254
- DENY
5355
x-secrets-engine-version:

tests/cassettes/client/vcr/test_count_incidents_for_mcp_with_date_filter.yaml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ interactions:
1414
- api.gitguardian.com
1515
User-Agent:
1616
- GitGuardian-MCP-Server/0.5.0
17+
X-Privacy-Mode:
18+
- 'true'
1719
method: GET
1820
uri: https://api.gitguardian.com/v1/incidents-for-mcp/count?date__le=2025-12-31&date__ge=2024-01-01
1921
response:
@@ -33,7 +35,7 @@ interactions:
3335
cross-origin-opener-policy:
3436
- same-origin
3537
date:
36-
- Thu, 02 Apr 2026 07:56:16 GMT
38+
- Fri, 03 Apr 2026 08:42:08 GMT
3739
referrer-policy:
3840
- strict-origin-when-cross-origin
3941
server:
@@ -43,11 +45,11 @@ interactions:
4345
vary:
4446
- Cookie
4547
x-app-version:
46-
- v2.425.0
48+
- v2.426.0
4749
x-content-type-options:
4850
- nosniff
4951
x-envoy-upstream-service-time:
50-
- '51'
52+
- '49'
5153
x-frame-options:
5254
- DENY
5355
x-secrets-engine-version:

tests/cassettes/client/vcr/test_count_incidents_for_mcp_with_search.yaml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ interactions:
1414
- api.gitguardian.com
1515
User-Agent:
1616
- GitGuardian-MCP-Server/0.5.0
17+
X-Privacy-Mode:
18+
- 'true'
1719
method: GET
1820
uri: https://api.gitguardian.com/v1/incidents-for-mcp/count?search=aws
1921
response:
@@ -33,7 +35,7 @@ interactions:
3335
cross-origin-opener-policy:
3436
- same-origin
3537
date:
36-
- Thu, 02 Apr 2026 07:56:17 GMT
38+
- Fri, 03 Apr 2026 08:42:08 GMT
3739
referrer-policy:
3840
- strict-origin-when-cross-origin
3941
server:
@@ -43,11 +45,11 @@ interactions:
4345
vary:
4446
- Cookie
4547
x-app-version:
46-
- v2.425.0
48+
- v2.426.0
4749
x-content-type-options:
4850
- nosniff
4951
x-envoy-upstream-service-time:
50-
- '642'
52+
- '143'
5153
x-frame-options:
5254
- DENY
5355
x-secrets-engine-version:

tests/cassettes/client/vcr/test_count_incidents_for_mcp_with_severity_filter.yaml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ interactions:
1414
- api.gitguardian.com
1515
User-Agent:
1616
- GitGuardian-MCP-Server/0.5.0
17+
X-Privacy-Mode:
18+
- 'true'
1719
method: GET
1820
uri: https://api.gitguardian.com/v1/incidents-for-mcp/count?severity__in=10%2C20
1921
response:
@@ -33,7 +35,7 @@ interactions:
3335
cross-origin-opener-policy:
3436
- same-origin
3537
date:
36-
- Thu, 02 Apr 2026 07:56:15 GMT
38+
- Fri, 03 Apr 2026 08:42:07 GMT
3739
referrer-policy:
3840
- strict-origin-when-cross-origin
3941
server:
@@ -43,11 +45,11 @@ interactions:
4345
vary:
4446
- Cookie
4547
x-app-version:
46-
- v2.425.0
48+
- v2.426.0
4749
x-content-type-options:
4850
- nosniff
4951
x-envoy-upstream-service-time:
50-
- '57'
52+
- '52'
5153
x-frame-options:
5254
- DENY
5355
x-secrets-engine-version:

tests/cassettes/client/vcr/test_count_incidents_for_mcp_with_status_filter.yaml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,13 @@ interactions:
1414
- api.gitguardian.com
1515
User-Agent:
1616
- GitGuardian-MCP-Server/0.5.0
17+
X-Privacy-Mode:
18+
- 'true'
1719
method: GET
1820
uri: https://api.gitguardian.com/v1/incidents-for-mcp/count?status__in=TRIGGERED
1921
response:
2022
body:
21-
string: '{"count": 6188}'
23+
string: '{"count": 6189}'
2224
headers:
2325
access-control-expose-headers:
2426
- X-App-Version
@@ -33,7 +35,7 @@ interactions:
3335
cross-origin-opener-policy:
3436
- same-origin
3537
date:
36-
- Thu, 02 Apr 2026 07:56:14 GMT
38+
- Fri, 03 Apr 2026 08:42:06 GMT
3739
referrer-policy:
3840
- strict-origin-when-cross-origin
3941
server:
@@ -43,11 +45,11 @@ interactions:
4345
vary:
4446
- Cookie
4547
x-app-version:
46-
- v2.425.0
48+
- v2.426.0
4749
x-content-type-options:
4850
- nosniff
4951
x-envoy-upstream-service-time:
50-
- '51'
52+
- '48'
5153
x-frame-options:
5254
- DENY
5355
x-secrets-engine-version:

tests/cassettes/client/vcr/test_get_audit_logs.yaml

Lines changed: 55 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -14,69 +14,78 @@ interactions:
1414
- api.gitguardian.com
1515
User-Agent:
1616
- GitGuardian-MCP-Server/0.5.0
17+
X-Privacy-Mode:
18+
- 'true'
1719
method: GET
1820
uri: https://api.gitguardian.com/v1/audit_logs?per_page=10
1921
response:
2022
body:
21-
string: '[{"id": 20290245, "api_token_id": null, "member_id": 1139585, "member_email":
22-
"ghislain.casier@gitguardian.com", "member_name": "Ghislain CASIER", "date":
23-
"2026-04-02T07:24:14.392589Z", "data": {"type": "saml_sso"}, "event_name":
24-
"user.logged_in", "action_type": "OTHER", "target_ids": ["1137449"], "ip_address":
25-
"185.175.151.131"}, {"id": 20289873, "api_token_id": null, "member_id": 1322458,
26-
"member_email": "hugo.guiheneuf@gitguardian.com", "member_name": "Hugo GUIH\u00c9NEUF",
27-
"date": "2026-04-02T07:07:18.407023Z", "data": {"name": "ggshield token 2026-04-02",
28-
"expire_at": null}, "event_name": "personal_access_token.created", "action_type":
29-
"CREATE", "target_ids": ["c3d1071f-572f-478f-a511-c8edaf03bb8f"], "ip_address":
30-
"185.175.151.131"}, {"id": 20289870, "api_token_id": null, "member_id": 1322458,
31-
"member_email": "hugo.guiheneuf@gitguardian.com", "member_name": "Hugo GUIH\u00c9NEUF",
32-
"date": "2026-04-02T07:07:06.778442Z", "data": {"type": "saml_sso"}, "event_name":
33-
"user.logged_in", "action_type": "OTHER", "target_ids": ["1320326"], "ip_address":
34-
"185.175.151.131"}, {"id": 20284990, "api_token_id": null, "member_id": 1121302,
35-
"member_email": "candidate.playground+eu5@gitguardian.com", "member_name":
36-
"Candidate EU5", "date": "2026-04-02T03:16:45.050099Z", "data": null, "event_name":
37-
"secret_incident.viewed", "action_type": "READ", "target_ids": ["8137955"],
38-
"ip_address": "108.46.132.81"}, {"id": 20284732, "api_token_id": null, "member_id":
39-
1121302, "member_email": "candidate.playground+eu5@gitguardian.com", "member_name":
40-
"Candidate EU5", "date": "2026-04-02T02:57:03.248265Z", "data": null, "event_name":
41-
"playbook.activated", "action_type": "UPDATE", "target_ids": ["9503"], "ip_address":
42-
"108.46.132.81"}, {"id": 20284731, "api_token_id": null, "member_id": 1121302,
43-
"member_email": "candidate.playground+eu5@gitguardian.com", "member_name":
44-
"Candidate EU5", "date": "2026-04-02T02:57:01.205835Z", "data": null, "event_name":
45-
"playbook.deactivated", "action_type": "UPDATE", "target_ids": ["9503"], "ip_address":
46-
"108.46.132.81"}, {"id": 20284413, "api_token_id": null, "member_id": 1121302,
47-
"member_email": "candidate.playground+eu5@gitguardian.com", "member_name":
48-
"Candidate EU5", "date": "2026-04-02T02:33:28.193702Z", "data": {"type": "basic"},
49-
"event_name": "user.logged_in", "action_type": "OTHER", "target_ids": ["1119171"],
50-
"ip_address": "108.46.132.81"}, {"id": 20281814, "api_token_id": null, "member_id":
51-
354585, "member_email": "dwayne.mcdaniel@gitguardian.com", "member_name":
52-
"Dwayne MCDANIEL", "date": "2026-04-01T23:08:18.257162Z", "data": {"type":
53-
"saml_sso"}, "event_name": "user.logged_in", "action_type": "OTHER", "target_ids":
54-
["353767"], "ip_address": "205.178.114.18"}, {"id": 20280512, "api_token_id":
55-
null, "member_id": 136170, "member_email": "eric.fourrier@gitguardian.com",
56-
"member_name": "Eric FOURRIER", "date": "2026-04-01T21:38:49.883744Z", "data":
23+
string: '[{"id": 20321653, "api_token_id": null, "member_id": 937958, "member_email":
24+
"daniele.brusca@gitguardian.com", "member_name": "Daniele BRUSCA", "date":
25+
"2026-04-03T08:20:24.694817Z", "data": {"scopes": ["scan", "incidents:read",
26+
"incidents:write", "incidents:share", "members:read", "members:write", "audit_logs:read",
27+
"teams:read", "teams:write", "honeytokens:read", "honeytokens:write", "api_tokens:read",
28+
"api_tokens:write", "ip_allowlist:read", "ip_allowlist:write", "sources:read",
29+
"sources:write", "nhi:send-inventory", "nhi:write-vault", "custom_tags:read",
30+
"custom_tags:write", "secrets:read", "secrets:write", "scan:create-incidents",
31+
"public-perimeter:read", "nhi:ownership:read", "nhi:ownership:write", "health_checks:read",
32+
"health_checks:write"], "expire_at": "2026-04-13T08:20:24.655856+00:00"},
33+
"event_name": "personal_access_token.created", "action_type": "CREATE", "target_ids":
34+
["ce80d253-c672-4c2e-ad86-c2a127fbe0ff"], "ip_address": "54.212.233.107"},
35+
{"id": 20321531, "api_token_id": null, "member_id": 1121302, "member_email":
36+
"candidate.playground+eu5@gitguardian.com", "member_name": "Candidate EU5",
37+
"date": "2026-04-03T08:16:13.796999Z", "data": null, "event_name": "secret_incident.viewed",
38+
"action_type": "READ", "target_ids": ["11038927"], "ip_address": "92.170.72.162"},
39+
{"id": 20321452, "api_token_id": null, "member_id": 1121302, "member_email":
40+
"candidate.playground+eu5@gitguardian.com", "member_name": "Candidate EU5",
41+
"date": "2026-04-03T08:10:59.237953Z", "data": {"type": "basic"}, "event_name":
42+
"user.logged_in", "action_type": "OTHER", "target_ids": ["1119171"], "ip_address":
43+
"92.170.72.162"}, {"id": 20320840, "api_token_id": null, "member_id": 701514,
44+
"member_email": "pierre.leclezio@gitguardian.com", "member_name": "Pierre
45+
LE CLEZIO", "date": "2026-04-03T07:38:22.311430Z", "data": {"type": "saml_sso"},
46+
"event_name": "user.logged_in", "action_type": "OTHER", "target_ids": ["700455"],
47+
"ip_address": "35.161.89.114"}, {"id": 20319386, "api_token_id": null, "member_id":
48+
1754656, "member_email": "candidate.playground+eu@gitguardian.com", "member_name":
49+
"CandidateEU DemoAccess", "date": "2026-04-03T06:31:23.572560Z", "data": null,
50+
"event_name": "user.logged_out", "action_type": "OTHER", "target_ids": ["1751937"],
51+
"ip_address": "35.83.131.170"}, {"id": 20319205, "api_token_id": null, "member_id":
52+
1754656, "member_email": "candidate.playground+eu@gitguardian.com", "member_name":
53+
"CandidateEU DemoAccess", "date": "2026-04-03T06:24:50.609968Z", "data": {"type":
54+
"basic"}, "event_name": "user.logged_in", "action_type": "OTHER", "target_ids":
55+
["1751937"], "ip_address": "35.83.131.170"}, {"id": 20318988, "api_token_id":
56+
null, "member_id": 1222731, "member_email": "anh.trinh.ext@gitguardian.com",
57+
"member_name": "Anh TRINH", "date": "2026-04-03T06:16:35.002089Z", "data":
58+
null, "event_name": "user.logged_out", "action_type": "OTHER", "target_ids":
59+
["1220552"], "ip_address": "35.83.131.170"}, {"id": 20318965, "api_token_id":
60+
null, "member_id": 1222731, "member_email": "anh.trinh.ext@gitguardian.com",
61+
"member_name": "Anh TRINH", "date": "2026-04-03T06:14:58.839802Z", "data":
5762
{"type": "saml_sso"}, "event_name": "user.logged_in", "action_type": "OTHER",
58-
"target_ids": ["9"], "ip_address": "86.195.76.88"}, {"id": 20272536, "api_token_id":
59-
null, "member_id": 964023, "member_email": "allan.konar@gitguardian.com",
60-
"member_name": "Allan Konar", "date": "2026-04-01T17:12:08.669786Z", "data":
61-
null, "event_name": "secret_incident.viewed", "action_type": "READ", "target_ids":
62-
["21797995"], "ip_address": "96.237.233.220"}]'
63+
"target_ids": ["1220552"], "ip_address": "35.83.131.170"}, {"id": 20318962,
64+
"api_token_id": null, "member_id": 1754656, "member_email": "candidate.playground+eu@gitguardian.com",
65+
"member_name": "CandidateEU DemoAccess", "date": "2026-04-03T06:14:34.508430Z",
66+
"data": null, "event_name": "user.logged_out", "action_type": "OTHER", "target_ids":
67+
["1751937"], "ip_address": "35.83.131.170"}, {"id": 20318944, "api_token_id":
68+
null, "member_id": 1754656, "member_email": "candidate.playground+eu@gitguardian.com",
69+
"member_name": "CandidateEU DemoAccess", "date": "2026-04-03T06:12:43.256657Z",
70+
"data": {"type": "basic"}, "event_name": "user.logged_in", "action_type":
71+
"OTHER", "target_ids": ["1751937"], "ip_address": "35.83.131.170"}]'
6372
headers:
6473
access-control-expose-headers:
6574
- X-App-Version
6675
allow:
6776
- GET, HEAD, OPTIONS
6877
content-length:
69-
- '3119'
78+
- '3680'
7079
content-security-policy:
7180
- frame-ancestors 'none'
7281
content-type:
7382
- application/json
7483
cross-origin-opener-policy:
7584
- same-origin
7685
date:
77-
- Thu, 02 Apr 2026 07:56:20 GMT
86+
- Fri, 03 Apr 2026 08:42:10 GMT
7887
link:
79-
- <https://api.gitguardian.com/v1/audit_logs?cursor=cD0yMDI3MjUzNg%3D%3D&per_page=10>;
88+
- <https://api.gitguardian.com/v1/audit_logs?cursor=cD0yMDMxODk0NA%3D%3D&per_page=10>;
8089
rel="next"
8190
referrer-policy:
8291
- strict-origin-when-cross-origin
@@ -87,11 +96,11 @@ interactions:
8796
vary:
8897
- Cookie
8998
x-app-version:
90-
- v2.425.0
99+
- v2.426.0
91100
x-content-type-options:
92101
- nosniff
93102
x-envoy-upstream-service-time:
94-
- '437'
103+
- '31'
95104
x-frame-options:
96105
- DENY
97106
x-per-page:

0 commit comments

Comments
 (0)