-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Certificate issues in current master branch (HEAD@510ea94) #2027
Comments
/cc @vieux @dongluochen |
What I don't understand here is this: Get https://swarm-node-**04a**.cybertonica.aws:2376/info: x509: certificate is valid for swarm-node-04a.cybertonica.aws, not swarm-node-05a.cybertonica.aws Addr=swarm-node-04a.cybertonica.aws:2376 I don't understand how that error log like can even show 05a, when we're clearly connecting to 04a. |
@diogomonica There is a Current implementation of
I've pushed a PR (docker/engine-api#173) to remove that behavior. |
That makes sense, thank you for the detail. "But if its not empty, we also check if engine'e hostname matches ServerName in provided TLS config." I don't think this is a "we also check", I think this is a "we only check". IIRC, if you provide a ServerName, the underlying TLS stack will only check against the provided ServerName, so it's not an additive check, it's a replacement check. |
Since engine-api prohibits use of empty `ServerName` in `TLSConfig`, lets create a separate TLS config for each engine. Signed-off-by: Eugene Chupriyanov <[email protected]>
I’ve updated PR with a fix on Swarm level. |
Since engine-api prohibits use of empty `ServerName` in `TLSConfig`, lets create a separate TLS config for each engine. Signed-off-by: Eugene Chupriyanov <[email protected]> Handle nil tls.Config Signed-off-by: Eugene Chupriyanov <[email protected]>
Should be fixed by docker/engine-api#179 |
We will merge the change docker/engine-api#179. Thanks @echupriyanov! |
fixed in #2065 |
I’ve tried to run swarm manager built from master branch (HEAD@510ea94)
And I see following certificate issues in logs:
Same error appears in build from v1.2.0-rc1 tag.
Build from tag v1.1.3 has no such errors.
The text was updated successfully, but these errors were encountered: