Skip to content

[WEB-10193] fix: verify TLS in feature-deployment workflow - #10297

Merged
sriramveeraghanta merged 1 commit into
previewfrom
fix/web-10193-feature-deploy-tls
Nov 16, 2026
Merged

sriramveeraghanta merged 1 commit into
previewfrom
fix/web-10193-feature-deploy-tls

Conversation

@pablohashescobar

@pablohashescobar pablohashescobar commented Nov 15, 2026 •

Copy link
Copy Markdown
Member

Description

feature-deployment.yml hardening:

  • Removed --kube-insecure-skip-tls-verify from the helm calls and --insecure-skip-tls-verify from the kubectl call, so the cluster API certificate is verified.
  • The Helm installer script is fetched from the v3.22.1 commit instead of the moving main branch, and installs that version (DESIRED_VERSION=v3.22.1). The script verifies the release checksum.

Behavior change: the kubeconfig in FEATURE_PREVIEW_KUBE_CONFIG must be able to verify the cluster API (carry the cluster CA and use a server name the certificate covers). If it relied on skipping verification, the deploy job will fail until the kubeconfig is fixed.

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • Feature (non-breaking change which adds functionality)
  • Improvement (change that would cause existing functionality to not work as expected)
  • Code refactoring
  • Performance improvements
  • Documentation update

Screenshots and Media (if applicable)

Test Scenarios

  • The workflow file parses.
  • Not run: this needs the feature-preview cluster and its secrets. Please run the "Feature Preview" workflow once on a test branch and confirm Helm installs at v3.22.1 and the deploy step reaches the cluster with verification on.

References

  • WEB-10193

Created with Claude Code

Summary by CodeRabbit

  • Chores
    • Deployment tooling now uses a fixed Helm version rather than selecting the installer version automatically.
    • Deployment operations no longer skip TLS certificate verification when connecting to Helm repositories or checking ingress details. This keeps certificate checks enabled during those steps.

…yment

Every helm and kubectl call skipped TLS verification of the cluster API,
and the Helm installer was fetched from the moving main branch in a job
that holds the kubeconfig. Verify TLS and pin the installer to the
v3.22.1 commit and version.
Copilot AI balanced review requested due to automatic review settings November 15, 2026 22:33

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.

@makeplane

makeplane Bot commented Nov 15, 2026

Copy link
Copy Markdown

Linked to Plane Work Item(s)

This comment was auto-generated by Plane

@coderabbitai

coderabbitai Bot commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The feature deployment workflow pins the Helm installer to v3.22.1 and removes insecure TLS-skip options from Helm and kubectl commands.

Changes: Feature deployment

Layer / File(s) Summary
Helm installation and cluster commands
.github/workflows/feature-deployment.yml
The workflow downloads the Helm installer from a pinned commit and sets DESIRED_VERSION=v3.22.1. Helm repository and uninstall commands, plus the ingress lookup, no longer pass insecure TLS-skip options.

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Bug fix

Suggested reviewers: mguptahub

Merge Risk: Minimal · up to 7f119

The workflow now verifies the cluster's TLS certificate and installs a pinned Helm version. The deploy job will only succeed if the feature-preview kubeconfig secret includes the cluster CA and a server name the certificate covers. The secret should also not set insecure-skip-tls-verify, or verification stays off. Run the Feature Preview workflow on a test branch to confirm before relying on it.

Pre-merge checks: Passed 4

Check name Status Explanation
Description check Passed The description follows the template sections: Description, Type of Change, Test Scenarios, and References. It explains the TLS verification change, the pinned Helm installer, and the kubeconfig requi…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Title check Passed The title '[WEB-10193] fix: verify TLS in feature-deployment workflow' matches the main change. The workflow removes the TLS-verification bypass flags from Helm and kubectl calls in feature-deployment…
Full details: Description check

Explanation

The description follows the template sections: Description, Type of Change, Test Scenarios, and References. It explains the TLS verification change, the pinned Helm installer, and the kubeconfig requirement. It marks Bug fix and Improvement as the change types. The Screenshots section keeps its placeholder comment, which is acceptable because the section applies only if relevant. Test scenarios give a clear manual verification step because the cluster is unavailable.

Full details: Title check

Explanation

The title '[WEB-10193] fix: verify TLS in feature-deployment workflow' matches the main change. The workflow removes the TLS-verification bypass flags from Helm and kubectl calls in feature-deployment.yml. The title names the change and the file. It omits the Helm installer pinning to v3.22.1, which is a secondary change.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

Share

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: bd9ba2a8-1bd8-47cf-9272-ed0060cd68d1
Commits

Reviewing files that changed from the base of the PR and between 290383d and 7f119d2.

Files selected for processing: 1

  • .github/workflows/feature-deployment.yml

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 7 remain after this review.

@pablohashescobar pablohashescobar changed the title [WEB-10193] fix(security): verify TLS in feature-deployment workflow [WEB-10193] fix: verify TLS in feature-deployment workflow Nov 16, 2026

@sriramveeraghanta sriramveeraghanta left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Precondition: FEATURE_PREVIEW_KUBE_CONFIG must carry the cluster CA. Run Feature Preview once on a test branch before relying on it.

@sriramveeraghanta
sriramveeraghanta merged commit 5f70a59 into preview Nov 16, 2026
15 checks passed
@sriramveeraghanta
sriramveeraghanta deleted the fix/web-10193-feature-deploy-tls branch November 16, 2026 20:22
sriramveeraghanta pushed a commit that referenced this pull request Nov 16, 2026
Every helm and kubectl call skipped TLS verification of the cluster API,
and the Helm installer was fetched from the moving main branch in a job
that holds the kubeconfig. Verify TLS and pin the installer to the
v3.22.1 commit and version.
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.

3 participants