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

[18.03] FIPS #2625

Merged
merged 15 commits into from
May 11, 2018
Merged

[18.03] FIPS #2625

merged 15 commits into from
May 11, 2018

Conversation

cyli and others added 15 commits May 7, 2018 12:14
Signed-off-by: cyli <cyli@twistedmatrix.com>
(cherry picked from commit 0f21845)
Signed-off-by: cyli <cyli@twistedmatrix.com>
(cherry picked from commit 25c6575)
…round

constructing one.  Also make it a map instead of a list so that as
available algorithms increase not every single algorithm needs to be tried
to decrypt.

Signed-off-by: Ying Li <ying.li@docker.com>
(cherry picked from commit 34ac12e)
…eck it

from the encryption package to determine the encryption defaults.

Signed-off-by: Ying Li <ying.li@docker.com>
(cherry picked from commit 899202e)
that feature was deprecated almost a year ago.  Rely on MTLS for
encryption in transit and raft log encryption for encryption at rest.

Signed-off-by: Ying Li <ying.li@docker.com>
(cherry picked from commit 9369c1e)
…g requires FIPS:

(1) require that users of the keyutil package instead use a key formatter object,
    which could either be the default non-FIPS utility or the FIPS utility.
(2) require that users that request encryption defaults specify whether FIPS compliance
    is needed

Signed-off-by: Ying Li <ying.li@docker.com>
(cherry picked from commit 2a31867)
…or the root CA

because we no longer support encrypting the root CA key, and PKCS8 vs PKCS1 only
matters for fips if we encrypt.  We want to keep the root key PKCS1 so that mixed
version clusters will continue to work.

Signed-off-by: Ying Li <ying.li@docker.com>
(cherry picked from commit 971930e)
…o encrypt and

decrypt keys. It can be set using a setter function.

Signed-off-by: Ying Li <ying.li@docker.com>
(cherry picked from commit 4ffb0ec)
KeyReadWriter used in the node object.

Signed-off-by: Ying Li <ying.li@docker.com>
(cherry picked from commit 43f607a)
Signed-off-by: Ying Li <ying.li@docker.com>
(cherry picked from commit 6847b6c)
Signed-off-by: Ying Li <ying.li@docker.com>
(cherry picked from commit 7c61add)
…en a

cluster is first created, the FIPS value should be set and it should not
be changed through the lifetime of the cluster, because converting from
non-FIPS to FIPS should not be possible (to avoid compliance issues, even
if there were a migration process, we'd have to provide a validation tool
to ensure that the migration was complete across the cluster).

Signed-off-by: Ying Li <ying.li@docker.com>
(cherry picked from commit 6197cc5)
… reflect

this property. So all TLS certs will have the cluster ID, which says whether
the cluster is FIPS, in the Org field.

If a node loads up its TLS cert, sees that that the cluster requires FIPS,
and FIPS mode is not enabled on that node, the node will shut down.  If a
non-FIPS node gets a join token that indicate that the cluster mandates
FIPS, it will refuse to join.

Signed-off-by: Ying Li <ying.li@docker.com>
(cherry picked from commit 9943770)
…crypted

using fernet.

Signed-off-by: Ying Li <ying.li@docker.com>
(cherry picked from commit 905d35b)
…he raft

storage layer.  Also propagate it to the RaftDEKData objects in node.go
and to the RaftDEKManager in the manager.

Signed-off-by: Ying Li <ying.li@docker.com>
(cherry picked from commit ba11e51)
@codecov
Copy link

codecov bot commented May 7, 2018

Codecov Report

Merging #2625 into bump_v18.03 will increase coverage by 0.15%.
The diff coverage is 94.19%.

@@               Coverage Diff               @@
##           bump_v18.03    #2625      +/-   ##
===============================================
+ Coverage        61.48%   61.64%   +0.15%     
===============================================
  Files              133      134       +1     
  Lines            21770    21774       +4     
===============================================
+ Hits             13386    13422      +36     
+ Misses            6936     6911      -25     
+ Partials          1448     1441       -7

@nishanttotla nishanttotla merged commit 3456c07 into moby:bump_v18.03 May 11, 2018
@cyli cyli deleted the backport-fips-prs branch May 11, 2018 23:06
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.

3 participants