Conversation
- Changed util/tls/Config() to be secure by default (InsecureSkipVerify=false) - Added MICRO_TLS_INSECURE=true environment variable for development/testing - Updated documentation to emphasize security-first approach - Added comprehensive tests for TLS configuration - All existing broker tests pass Co-authored-by: asim <17530+asim@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Update default TLS configuration to enforce certificate verification
Security: Enable TLS certificate verification by default
Feb 3, 2026
Copilot stopped work on behalf of
asim due to an error
February 3, 2026 15:43
- Reverted default to InsecureSkipVerify=true for backward compatibility - Changed environment variable to MICRO_TLS_SECURE=true (opt-in security) - Added deprecation warning that logs once per process - Updated tests to reflect backward-compatible behavior - Added comprehensive migration guide - No breaking changes - production systems safe to upgrade - Security improvement is opt-in via environment variable - Planned breaking change for v6 with proper major version bump Co-authored-by: asim <17530+asim@users.noreply.github.com>
Co-authored-by: asim <17530+asim@users.noreply.github.com>
Copilot
AI
changed the title
Security: Enable TLS certificate verification by default
TLS certificate verification: opt-in security to preserve backward compatibility
Feb 3, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Addresses concerns about breaking production deployments with TLS changes. Default behavior remains
InsecureSkipVerify: trueto prevent rollout failures across distributed systems with self-signed certs or mixed CA trust.Changes
InsecureSkipVerify: true) for backward compatibilityMICRO_TLS_SECURE=trueenvironment variable enables certificate verificationUsage
Rationale
See
docs/SECURITY_MIGRATION.mdfor deployment strategies.Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.