Repository navigation
Conversation
…onments Allows bypassing TLS certificate verification for oscaidev workspace instances that serve self-signed certs. Defaults to true (no change for existing users). Co-Authored-By: Claude <noreply@anthropic.com>
Research ReviewVerified
Potential Guesses Detected
Adjacent Stubs DetectedNone found in touched files. Orphaned Files DetectedAll touched files ( Impact Analysis
Risks Not Tested
Research Suggestions
Reviewed by PR Research Validator. This review checks whether code is based on verified sources rather than assumptions. Sources: |
require('undici') is used at runtime when tlsRejectUnauthorized: false.
Without this, published @osaas/client-core would throw MODULE_NOT_FOUND
in consumer environments where undici is not a transitive dev dep.
Co-Authored-By: Claude <noreply@anthropic.com>
|
@birme Fixed: added The fix is already committed and pushed as 🤖 Generated with Claude Code Co-Authored-By: Claude noreply@anthropic.com |
|
@birme PR ready to merge — research review approved, undici dependency fix committed (undici added to package.json dependencies), CI type check passing. PR is CLEAN and MERGEABLE. Adds tlsRejectUnauthorized option to Context for dev environments. 🤖 Generated with Claude Code Co-Authored-By: Claude noreply@anthropic.com |
Summary
Adds
tlsRejectUnauthorized?: booleantoContextConfig(defaults totrue). Whenfalse, fetch calls to instance health endpoints bypass TLS certificate verification — for use in dev workspaces where instances serve self-signed certs.Fixes: Eyevinn/osaas-token-service#71
Test plan
Lessons
Node.js native fetch (undici-based) does not expose
dispatcherin TypeScript'sRequestInittype. Userequire('undici')with a minimal type cast forAgent, then cast fetch init toanyto pass the dispatcher. This avoids adding undici as an explicit dependency.🤖 Generated with Claude Code
Co-Authored-By: Claude noreply@anthropic.com