• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

OpenCHAMI / ochami / 39491255821
93%

Build:
DEFAULT BRANCH: main
Ran 20 Oct 2026 08:26PM UTC
Jobs 1
Files 207
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

20 Oct 2026 08:21PM UTC coverage: 92.566% (+0.02%) from 92.55%
39491255821

push

github

web-flow
fix(cmd)!: reject --cacert combined with --insecure (#204)

--insecure skips TLS certificate verification entirely, but every
service client constructor builds its transport with
WithInsecure(rt.Insecure) and then unconditionally calls
rt.UseCACert(...). UseCACert (pkg/client/client.go) always sets
InsecureSkipVerify = false once a CA is loaded, so passing both flags
together silently discarded --insecure the moment --cacert was also
set, with no warning to the user.

Since the two flags express contradictory intent (skip all
verification vs. verify against a specific CA), reject the combination
outright rather than letting one silently win, matching the existing
precedent for --cluster/--cluster-uri and --token/--no-token (both
already MarkFlagsMutuallyExclusive on rootCmd). This resolves to
CodeUsage automatically via the tree-wide WrapUsageErrors wiring, so
no additional error-handling code is needed.

TestRootCommand_RejectsCACertWithInsecure (cmd/root_errors_test.go)
covers the new rejection end to end, and ochami(1) notes that the two
flags can't be combined.

BREAKING CHANGE: Passing --cacert and --insecure together is a usage
error (exit code 2) instead of verifying against the CA and ignoring
--insecure.

Signed-off-by: Devon Bautista <17506592+synackd@users.noreply.github.com>

2 of 2 new or added lines in 1 file covered. (100.0%)

12937 of 13976 relevant lines covered (92.57%)

541.13 hits per line

Jobs
ID Job ID Ran Files Coverage
1 39491255821.1 20 Oct 2026 08:26PM UTC 207
92.57
GitHub Action Run
Source Files on build 39491255821
  • Tree
  • List 207
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #39491255821
  • 432a29b1 on github
  • Prev Build on main (#39478521374)
  • Next Build on main (#39631363142)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc