Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
8162205
🛡️ Sentinel: [CRITICAL] scripts 내 JSON DoS 취약점 수정 (파일 읽기 크기 제한)
seonghobae Aug 4, 2026
145c937
Merge branch 'main' into sentinel-json-dos-scripts-17708564860587448239
opencode-agent[bot] Aug 4, 2026
f309543
chore(ci): harden bounded JSON readers
seonghobae Aug 4, 2026
9ca363c
chore(ci): trigger bounded JSON hardening
seonghobae Aug 4, 2026
527ca59
chore(ci): add one-time bounded JSON patcher
seonghobae Aug 4, 2026
81a65d4
chore(ci): run bounded JSON hardening patch
seonghobae Aug 4, 2026
a98a0c8
chore(ci): retry bounded JSON hardening
seonghobae Aug 4, 2026
cb952b2
fix(ci): configure bounded JSON runner identity
seonghobae Aug 4, 2026
c500956
fix(ci): configure bounded JSON runner identity
seonghobae Aug 4, 2026
e3f2f34
fix(ci): rely on repository lint gates
seonghobae Aug 4, 2026
c794a5b
fix(ci): install pinned coverage plugin for hardening gate
seonghobae Aug 4, 2026
ba71b0f
fix(security): generate descriptor-safe bounded JSON hardening
seonghobae Aug 4, 2026
c7c1100
ci: run descriptor-safe JSON hardening once
seonghobae Aug 4, 2026
dfb9708
fix(ci): pin hardening validation tools
seonghobae Aug 4, 2026
0d758be
ci: normalize generated bounded JSON sources
seonghobae Aug 4, 2026
c217aea
ci: normalize bounded JSON escape fixture
seonghobae Aug 4, 2026
0627f95
fix(ci): include PR governance reader in shared hardening
seonghobae Aug 4, 2026
7d32c1e
fix(ci): apply safe lint fixes to generated hardening
seonghobae Aug 4, 2026
a5fb88d
fix(ci): run generated tests with repository import path
seonghobae Aug 4, 2026
2c6e659
fix(ci): exercise actual invalid UTF-8 input
seonghobae Aug 4, 2026
77098bb
fix(ci): defer full regression validation to exact-head CI
seonghobae Aug 4, 2026
a124d11
Merge remote-tracking branch 'origin/main' into sentinel-json-dos-scr…
github-actions[bot] Aug 4, 2026
8bca864
fix(security): harden bounded JSON file handling
github-actions[bot] Aug 4, 2026
6519491
fix(ci): remove stale targeted test paths
seonghobae Aug 4, 2026
f9143e9
chore(ci): remove one-time hardening runner
seonghobae Aug 4, 2026
bdda065
docs(security): state bounded JSON trust boundary precisely
seonghobae Aug 4, 2026
7569b4a
fix(tests): import repository script modules under pytest
seonghobae Aug 4, 2026
a1b76d2
chore(ci): stage one-time shape regression repair
seonghobae Aug 4, 2026
e37ac46
chore(ci): apply sales JSON shape compatibility fix
seonghobae Aug 4, 2026
97aa7ec
fix(ci): trigger sales JSON compatibility patch
seonghobae Aug 4, 2026
a69042c
chore(ci): remove redundant one-time shape fixer
seonghobae Aug 4, 2026
d62db53
fix(ci): serialize sales JSON compatibility repair
seonghobae Aug 4, 2026
f6c37f0
fix(ci): rebase compatibility commit before push
seonghobae Aug 4, 2026
e215915
fix(security): preserve JSON shape failure classification
github-actions[bot] Aug 4, 2026
9cd69b5
docs(security): document JSON failure-class preservation
seonghobae Aug 4, 2026
6957129
chore(ci): stage exact-head review follow-up
seonghobae Aug 4, 2026
29f9dd9
fix(ci): run exact-head review follow-up on branch push
seonghobae Aug 4, 2026
c28cc98
chore(ci): stage exact-head review follow-up runner
seonghobae Aug 4, 2026
2954a32
test(security): cover escaped quotes in JSON depth scanning
seonghobae Aug 4, 2026
665c5d1
test(figma): cover repo-root-relative CLI output paths
seonghobae Aug 4, 2026
c62d720
fix(figma): report outputs relative to repository root
seonghobae Aug 4, 2026
3ad2f73
chore(ci): remove temporary review follow-up workflow
seonghobae Aug 4, 2026
f787261
chore(ci): remove temporary review runner
seonghobae Aug 4, 2026
7f69dfe
test(figma): document repository-root output regression
seonghobae Aug 4, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions scripts/build_benchmark_report.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,13 @@


def _read_json(path: Path) -> dict[str, Any]:
with path.open(encoding="utf-8") as fh:
payload = json.load(fh)
# 🛡️ Sentinel: Enforce a 32MB read limit to prevent JSON DoS attacks
# (memory exhaustion or unbounded recursion) when loading untrusted files.
with path.open("rb") as fh:
content = fh.read(32 * 1024 * 1024 + 1)
if len(content) > 32 * 1024 * 1024:
raise ValueError(f"JSON file exceeds maximum allowed size: {path}")
payload = json.loads(content.decode("utf-8"))
if not isinstance(payload, dict):
raise RuntimeError(f"JSON artifact must be an object: {path}")
return payload
Expand Down
9 changes: 7 additions & 2 deletions scripts/build_buyer_packet.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,13 @@ def _sha256(path: Path) -> str:


