-
Notifications
You must be signed in to change notification settings - Fork 2k
swarm/init: Fix --external-ca
ignoring cacert
option
#5995
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
base: master
Are you sure you want to change the base?
Conversation
Am I wrong here, or has this been broken for 7 years and nobody noticed? 🤣 |
Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
f341ce3
to
a5aa4c5
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #5995 +/- ##
==========================================
- Coverage 59.12% 59.11% -0.02%
==========================================
Files 355 355
Lines 29740 29753 +13
==========================================
+ Hits 17583 17587 +4
- Misses 11182 11188 +6
- Partials 975 978 +3 🚀 New features to boost your workflow:
|
a5aa4c5
to
e41ef5b
Compare
Oh, someone noticed,
(and there's a couple of, now archived, internal issues tracking it); ISTR there was a security-related issue attached at some point, and there was some discussion whether the feature had to be restored or removed, and that's where things got stuck. |
Actually this isn't the same issue - the PRs you mention deal with the first cert being empty instead of defaulting to the "Trusted CA Root". This PR is about the second cert which the CLI doesn't even pass to the swarm. |
31d6292 mistakenly changed the `ToSpec` function to set all certs passed via `external-ca` to empty strings. Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
e41ef5b
to
6c2d023
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.
Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.
- What I did
31d6292 mistakenly changed the
ToSpec
function to set all certs passed viaexternal-ca
to empty strings.- How I did it
- How to verify it
integration-cli
Before:
After
$ go test -run TestSwarmInitWithExternalCA PASS ok github.com/docker/cli/cli/command/swarm 1.009
- Human readable description for the release notes
- A picture of a cute animal (not mandatory but encouraged)