Skip to content
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

fix: Switch InsecureSkipVerify to true #5575

Merged
merged 2 commits into from
Apr 1, 2021
Merged

Conversation

simster7
Copy link
Member

@simster7 simster7 commented Apr 1, 2021

Checklist:

@alexec
Copy link
Contributor

alexec commented Apr 1, 2021

I'm still getting

{"code":14,"message":"connection closed"}

@simster7
Copy link
Member Author

simster7 commented Apr 1, 2021

Yeah, same. Looking into it

@alexec
Copy link
Contributor

alexec commented Apr 1, 2021

It works for me if I revert this:

        dialOpts := []grpc.DialOption{
                grpc.WithDefaultCallOptions(grpc.MaxCallRecvMsgSize(MaxGRPCMessageSize)),
-               grpc.WithInsecure(),
        }
+       if as.tlsConfig != nil {
+               dialOpts = append(dialOpts, grpc.WithTransportCredentials(credentials.NewTLS(as.tlsConfig)))
+       } else {
+               dialOpts = append(dialOpts, grpc.WithInsecure())
+       }
+

``

@codecov
Copy link

codecov bot commented Apr 1, 2021

Codecov Report

Merging #5575 (a0d56b3) into master (ed54f15) will decrease coverage by 0.04%.
The diff coverage is 0.00%.

❗ Current head a0d56b3 differs from pull request most recent head 0c909a5. Consider uploading reports for the commit 0c909a5 to get more accurate results
Impacted file tree graph

@@            Coverage Diff             @@
##           master    #5575      +/-   ##
==========================================
- Coverage   47.08%   47.04%   -0.05%     
==========================================
  Files         240      240              
  Lines       15002    15002              
==========================================
- Hits         7064     7057       -7     
- Misses       7041     7046       +5     
- Partials      897      899       +2     
Impacted Files Coverage Δ
cmd/argo/commands/server.go 34.51% <0.00%> (ø)
workflow/metrics/server.go 12.50% <0.00%> (-4.17%) ⬇️
workflow/controller/operator.go 70.69% <0.00%> (-0.28%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ed54f15...0c909a5. Read the comment docs.

@alexec
Copy link
Contributor

alexec commented Apr 1, 2021

And I run this

./dist/argo server --secure --port 2345

I don't seem to need GODEBUG=x509ignoreCN=0.

@simster7
Copy link
Member Author

simster7 commented Apr 1, 2021

@alexec I reverted #5550 and it works. I had done so in my local from an earlier test bud hadn't noticed. I just tested and it also works for me. We should be good to go.

@simster7 simster7 merged commit 4e450e2 into argoproj:master Apr 1, 2021
simster7 added a commit that referenced this pull request Apr 1, 2021
@simster7 simster7 mentioned this pull request Apr 1, 2021
14 tasks
simster7 added a commit that referenced this pull request Apr 1, 2021
@simster7 simster7 mentioned this pull request Apr 19, 2021
50 tasks
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.

None yet

2 participants