Remove unused export from SslBumpConfig in security-critical module#2438
Remove unused export from SslBumpConfig in security-critical module#2438
SslBumpConfig in security-critical module#2438Conversation
Agent-Logs-Url: https://github.com/github/gh-aw-firewall/sessions/e07586e3-c8a8-4e76-8158-807e9636123d Co-authored-by: lpcox <15877973+lpcox@users.noreply.github.com>
SslBumpConfig in security-critical module
✅ Coverage Check PassedOverall Coverage
📁 Per-file Coverage Changes (2 files)
Coverage comparison generated by |
There was a problem hiding this comment.
Pull request overview
Reduces the exported API surface of the TLS interception (SSL bump) CA generation module by making the SslBumpConfig type module-private.
Changes:
- Remove
exportfrom theSslBumpConfiginterface insrc/ssl-bump.ts.
Show a summary per file
| File | Description |
|---|---|
| src/ssl-bump.ts | Makes SslBumpConfig non-exported to narrow the module’s public surface area. |
Copilot's findings
Tip
Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comments suppressed due to low confidence (1)
src/ssl-bump.ts:39
- PR description says
SslBumpConfigis only used for a file-internalgenerateSessionCa, butgenerateSessionCais currently exported from this module. If the intent is to keepgenerateSessionCainternal to reduce API surface, it should be made non-exported (or moved behind a narrower exported wrapper) instead of only un-exporting the config interface.
interface SslBumpConfig {
- Files reviewed: 1/1 changed files
- Comments generated: 1
| * Configuration for SSL Bump CA generation | ||
| */ | ||
| export interface SslBumpConfig { | ||
| interface SslBumpConfig { |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
@copilot address the review feedback |
… non-exported interface Agent-Logs-Url: https://github.com/github/gh-aw-firewall/sessions/d3d6437d-fcec-4fe2-b8a8-fd6939900785 Co-authored-by: lpcox <15877973+lpcox@users.noreply.github.com>
Fixed in 8258b96. Since export async function generateSessionCa(config: { workDir: string; commonName?: string; validityDays?: number }): Promise<CaFiles>
|
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
…rs error Agent-Logs-Url: https://github.com/github/gh-aw-firewall/sessions/fe39d17c-0681-4b39-8ef4-af0d69df95fd Co-authored-by: lpcox <15877973+lpcox@users.noreply.github.com>
Fixed in a30c75c. The ESLint |
Smoke Test: Copilot BYOK — PASS ✅
Running in BYOK offline mode ( PR by
|
|
Smoke Test Results ✅ GitHub MCP: #2437, #2436 Status: PASS
|
🤖 Smoke Test Results
PR: "Remove unused export from Overall: FAIL — file test could not be verified due to unexpanded workflow template variables.
|
Chroot Smoke Test Results
Result: ❌ Not all tests passed — Python and Node.js versions differ between host and chroot.
|
|
PRs: "fix: unexport internal DlpPattern interface in src/dlp.ts"; "refactor(cli-workflow): unexport internal-only interfaces" Warning Firewall blocked 1 domainThe following domain was blocked by the firewall during workflow execution:
network:
allowed:
- defaults
- "registry.npmjs.org"See Network Configuration for more information.
|
Smoke Test: Gemini Engine Validation
Overall status: FAIL
|
🏗️ Build Test Suite Results
Overall: 8/8 ecosystems passed — ✅ PASS
|
Smoke Test: Services Connectivity
Overall: FAIL —
|
SslBumpConfigwas exported fromsrc/ssl-bump.tsdespite never being imported anywhere — it's only used as the parameter type for the file-internalgenerateSessionCafunction. Unnecessary exports in a security-critical module (SSL CA generation for TLS interception) widen the API surface and invite misuse by callers bypassing intended validation.Change
src/ssl-bump.ts: DropexportfromSslBumpConfiginterface, making it module-private.