Skip to content

feat: Part 2 P0/P1/P2 upstream import, taint guard, CI/Docker/Helm hardening, and FinOps/cache/federation integration - #33

Merged
divyanshujethi merged 3 commits into
mainfrom
feat/part2-upstream-taint-enterprise
Dec 5, 2026
Merged

divyanshujethi merged 3 commits into
mainfrom
feat/part2-upstream-taint-enterprise

Conversation

@divyanshujethi

Copy link
Copy Markdown
Collaborator

Summary

Implements the Part 2 P0, P1, and P2 upgrades for SkillPrism:

P0 — Upstream Schema Import & Security Wiring

  • \UpstreamManager.loadFromMcpConfig\ (\src/upstream.ts, \src/index-store.ts): Replaced the no-op \serverEntryTools\ stub with real MCP tool schema import via \index.importFromMcp(..., sourceServer)\ and preserved \sourceServer\ provenance across \search_skills\ and \ ools/call.
  • Runtime Taint Tracking (\src/interceptor.ts, \src/taint-tracker.ts): Wired \ToolCallTaintTracker\ into \McpProtocolInterceptor\ to inspect both incoming tool arguments (fail-closed -32004\ block by default) and outgoing tool responses (sanitized before compaction + _meta.taintFlagged\ + optional block mode and SIEM/webhook audit events).
  • Constant-Time Header Auth (\src/proxy-server.ts): Removed ?token=\ query-string authentication (explicitly rejected with \401) and enforced SHA-256 + \ imingSafeEqual\ comparison for \Authorization: Bearer\ and \x-api-key\ headers.
  • Version Sync (\src/version.ts): Dynamically reads \1.2.4\ from \package.json\ across \cli.ts, \interceptor.ts, \proxy-server.ts, \upstream.ts, and \index-store.ts.

P1 — CI/CD, Lockfile, Docker & Helm Security

  • Release Pipeline Deduplication: Consolidated \publish-package.yml\ into .github/workflows/release.yml\ with \concurrency, \pnpm install --frozen-lockfile && pnpm run build && pnpm test\ before publish, and removed duplicate \package-lock.json.
  • Security Scanning Workflows: Added SHA-pinned .github/workflows/osv-scanner.yml\ and .github/workflows/gitleaks.yml\ while preserving required \ est\ and \�nalyze\ check job names.
  • Container & Helm Hardening: Added multi-stage non-root \Dockerfile, .dockerignore, .github/workflows/docker-publish.yml, /healthz\ + /ready\ probes + --host\ CLI binding, bumped Helm chart/values to \1.2.4, removed committed plaintext
    edis.password\ in favor of \existingSecret\ / Secret template, and documented setup in \helm/skillprism-hub/README.md\ and \NOTES.txt.

P2 — Runtime Enterprise Integrations

  • FinOps Telemetry: Wired \FinOpsMetricsExporter\ into \McpProtocolInterceptor\ and exposed Prometheus (\GET /metrics) and OTLP (\GET /metrics?format=otlp) endpoints on \SkillPrismProxyServer.
  • Two-Tier Cache & Redis Sentinel + Federation: Wired \TwoTierCache, \RedisSentinelRoutingClient, and \FederatedSkillRegistry\ into \JitHarness, \McpProtocolInterceptor, \SkillPrismProxyServer, and \cli.ts\ with zero-config standalone defaults.

Verification


  • pm run lint\ (Biome): 57 files checked, 0 errors
  • \ sc --noEmit: 0 errors

  • pm run build\ (\ sup): succeeded

  • pm test\ (\ sx --test): 117 passed, 0 failed across 26 suites (including 5 new integration tests in \ ests/part2-enterprise-integration.test.ts)

…ker/Helm hardening, and FinOps/cache/federation wiring
@github-advanced-security

Copy link
Copy Markdown

You are seeing this message because GitHub Code Scanning has recently been set up for this repository, or this pull request contains the workflow file for the Code Scanning tool.

What Enabling Code Scanning Means:

  • The 'Security' tab will display more code scanning analysis results (e.g., for the default branch).
  • Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results.
  • You will be able to see the analysis results for the pull request's branch on this overview once the scans have completed and the checks have passed.

For more information about GitHub Code Scanning, check out the documentation.

Comment thread src/proxy-server.ts Fixed
Comment thread src/proxy-server.ts Fixed
@divyanshujethi
divyanshujethi merged commit d1a40c5 into main Dec 5, 2026
16 checks passed
@divyanshujethi
divyanshujethi deleted the feat/part2-upstream-taint-enterprise branch December 5, 2026 00:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants