kubesphere / kubesphere/ks-devops
How do disable ssl verification for s2i git
- Dominant language
- Go
- Stars
- 164
- Forks
- 140
- PR merge metrics
- No merged PRs in 30d
Description
### What is version of KubeSphere DevOps has the issue?
3.2.1
### How did you install the Kubernetes? Or what is the Kubernetes distribution?
_No response_
### What happened?
use s2i , git url incloud https, how to cancel https?
if use jenkinsfile. code is :
```
sh 'git config --global http.sslVerify false'
```
if is s2i , how to set ?
error images:

### Relevant log output
_No response_
### Additional information
backend code:
handler
https://github.com/kubesphere/kubesphere/blob/master/pkg/kapis/resources/v1alpha2/handler.go#L289
go-git
https://github.com/kubesphere/console/blob/master/src/stores/s2i/builder.js#L226
https://github.com/kubesphere/kubesphere/blob/7d9563dca1e5d4f81615b7a1e650f7c991fe31cd/pkg/models/git/git.go#L81
disabled TLS:
https://pkg.go.dev/github.com/go-git/go-git/v5#ListOptions
frontend code:
https://github.com/kubesphere/console/blob/master/src/stores/s2i/builder.js#L226
Contributor guide
Research direction
Start by reading the referenced handler.go and git.go locations, then compare the S2I flow in console/src/stores/s2i/builder.js with go-git's ListOptions documentation. Done means the S2I Git checkout has a defined, documented way to configure TLS verification and the relevant flow is covered by validation or tests.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- git, go, kubernetes
- Domain
- devops
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100