-
Notifications
You must be signed in to change notification settings - Fork 21
feat(commands): add --skip-verify flag to skip TLS certificate verification #102
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Warning Rate limit exceeded
⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. Note Other AI code review bot(s) detectedCodeRabbit has detected other AI code review bot(s) in this pull request and will avoid duplicating their findings in the review comments. This may lead to a less comprehensive review. 📝 WalkthroughWalkthroughThis PR introduces TLS certificate verification skipping via a new Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary of ChangesHello @kvaps, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request enhances the command-line interface by introducing a Highlights
🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console. Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code Review
The pull request successfully introduces the --skip-verify flag, allowing users to disable TLS certificate verification while maintaining client authentication. This feature is well-integrated into the apply and template commands, and new client helper functions (WithClientSkipVerify, WithClientAuto) have been added to facilitate this. Dependency updates are also included, notably a fork of the siderolabs/talos library to incorporate specific fixes related to the new functionality.
…cation Add global --skip-verify flag that disables TLS server certificate verification while preserving client certificate authentication. This is useful when connecting to nodes via IP addresses not listed in the server certificate's SANs (NAT, VPN, port-forwarding scenarios). Supported in apply and template commands. Wrapped talosctl commands show a warning that the flag is not supported. Signed-off-by: Andrei Kvapil <[email protected]>
134538d to
7d2345e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 1
🤖 Fix all issues with AI agents
In `@pkg/commands/template.go`:
- Around line 110-112: The --skip-verify flag isn't applied in the file/in-place
path because templateWithFiles still wraps operations with WithClient or
WithClientMaintenance; update the loop inside templateWithFiles to check
GlobalArgs.SkipVerify and call WithClientSkipVerify (or the maintenance
equivalent) instead of WithClient/WithClientMaintenance when true, ensuring the
same conditional used in the non-file path (the code that currently returns
WithClientSkipVerify(templateFunc(args))) is mirrored in the templateWithFiles
loop so skip-verify takes effect for --file/--in-place flows.
Summary
--skip-verifyflag that disables TLS server certificate verification while preserving client certificate authenticationapplyandtemplatecommandslink upstream PR siderolabs/talos#12652
Test plan
talm applywith--skip-verifyflag against node with mismatched certificatetalm templatewith--skip-verifyflag--skip-verifySummary by CodeRabbit
New Features
--skip-verifyflag to bypass TLS certificate verification while maintaining client certificate authentication.Chores
✏️ Tip: You can customize this high-level summary in your review settings.