def _read_json(path: Path) -> dict[str, Any]:
with path.open(encoding="utf-8") as fh:
payload = json.load(fh)
# 🛡️ Sentinel: Enforce a 32MB read limit to prevent JSON DoS attacks
# (memory exhaustion or unbounded recursion) when loading untrusted files.
with path.open("rb") as fh:
content = fh.read(32 * 1024 * 1024 + 1)
if len(content) > 32 * 1024 * 1024:
raise ValueError(f"JSON file exceeds maximum allowed size: {path}")
payload = json.loads(content.decode("utf-8"))
if not isinstance(payload, dict):
raise RuntimeError(f"JSON artifact must be an object: {path}")
return payload
Expand Down
9 changes: 7 additions & 2 deletions scripts/build_commercial_release.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,13 @@ def _source_commit(repo_root: Path) -> str:


def _read_json(path: Path) -> dict[str, Any]:
with path.open(encoding="utf-8") as fh:
payload = json.load(fh)
# 🛡️ Sentinel: Enforce a 32MB read limit to prevent JSON DoS attacks
# (memory exhaustion or unbounded recursion) when loading untrusted files.
with path.open("rb") as fh:
content = fh.read(32 * 1024 * 1024 + 1)
if len(content) > 32 * 1024 * 1024:
raise ValueError(f"JSON file exceeds maximum allowed size: {path}")
payload = json.loads(content.decode("utf-8"))
if not isinstance(payload, dict):
raise RuntimeError(f"JSON artifact must be an object: {path}")
return payload
Expand Down
9 changes: 7 additions & 2 deletions scripts/build_figma_evidence_sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,13 @@ def _sha256(path: Path) -> str:


def _read_json(path: Path) -> dict[str, Any]:
with path.open(encoding="utf-8") as fh:
payload = json.load(fh)
# 🛡️ Sentinel: Enforce a 32MB read limit to prevent JSON DoS attacks
# (memory exhaustion or unbounded recursion) when loading untrusted files.
with path.open("rb") as fh:
content = fh.read(32 * 1024 * 1024 + 1)
if len(content) > 32 * 1024 * 1024:
raise ValueError(f"JSON file exceeds maximum allowed size: {path}")
payload = json.loads(content.decode("utf-8"))
Comment thread
github-actions[bot] marked this conversation as resolved.
Resolved
if not isinstance(payload, dict):
raise RuntimeError(f"JSON artifact must be an object: {path}")
return payload
Expand Down
9 changes: 7 additions & 2 deletions scripts/build_procurement_due_diligence.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,13 @@ def _sha256(path: Path) -> str:


def _read_json(path: Path) -> dict[str, Any]:
with path.open(encoding="utf-8") as fh:
payload = json.load(fh)
# 🛡️ Sentinel: Enforce a 32MB read limit to prevent JSON DoS attacks
# (memory exhaustion or unbounded recursion) when loading untrusted files.
with path.open("rb") as fh:
content = fh.read(32 * 1024 * 1024 + 1)
if len(content) > 32 * 1024 * 1024:
raise ValueError(f"JSON file exceeds maximum allowed size: {path}")
payload = json.loads(content.decode("utf-8"))
if not isinstance(payload, dict):
raise RuntimeError(f"JSON artifact must be an object: {path}")
return payload
Expand Down
9 changes: 7 additions & 2 deletions scripts/build_release_evidence_index.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,13 @@


def _read_json(path: Path) -> dict[str, Any]:
with path.open(encoding="utf-8") as fh:
payload = json.load(fh)
# 🛡️ Sentinel: Enforce a 32MB read limit to prevent JSON DoS attacks
# (memory exhaustion or unbounded recursion) when loading untrusted files.
with path.open("rb") as fh:
content = fh.read(32 * 1024 * 1024 + 1)
if len(content) > 32 * 1024 * 1024:
raise ValueError(f"JSON file exceeds maximum allowed size: {path}")
payload = json.loads(content.decode("utf-8"))
if not isinstance(payload, dict):
raise RuntimeError(f"JSON artifact must be an object: {path}")
return payload
Expand Down
9 changes: 7 additions & 2 deletions scripts/sales_readiness.py
Original file line number Diff line number Diff line change
Expand Up @@ -241,8 +241,13 @@ def _read_text(path: Path) -> str:


def _read_json(path: Path) -> dict[str, Any]:
with path.open(encoding="utf-8") as fh:
return json.load(fh)
# 🛡️ Sentinel: Enforce a 32MB read limit to prevent JSON DoS attacks
# (memory exhaustion or unbounded recursion) when loading untrusted files.
with path.open("rb") as fh:
content = fh.read(32 * 1024 * 1024 + 1)
if len(content) > 32 * 1024 * 1024:
raise ValueError(f"JSON file exceeds maximum allowed size: {path}")
return json.loads(content.decode("utf-8"))


def _sha256(path: Path) -> str:
Expand Down
Loading