-
Notifications
You must be signed in to change notification settings - Fork 10.4k
TME-153 - new reference architecture diagram about Cloudflare app svc… #19789
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
Merged
Merged
Changes from 1 commit
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
103 changes: 103 additions & 0 deletions
103
src/content/docs/reference-architecture/diagrams/security/fips-140-3.mdx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,103 @@ | ||
| --- | ||
| title: FIPS 140 level 3 compliance with Cloudflare Application Services | ||
| pcx_content_type: reference-architecture-diagram | ||
| sidebar: | ||
| order: 1 | ||
| label: FIPS 140 level 3 compliance with Cloudflare Application Services | ||
| updated: 2025-02-06 | ||
| --- | ||
|
|
||
| import { Tabs, Steps, TabItem, DirectoryListing } from "~/components"; | ||
|
|
||
| ## Introduction | ||
|
|
||
| This document outlines a reference architecture for achieving Federal Information Processing Standard (FIPS) 140 Level 3 compliance using Cloudflare's Application Services. FIPS 140 is a U.S. government standard that specifies security requirements for cryptographic modules protecting sensitive information in computer and telecommunication systems. | ||
|
|
||
| FIPS 140 defines four security levels, with Level 3 being the most stringent for non-military applications. It mandates physical tamper-resistance to prevent unauthorized access to cryptographic keys and critical security parameters. This includes measures like robust enclosures, tamper-evident seals, and identity-based authentication. | ||
|
|
||
| Achieving FIPS 140 compliance, particularly Level 3, is crucial for organizations handling sensitive data, especially those in regulated industries like: | ||
|
|
||
| - **Government**: Federal agencies and contractors processing sensitive government information. | ||
| - **Healthcare**: Organizations handling protected health information (PHI) under HIPAA. | ||
| - **Financial** Services: Institutions dealing with financial transactions and customer data. | ||
| - **Defense**: Contractors working on defense projects requiring stringent security measures. | ||
|
|
||
| FIPS 140 compliance demonstrates a strong commitment to data security, builds trust with customers and partners, and ensures adherence to regulatory requirements. This reference architecture provides a comprehensive guide to leveraging Cloudflare's robust security features to meet these stringent standards. | ||
|
|
||
| ## FIPS 140-3 levels | ||
|
|
||
| Organizations use the FIPS 140-3 standard to ensure that the hardware they select meets specific security requirements. The FIPS certification standard defines four increasing, qualitative levels of security | ||
|
|
||
| <Tabs syncKey="dashPlusAPI"> <TabItem label="Level 1"> | ||
|
|
||
| Requires production-grade equipment and externally tested algorithms. | ||
|
|
||
| </TabItem> <TabItem label="Level 2"> | ||
|
|
||
| Adds requirements for physical tamper-evidence and role-based authentication. | ||
|
|
||
| </TabItem> <TabItem label="Level 3"> | ||
|
|
||
| Adds requirements for physical tamper-resistance and identity-based authentication. There must also be physical or logical separation between the interfaces by which "critical security parameters" enter and leave the module. Private keys can only enter or leave in encrypted form. Level 3 also requires the module to detect and react to out-of-range voltage or temperature (environmental failure protection, or EFP), or alternatively undergo environmental failure testing (EFT). | ||
nouvellonsteph marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| </TabItem> <TabItem label="Level 4"> | ||
|
|
||
| This level makes the physical security requirements more stringent, requiring the ability to be tamper-active, erasing the contents of the device if it detects various forms of environmental attack. EFP and protection against fault injection is required as well as multi-factor authentication. | ||
|
|
||
| </TabItem> </Tabs> | ||
|
|
||
| ## Key components | ||
|
|
||
| - **Cloudflare Keyless SSL**: A service that allows organizations to use Cloudflare's SSL/TLS protection while keeping their private keys securely stored in their own infrastructure, ensuring private keys remain under their control and never leave their premises, while still benefiting from Cloudflare's DDoS protection and performance optimization features. | ||
| - **Cloudflare Tunnel**: Provides a secure, encrypted connection between Cloudflare's edge and the private infrastructure hosting CloudHSM, protecting data in transit. | ||
nouvellonsteph marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| - **Hardware Security module**: A FIPS 140-2 Level 3 compliant HSM that securely manages cryptographic keys. Cloudflare supports a handful of HSMs, including AWS CloudHSM, Azure Key Vault, and Google Cloud KMS. | ||
|
|
||
| ## Architecture overview | ||
|
|
||
| The architecture diagram below illustrates the key components and data flow for achieving FIPS 140 Level 3 compliance with Cloudflare Application Services and all its required components. | ||
|
|
||
| <div style={{ display: 'flex', justifyContent: 'center', width: '100%' }}> | ||
| ```mermaid | ||
| flowchart TB | ||
| User((User/Client)) --> |1.SNI = keyless.example.com| CF[Cloudflare Edge Network] | ||
|
|
||
| subgraph CF [Cloudflare Edge] | ||
| KeylessSSL[Keyless SSL Service] | ||
| end | ||
|
|
||
| subgraph Private[Private Infrastructure] | ||
| Tunnel[Cloudflare Tunnel] | ||
| HSM[Hardware Security Module] | ||
| KeylessModule[Keyless Module] | ||
| end | ||
|
|
||
| Tunnel -->|2.Establish tunnel| KeylessSSL | ||
| KeylessSSL -->|3.Keyless operation required| Tunnel | ||
| Tunnel -->|4.Forward to HSM| KeylessModule | ||
| KeylessModule -->|5.Key Operations via PKCS11| HSM | ||
|
|
||
| classDef cloudflare fill:#F6821F,stroke:#fff,stroke-width:2px,color:#fff | ||
| classDef aws fill:#232F3E,stroke:#fff,stroke-width:2px,color:#fff | ||
| classDef default fill:#fff,stroke:#000,stroke-width:2px, color:#000 | ||
|
|
||
| class CF,KeylessSSL,Tunnel,KeylessModule cloudflare | ||
| class HSM aws | ||
| class User default | ||
|
|
||
| ``` | ||
| </div> | ||
|
|
||
| <Steps> | ||
| 1. **User/Client**: Initiates an HTTPS request to a domain protected by Cloudflare. The Server Name Indication (SNI) extension in the request specifies the domain name, e.g., `keyless.example.com`. That domain is mapped to a certificate declared as [keyless](https://developers.cloudflare.com/ssl/keyless-ssl/), which means that only the public is being imported to Cloudflare, but a keyless listener is also declared, for subsequent key operations. | ||
nouvellonsteph marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| 2. **Cloudflare secure tunnel establishment**: The Cloudflare [tunnel](https://developers.cloudflare.com/cloudflare-one/connections/connect-networks/) component is used to establish a secure and reliable connection with Cloudflare's Edge Network. Only outgoing traffic is leaving the perimeter and the traffic can be narrowed down by a firewall. That secure connectivity will be used as a secured overlay for the key operations. | ||
nouvellonsteph marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| 3. **Key Operations**: Cloudflare [SSL](https://developers.cloudflare.com/ssl/) is detecting a keyless operations is necessary and then sends all the key operations towards the keyless module installed on the private infrastructure. All the traffic is flowing through the previously established secured tunnel. | ||
nouvellonsteph marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| 4. **Keyless Module**: The [keyless module](https://developers.cloudflare.com/ssl/keyless-ssl/configuration/cloudflare-tunnel/#install) is responsible for forwarding the key operations to the Hardware Security Module (HSM) for cryptographic operations. The keyless module is a software component that acts as a proxy between Cloudflare and the HSM, ensuring that the private key never leaves the HSM. | ||
nouvellonsteph marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| 5. **Key operations via PKCS11**: The HSM performs cryptographic operations using the private key stored securely within the HSM. The HSM is a tamper-resistant device that securely manages cryptographic keys and performs cryptographic operations, ensuring the highest level of security for sensitive data. | ||
| </Steps> | ||
|
|
||
| ## Further reading | ||
| - [Cloudflare Keyless SSL](https://developers.cloudflare.com/ssl/keyless-ssl) | ||
| - [Cloudflare Tunnel](https://developers.cloudflare.com/cloudflare-one/connections/connect-networks/) | ||
| - [Keyless SSL with secured Tunnel](https://developers.cloudflare.com/ssl/keyless-ssl/configuration/cloudflare-tunnel/) | ||
nouvellonsteph marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| - Supported HSMs: | ||
| <DirectoryListing folder="ssl/keyless-ssl/hardware-security-modules" descriptions /> | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.