Encryption for distributed file system

A distributed file system with DFRAS and encryption addresses scalability and resilience issues in conventional systems, ensuring high-performance and secure data handling across large clusters.

JP2024138444AActive Publication Date: 2024-10-08WEKA IO LTD
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
JP2024111628
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Priority Date
2019-02-13
Filing Date
2024-07-11
Publication Date
2024-10-08
Estimated Expiration
2039-06-04

AI Technical Summary

Technical Problem

Conventional file systems face limitations in scalability and resilience, particularly when centralized control over metadata structures leads to data loss upon server failure, and existing solutions struggle to scale beyond a small number of metadata servers.

Method used

A distributed file system architecture that utilizes non-volatile memory (NVM) with metadata spread across many servers, employing distributed failure-resilient address spaces (DFRAS) and encryption methods to ensure data integrity and scalability, including encryption of data at rest and in transit, and fault-tolerant storage using forward error correction.

Benefits of technology

The system achieves high-performance, scalable, and fault-tolerant data storage with enhanced security, enabling encryption and resilience against failures, suitable for large clusters and diverse applications requiring secure data handling.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2024138444000001_ABST
    Figure 2024138444000001_ABST
Patent Text Reader

Abstract

To provide a method and a system for encryption in a distributed file system.SOLUTION: In a distributed file system 400, a computing device 401 comprising a front end 403 and a back end 405 is operatively coupled to a plurality of storage devices 409a to 409n. The back end comprises a plurality of buckets 407a to 407n. Each bucket establishes fault-protected stripes 411a to 411m that span two or more of the plurality of storage devices. The front end operates to encrypt data when the data enters the plurality of storage devices and to decrypt the data when the data leaves the plurality of storage devices.SELECTED DRAWING: Figure 4
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] Claiming priority

[0001] This application claims priority to U.S. Provisional Patent Application No. 62 / 682,198, filed June 8, 2018, entitled "Encryption for a Distributed Filesystem," and U.S. Patent Application No. 16 / 274,541, filed February 13, 2019, entitled "Encryption for a Distributed Filesystem." [Background technology]

[0002]

[0002] The limitations and shortcomings of conventional approaches to data storage will become apparent to those skilled in the art through a comparison of such approaches with certain aspects of the present method and system presented hereinafter in this disclosure and with reference to the drawings.

[0003] Incorporation by Reference

[0003] U.S. patent application Ser. No. 15 / 243,519, entitled "Distributed Erasure Coded Virtual Filesystem," is hereby incorporated by reference in its entirety. Summary of the Invention [Problem to be solved by the invention]

[0004]

[0004] As more fully set forth in the claims, there is provided a method and system for encryption in a distributed file system substantially as shown and / or described in connection with at least one of the figures. [Brief description of the drawings]

[0005] [Figure 1] 1A-1D illustrate various example configurations of a distributed file system in accordance with aspects of the present disclosure. [Diagram 2]FIG. 2 illustrates an example configuration of a distributed file system node in accordance with an aspect of the present disclosure. [Diagram 3] FIG. 2 illustrates another representation of a distributed file system in accordance with an example implementation of the present disclosure. [Figure 4] FIG. 2 illustrates an example of a computing device in an encrypted file system in accordance with one or more embodiments of the present disclosure. [Diagram 5] FIG. 2 illustrates an example of a cluster of computing devices in accordance with one or more embodiments of the present disclosure. [Figure 6] 4 is a flow diagram illustrating an example method for reading from a client in an encrypted file system. [Figure 7] 1 is a flow diagram illustrating an example method for writing to a client in an encrypted file system. [Figure 8] FIG. 2 illustrates an example implementation in which two distributed failure resilient address spaces reside on multiple solid-state storage disks. [Figure 9] FIG. 2 illustrates a forward error correction scheme that may be used to protect data stored in non-volatile memory of a virtual file system in accordance with an example implementation of the present disclosure. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0006]

[0014] Traditionally, file systems use centralized control over metadata structures (e.g., directories, files, attributes, file contents). If a local file system is accessible from a single server and this server fails, without further protection, the file system data may be lost. To add protection, some file systems (e.g., as offered by Network Appliance (NetApp)) have replicated metadata across two or more computers using one or more pairs of controllers in an active-passive manner. Other solutions have used multiple metadata servers in a clustered fashion (e.g., as offered by IBM GPFS, Dell EMC Isilon, Lustre, etc.). Yet, because the number of metadata servers in a traditional clustered system is limited to a small number, such systems cannot scale.

[0007]

[0015] The system in this disclosure is applicable to small clusters and can be scaled up to thousands of nodes. Example embodiments are discussed with respect to non-volatile memory (NVM), e.g., flash memory available in the form of solid-state drives (SSDs). NVM may be divided into 4kB blocks and 128MB chunks. Extents may be stored in volatile memory, e.g., RAM for fast access, and also backed up by NVM storage. Extents may store pointers to blocks, e.g., 256 pointers for 1MB of data stored in a block. In other embodiments, larger or smaller memory divisions may be used. The metadata functionality in this disclosure may be effectively spread across many servers. For example, in the case of a "hot spot" where a large load is directed to a particular part of the file system namespace, this load can be distributed across multiple nodes.

[0008]

[0016] 1 illustrates various example configurations of a distributed file system according to an embodiment of the present disclosure. A local area network (LAN) 102 is shown in FIG. 1 and includes one or more nodes 120 (indexed with integers from 1 to J, when j≧1), optionally including one or more dedicated storage nodes 106 (indexed with integers from 1 to M, when M≧1), one or more computing nodes 104 (indexed with integers from 1 to N, when N≧1), and / or an edge router connecting the LAN 102 to a remote network 118 (indicated by dashed lines). The remote network 118 optionally includes one or more storage services 114 (indexed with integers from 1 to K, when K≧1), and / or one or more dedicated storage nodes 115 (indexed with integers from 1 to L, when L≧1).

[0009]

[0017] 120 for each node j (j is an integer, where 1≦j≦J) is a networked computing device (e.g., a server, a personal computer, or the like), and device 104 n directly on the operating system of the device 104 and / or n The virtual machine includes circuitry for running processes (e.g., client processes) in one or more virtual machines running on the virtual machine.

[0010]

[0018] The compute node 104 is a networked device and can run a virtual frontend without a virtual backend. The compute node 104 can run a virtual frontend by incorporating single root input / output virtualization (SR-IOV) in the network interface card (NIC) and by using up all of the processor cores. Alternatively, the compute node The board 104 can run the virtual front end by bypassing network routing through the Linux kernel's networking stack and using the kernel's process scheduling, thus not requiring an entire core. This is useful when the user does not want to allocate an entire core to the file system, or when the networking hardware is not compatible with the file system requirements.

[0011]

[0019] 2 illustrates an example configuration of a node according to an embodiment of the disclosure. The node includes a front end 202 and a driver 208, a memory controller 204, a back end 206, and an SSD agent 214. The front end 202 may be a virtual front end, the memory controller 204 may be a virtual memory controller, the back end 206 may be a virtual back end, and the driver 208 may be a virtual driver. As used in this disclosure, a virtual file system (VFS) process is a process that implements one or more of the front end 202, the memory controller 204, the back end 206, and the SSD agent 214. Thus, in one example implementation, the node's resources (e.g., process resources and memory resources) may be shared between client processes and VFS processes. The VFS processes may be configured to require a relatively small amount of resources to minimize impact on the performance of client applications. The front end 202, memory controller 204, and / or back end 206 and / or SSD agent 214 can run on the host 201's processor or on the network adapter 218's processor. For a multi-core processor, different VFS processes can run on different cores and run different subsets of services. From the client process 212's perspective, the interface with the virtual file system is independent of the particular physical machine on which the VFS process is running. The client process only requires the presence of the driver 208 and front end 202 to fulfill their roles.

[0012]

[0020] A node can be implemented as a single tenant server running directly on an operating system (e.g., bare metal), or as a virtual machine (VM) and / or container (e.g., Linux container (LXC)) within a bare metal server. The VFS can run within an LXC container as a VM environment. Thus, within a VM, the only thing that can run is an LXC container with a VFS. In a typical bare metal environment, there is a user space application and the VFS runs within an LXC container. If the server is running other containerized applications, the VFS can run within an LXC container outside the scope of the container deployment environment (e.g., Docker).

[0013]

[0021] Nodes may be serviced by an operating system and / or a virtual machine monitor (VMM) (e.g., a hypervisor). The VMM may be used to create and run nodes on a host 201. Multiple cores may reside inside a single LXC container running a VFS, and the VFS may run on a single host 201 using a single Linux kernel. Thus, a single host 201 may have multiple front ends 202, multiple memory controllers 204, multiple back ends 206, and / or one or more drivers 208. The drivers 208 may run in kernel space outside of the LXC container.

[0014]

[0022] To run the networking stack 210 in user space 222, SR-I OV PCIe virtual functions may be used. SR-IOV allows for PCI Express isolation, so that a single physical PCI Express can be shared in a virtual environment, and different virtual functions can be provided to different virtual components on a single physical server machine. The I / O stack 210 allows VFS nodes to bypass the standard TCP / IP stack 220 and communicate directly with the network adapter 218. Portable Operating System Interface for UNIX (POSIX) VFS functions may be provided through lockless queues to the VFS driver 208. SR-IOV or full PCIe physical function addresses may also be used to drive a non-volatile memory express (NVMe) driver 214 in user space 222, thus bypassing the Linux IO stack entirely. NVMe may be used to access non-volatile storage media 216 attached via the PCI Express (PCIe) bus. The non-volatile storage medium 220 may be, for example, flash memory available in the form of a solid-state drive (SSD), or storage class memory (SCM), potentially available in the form of an SSD or memory module (DIMM). Other examples may include storage class memory technologies such as 3D-XPoint.

[0015]

[0023] The SSD may be implemented as a networked device by coupling the physical SSD 216 with the SSD agent 214 and networking 210. Alternatively, the SSD may be implemented as a networked NVMe SSD 222 or 224 by using a network protocol, such as NVMe over Fabrics (NVMe-oF). NVMe-oF can enable access to the NVMe device using redundant network links, thus providing a higher level or resiliency. The network adapters 226, 228, 230, and 232 can include hardware acceleration for connection to the NVMe SSDs 222 and 224 to convert the NVMe SSDs 222 and 224 into serverless networked NVMe-oF devices. The NVMe SSDs 222 and 224 can each include two physical ports, and all data may be accessed through either of these ports.

[0016]

[0024] Each client process / application 212 may run directly on an operating system or may run within a virtual machine and / or container serviced by an operating system and / or hypervisor. A client process 212 may read data from storage and / or write data to storage during the performance of its basic function. Yet the basic function of a client process 212 is not storage-related (i.e., the process is only concerned with its data being reliably stored and retrievable when needed, not where, when, or how the data is stored). Example applications that give rise to such processes include email servers, web servers, office productivity applications, customer relationship management (CRM), animated video rendering, genomics computing, chip design, software builds, and enterprise resource planning (ERP).

[0017]

[0025] A client application 212 can make a system call to the kernel 224, which communicates with a VFS driver 208. The VFS driver 208 queues the corresponding request in the VFS frontend 202. If there are several VFS frontends, the driver can load balance the accesses to the different frontends, ensuring that a single file / directory is always accessed through the same frontend. This is done based on the ID of the file or directory. This can be done by sharding the frontend. The VFS frontend 202 provides an interface to route file system requests to the appropriate VFS backend based on the bucket it is responsible for operating on. The appropriate VFS backend may be on the same host or on a different host.

[0018]

[0026] The VFS backend 206 hosts a number of buckets, each one of which services file system requests it receives and performs tasks to otherwise manage the virtual file system (e.g., load balancing, journaling, maintaining metadata, caching, moving data between tiers, deleting stale data, correcting corrupted data, etc.).

[0019]

[0027] The VFS SSD agent 214 facilitates interaction with each storage device 216. This may include, for example, translating addresses and generating commands that are issued to the storage devices (e.g., on SATA, SAS, PCIe, or other suitable buses). Thus, the VFS SSD agent 214 acts as an intermediary between the storage devices 216 and the VFS backend 206 of the virtual file system. The SSD agent 214 can also communicate with standard networked storage devices that support standard protocols, such as NVMe over Fabrics (NVMe-oF).

[0020]

[0028] Figure 3 illustrates another representation of a distributed file system according to an example implementation of the present disclosure. In Figure 3, element 302 represents memory resources (e.g., DRAM and / or other short-term memory) and processing resources (e.g., x86 processors, ARM processors, NICs, ASICs, FPGAs, and / or the like) of various nodes (compute, storage, and / or VFS) that reside virtual file systems, such as those described for Figure 2 above. Element 308 represents one or more physical storage devices 216 that provide long-term storage for the virtual file system.

[0021]

[0029] 3, the physical storage is organized into a number of distributed failure resilient address spaces (DFRAS) 518, each of which contains a number of chunks 310, which in turn contain a number of blocks 312. The organization of the blocks 312 into chunks 310 is merely convenient in some implementations and need not be done in all implementations. Each block 312 stores committed data 316 (which can assume various states, discussed below) and / or metadata 314 that describes or references the committed data 316.

[0022]

[0030] Organizing storage 308 into multiple DFRAS enables high performance concurrent commits from many (possibly all) of the nodes in the virtual file system (e.g., all nodes 1041-1044 in FIG. 1). N , 1061-106 M , and 1201-120 J (However, simultaneous commits can be performed in parallel.) In one example implementation, each of the nodes in the virtual file system can own a respective one or more of the multiple DFRASes and have exclusive read / commit access to the DFRASes that the node owns.

[0023]

[0031] Each bucket owns its own DFRAS and therefore does not need to coordinate with any other node when writing to its DFRAS. Each bucket can build stripes across many different chunks on many different SSDs, and therefore each bucket, having its own DFRAS, can decide which "chunks" to write to based on a number of parameters currently. “We can choose to write to a ‘striped’ bucket and once a chunk is allocated to this bucket, there is no coordination required to do so. All buckets can be effectively written to all SSDs without any coordination required.”

[0024]

[0032] Each DFRAS being owned and accessible only to the owner bucket of the DFRAS running on a particular node allows each node of the VFS to control a portion of the storage 308 without having to coordinate with any other node (except during (re)allocation of the bucket holding the DFRAS, e.g., during initialization or after a node failure, which can be performed asynchronously with respect to the actual read / commit to the storage 308). Thus, in such an implementation, each node can read / commit to the DFRAS of the node's bucket regardless of what other nodes are doing, and no consensus needs to be reached when reading and committing to the storage 308. Furthermore, in the event of a failure of a particular node, the ownership of multiple buckets by a particular node allows for a more intelligent and efficient reallocation of the node's workload to other nodes (to some extent, the entire workload must be assigned to a single node, which can create a "hot spot"). In this regard, in some implementations, the number of buckets may be large compared to the number of nodes in the system, so that the load that any one bucket will place on another node can be relatively small. This allows for fine-grained redistribution of the failed node's load according to the capabilities and capacities of other nodes (e.g., nodes with greater capabilities and capacity may be given a larger proportion of the failed node bucket).

[0025]

[0033] To enable such operations, metadata may be maintained that maps each bucket to the bucket's current owning node so that reads and commits to storage 308 can be redirected to the appropriate node.

[0026]

[0034] Load balancing is possible because the metadata space of an entire file system (e.g., directories, file attributes, content ranges within files, etc.) can be decomposed (e.g., chopped or sharded) into small uniform pieces (e.g., "shards"). For example, a large system with 30k servers can chop up the metadata space into 128k or 256k shards.

[0027]

[0035] Each such metadata shard may be maintained in a "bucket". Each VFS node may be responsible across several buckets. When a bucket is serving a metadata shard on a given backend, the bucket is considered to be "active" or the "leader" of this bucket. Typically, there are many more buckets than VFS nodes. For example, a small system with 6 nodes may have 120 buckets, while a larger system with 1,000 nodes may have 8k buckets.

[0028]

[0036] Each bucket may be active on a small set of nodes, typically five nodes, that form a pentagroup for the node's bucket. The cluster configuration keeps all participating nodes up to date on the assignment of pentagroups to each bucket.

[0029]

[0037] Each pentagroup monitors itself. For example, if a cluster has 10k servers, and each server has 6 buckets, each server will only need to talk to 30 different servers to maintain the status of its buckets (6 buckets means 6 pentagroups, so 6*5=30). This means , which is a much smaller number than if a centralized entity had to monitor all the nodes and keep the state of the entire cluster. The use of pentagroups allows performance to scale with larger clusters, since the nodes do not perform more work as the cluster size grows. This can impose the drawback that in "dumb" mode, small clusters may actually generate more communication than there are physical nodes, but this drawback is overcome by sending only one heartbeat between the two servers with all the buckets they share (as the cluster gets larger this will change to just one bucket, but if you have a small five server cluster, the cluster will just include all the buckets in every message and each server will only talk to the other four). Pentagroups can decide (i.e. reach consensus) using an algorithm similar to the Raft consensus algorithm.

[0030]

[0038] Each bucket can have a group of compute nodes that can drive it. For example, 5 VFS nodes can drive one bucket. Yet, only one of the nodes in the group is the controller / leader at any given moment. Furthermore, no two buckets will share the same group for a large enough cluster. If there are only 5 or 6 nodes in the cluster, most buckets can share a backend. In a reasonably large cluster, there will be many separate groups of nodes. For example, with 26 nodes,

number

[0031]

[0039] All nodes in the group know and agree (i.e., reach consensus) about which node is the actual active controller (i.e., leader) for this bucket. A node accessing a bucket can remember ("cache") the last node that was the leader for this bucket from the (say, 5) members of the group. When a node accesses the bucket leader, the bucket leader performs the requested action. If the bucket is accessed by a node that is not the current leader, this node instructs the leader to "redirect" the access. If there is a timeout accessing the cached leader node, the contacting node can try a different node in the same penta group. All nodes in a cluster share a common "config" for the cluster, which allows the nodes to know which server can drive each bucket.

[0032]

[0040] Each bucket can have a load / usage value that indicates how heavily the bucket is being used by applications running on the file system. For example, a server node with 11 lightly used buckets can receive another bucket of metadata to move ahead of a server with 9 heavily used buckets, even if there is an imbalance in the number of buckets used. The load value may be determined according to average response latency, number of concurrently running operations, memory consumed, or other criteria.

[0033]

[0041] Reallocation can occur even when a VFS node has not failed: if the system identifies one node as being busier than others, based on tracked load metrics, the system can move (i.e., "fail over") one of the system's buckets to another server that is less busy. However, load balancing may be achieved by diverting writes and reads before actually moving the bucket to a different host. Since each write may end up in a different group of nodes as determined by DFRAS, it is unlikely that a node with a higher load will be selected to be in the stripe where the data is being written. The system may also choose not to serve reads from a highly loaded node. For example, a "degraded mode read" may be performed, where blocks in a highly loaded node are reconstructed from other blocks in the same stripe. A degraded mode read is a read that is performed by the remaining nodes in the same stripe, and the data is reconstructed via failure protection. A degraded mode read may be performed when read latency is very high, since the initiator of the read can assume that this node is down. If the load is high enough to create higher read latency, the cluster can revert to reading this data from other nodes and reconstructing the required data using degraded mode reads.

[0034]

[0042] Each bucket manages its own distributed erasure coding instance (i.e., DFRAS518) and does not need to coordinate with other buckets to perform read or write operations. There are potentially thousands of simultaneous distributed erasure coding instances, each working simultaneously on a different bucket. This is an integral part of the scaling performance, as it effectively allows an arbitrarily large file system to be split into independent pieces that do not need to be coordinated, thus resulting in high performance regardless of scale.

[0035]

[0043] Each bucket performs the entire file system operations that belong to its shard. For example, the directory structure, file attributes, and file data ranges belong to the jurisdiction of a particular bucket.

[0036]

[0044] An operation made from any frontend starts by finding out which bucket owns the operation. Then the backend leader for this bucket, and the node, is determined. This determination may be performed by trying the last known leader. If the last known leader is not the current leader, the node can find out which node is the current leader. If the last known leader is no longer part of the bucket's pentagroup, the backend will inform the frontend that it should go back to the configuration and find the members of the bucket's pentagroup. Distributing operations allows complex operations to be performed by multiple servers rather than by a single computer in a standard system.

[0037]

[0045] If the cluster size is small (say 5) and pentagroups are used, there will be buckets that share the same group. As the cluster size increases, the buckets are redistributed so that no two groups are identical.

[0038]

[0046] Encrypted storage is important for many different applications: for example, financial applications must be secured in compliance with the Federal Information Processing Standard (FIPS), and healthcare applications must be secured in compliance with the Health Insurance Portability and Accountability Act (HIPPA).

[0039]

[0047] Encryption may also be required for stored data. For example, If one or more storage devices are compromised, encryption of the stored data prevents recovery of the plaintext data.

[0040]

[0048] Encryption may also be required "on the fly" for data transmitted over a network, for example to prevent eavesdropping and man-in-the-middle attempts to touch the data.

[0041]

[0049] 4 illustrates an example of a computing device 401 in an encrypted file system 400. The computing device includes a front end 403 and a back end 405. The front end 403 can encrypt and decrypt data on the client side as the data enters and leaves the system. The front end 403 is operable to encrypt data as it is written to a data file in the system 400. The front end 403 is also operable to decrypt data as it is read from a data file in the system 400.

[0042]

[0050] The front end 403 encrypts data at least according to a file key 413. This file key 413 can be rotated by copying the data file. The file key 413 (e.g., one key per file) may be provided to the client for front end encryption and decryption. This file key 413 may be generated by the file system 401 using a FIPS approved secure random number generator. If the file key 413 is to be saved, it can be encrypted with a file system key 415. Additionally, the file system id and node id may be used as authenticated data for the file key 413. The file key can be rotated by copying the file. When the file is copied, the contents will be re-encrypted with the newly generated file key.

[0043]

[0051] File system keys 415 (e.g., one key for each file system) should never leave the boundaries of the file system. File system keys 415 may be generated in a key management system / server (KMS). When file system keys 415 are to be stored, they may be encrypted with a cluster key 417. Additionally, a cluster id and a file system id may be used as authenticated data for file system keys 415. File system keys 415 may be rotated immediately by file system 400. For example, file system 400 can request that KMS generate a new key for a specified file system. Newly created files will have their file keys 413 encrypted with the latest file system key 415, and updated files can have their file keys 413 re-encrypted with the latest file system key 415.

[0044]

[0052] File key 413 may be encrypted with file system key 415. In addition, file system key 415 may be encrypted with cluster key 417. File key 413 may be re-encrypted when file system key 415 is rotated, and file system key 415 may be re-encrypted when cluster key 417 is rotated.

[0045]

[0053] The backend includes multiple buckets 407a, 407b, 407c, 407d, 407e, 407f, 407g, 407h, 407i, 407m, 407j, 407m ... a, 409b, 409c, 409d through 407n. The number of buckets may be less than, greater than, or equal to the number of storage devices.

[0046]

[0054] Each bucket 407x of the plurality of buckets 407a, 407b-407m is operable to construct a fault-protected stripe 411x comprising a plurality of storage blocks (e.g., block x1, block x2, and block x3). The plurality of storage blocks includes encrypted data and error detection and / or error correction coding. Illustratively, stripe 411a includes block a1, block a2, and block a3, stripe 411b includes block b1, block b2, and block b3, and stripe 411c includes block c1, block c2, and block c3. The number of blocks in a stripe may be less than, greater than, or equal to three. Each storage block of a particular stripe is in a different storage device of the plurality of storage devices. All fault-protected stripes 411 constructed by the plurality of buckets 407 in the backend 405 are in a common file system 400 associated with a file system key 415.

[0047]

[0055] FIG. 5 illustrates an example cluster 501 of computing devices 401a, 401b, 401c-401p. The cluster of computing devices 501 is associated with a cluster key 417. The cluster keys 417 (e.g., one key for each cluster) should never leave the boundaries of the cluster. The cluster keys 417 may be generated by the KMS. The cluster keys can be rotated immediately by the KMS. When rotated, the KMS re-encrypts each file system key 415 and the old cluster key can be destroyed. The file system does not need to be aware of the rotation. When a client (e.g., computing device 401b or 401c) joins the cluster 501, the cluster 501 registers its public key 503 with the leader. Each client node generates a long-term public / private key pair 503 at startup.

[0048]

[0056] A network encryption key may be negotiated by two nodes (e.g., computing device 401b or 401c) to encrypt communications between the two nodes. Network interactions between nodes, including system nodes and client nodes, are called remote procedure calls (RPCs). RPCs can mark their arguments, output parameters, and return values ​​as encrypted. RPCs can encrypt their argument payloads using a pre-negotiated key known only to the two RPC endpoints (e.g., nodes). Upon request, each client can negotiate a session key 507 with each system node to which each client connects. The session key can be negotiated with full forward security using an ephemeral key pair (e.g., using ephemeral key pair generator 505) signed with a long-term key pair (e.g., long-term keys 503b and 503c) generated by each node (e.g., computing device 401b or 401c) when each node is added to the cluster 501.

[0049]

[0057] A system-to-system key may be used to reduce the time it takes for a newly started server to be able to connect to other servers. Upon joining, the newly started server can receive a key from the file system reader. This system-to-system key is encrypted and stored in the configuration. An RPC from server A to server A can use the configuration represented as "config.serverkeys[A]", for example.

[0050]

[0058] To authenticate a client, the administrator must A token or certificate can be generated that can be used by a client to join. The token may be time-limited and configurable by an administrator based on a challenge-response mechanism. The token can identify a particular machine (e.g., my IP address or instance ID). The token can identify a client class, allowing many machines to join using the same token. The token may be revoked by an administrator. When a token is revoked, new clients will not be able to join using the token and existing clients that joined using the token will be disconnected unless the existing client has an updated valid token.

[0051]

[0059] To authorize mounts, an administrator can configure which clients (specific machines, or groups of machines) can mount which file systems. This authorization is verified when a client attempts to mount a file system. Clients that have never mounted the file system may be prevented from accessing the file system. The administrator can specify whether the permitted access is read-only, write-only, or read / write. The administrator can also allow clients to mount as root (e.g., rootsquash or non-rootsquash).

[0052]

[0060] Each file system can have a file name encryption key that can be derived from the file system key. When a client mounts a file system, the client can receive the file name encryption key. The client can create a file with an encrypted file name using symmetric encryption.

[0053]

[0061] File data in object storage (e.g., tiered data for backup and restore) may be encrypted similar to data on disk. When uploaded to object storage, the file data can contain file system parameters such as an encrypted file system key. For example, the file system key may be encrypted with a special "backup specific cluster key" available via KMS.

[0054]

[0062] When a cluster is abandoned and a new cluster is created by downloading the file system from the object store, the downloaded file system may be decrypted with the file system key along with the backup unique key and re-encrypted with the cluster's new cluster key.

[0055]

[0063] When stowing a snapshot to a simple storage service (S3), the filesystem key may be re-encrypted using a new cluster key. The "stow" command can include a new cluster key ID and credentials to access the "stow" command from KMS. The existing filesystem key can be re-encrypted with the new cluster key and stored in S3 along with the rest of the filesystem metadata. Restoring a stowed snapshot requires access to the same cluster key specified at the time of stow.

[0056]

[0064] To reduce the possibility that memory (e.g., kernel memory) can be accessed by another process, the system page cache may be encrypted. To combat this, encrypted data received by the kernel page cache may not be decrypted immediately when it is received over the network. Because the kernel will store the data encrypted, a malicious application will have no way of accessing the data. When the encrypted data is accessed by the process that actually owns the file, the kernel driver, with the assistance of the front end, will decrypt the data while copying it into the memory space of this process. Thus, system memory remains encrypted until it is legitimately accessed.

[0057]

[0065] The encryption and decryption process can take advantage of hardware acceleration. When performing encryption, the file system can look for hardware that can accelerate the encryption process. The file system can rank which hardware is more efficient (e.g. standard CPU opcodes, acceleration in the CPU, cryptographic coprocessors on network cards) and use the most efficient scheme to encrypt the decrypted data.

[0058]

[0066] In addition to the encryption described above, self-encrypting drives (SEDs) may be used. In addition to the standard encryption code in the file system, SEDs can encrypt already encrypted data as it is being received.

[0059]

[0067] Encryption of stored data can use symmetric encryption keys, in which case the same key is used to encrypt and decrypt the data. Based on the file system configuration, there are several options for key management.

[0060]

[0068] The same key may be used for all drives (e.g. SSDs): if this key is compromised, all of the drives can still be read.

[0061]

[0069] A different key may be used for each SSD. These keys may be managed by the file system randomly picking and storing a different encryption key for each SSD. Alternatively, these keys may be managed by the client's own key management system, which is responsible for creating and storing encryption keys. The file system can authenticate these keys with the client's KSM and request the correct key for each SSD. Until the next reboot, the SSDs will retain the keys and can use them.

[0062]

[0070] Another option for key management is to have a different key for each chunk on the SSD. This makes it possible to support several customers with the same file system. Distributed fault-tolerant Different file systems with different address spaces can access the same SSD agent. Each file system can set a different key for each DFRAS. The SSD cannot exchange base keys at boot time. Rather, different keys may be registered in the SSD at boot time. When the drive requests that an encryption key be given for each IO, each key can have an index that is used by each IO. When the DFRAS accesses the SSD, the DFRAS can remember the index of the encryption key of the DFRAS for the SSD of the DFRAS and transfer this index with the IO request. Thus, a file system can share several workloads, and different DFRAS running on the same SSD, without compromising security.

[0063]

[0071] HIPPA requires three independent copies of data, and encryption at rest. Three independent copies may be achieved by using a compound object storage backend that writes to two independent object stores. Data sent to the object store may be encrypted first. The file system may then be encrypted for a predefined time defined by the application (e.g. , every 30 minutes) and transfer the snapshots to object storage. The cluster can provide encryption at rest by integrating self-encrypting SSD drives with KSM.

[0064]

[0072] 6 is a flow diagram illustrating an example method for reading from a client in an encrypted file system. In block 601, a client opens a file for read access. In block 603, after verification, the client can access the file system and the system securely sends a file key to the client's computing device. In block 605, the client's front end uses the file key to decrypt the data read from the file.

[0065]

[0073] In block 607, a session key is negotiated using an ephemeral key pair signed with long-term keys from the client computing device and another computing device. In block 609, data is encrypted using the session key. In block 611, the data (encrypted with the session key) is transferred from the client computing device to the other computing device.

[0066]

[0074] In block 613, the file is closed. In block 615, the file key and the session key are cleared from memory.

[0067]

[0075] 7 is a flow diagram illustrating an example method for writing to a client in an encrypted file system. At block 701, a session key is negotiated using an ephemeral key pair signed with long-term keys from the client's computing device and another computing device. At block 703, data is encrypted using the session key. At block 705, the data (encrypted with the session key) is transferred from the other computing device to the client's computing device.

[0068]

[0076] In block 707, the client opens the file for write access. In block 709, after verification, the client can access the file system and the system securely sends the file key to the client's computing device. In block 711, the client's front end uses the session key to decrypt the received data.

[0069]

[0077] The client front end encrypts the decrypted data with the file key in block 713. In block 715, the data (encrypted with the file key) is written to the open file on the client's computing device.

[0070]

[0078] The file is closed in block 717. In block 719, the file key and the session key are cleared from memory.

[0071]

[0079] FIG. 8 illustrates an example implementation in which two distributed fault-tolerant address spaces reside on multiple solid-state storage disks.

[0072]

[0080] Chunk 910 1,1 ~910 D,C Multiple chunk stripes 9201 to 920 S (S is an integer). In one example implementation, each chunk stripe 920s (s is an integer, where 1≦s≦S) are separately protected using forward error correction (e.g., erasure coding). Thus, chunks 910 in any particular chunk stripe 920s d,c The number may be determined based on the desired level of data protection.

[0073]

[0081] For illustrative purposes, each chunk stripe 920 s However, the number of chunks 910 is N=M+K (where N, M, and K are each an integer). d,c Let's assume that the chunks contain N chunks 910 d,c Of the N chunks 910, M can store data digits (typically binary digits or "bits" for current storage devices). d,c Of the K stripes 920, K can store a protection digit (again, typically a bit). s Then, the virtual file system creates N chunks 910 from N different failure domains. d,c can be assigned.

[0074]

[0082] As used herein, a "failure domain" refers to a group of components where the failure of any one of the components (the component losing power, becoming unresponsive, and / or the like) can result in the failure of all of the components. For example, if a rack has a single top-of-the-rack switch, failure of this switch will bring down connections to all of the components (e.g., compute, storage, and / or VFS nodes) on this rack. Thus, to the rest of the system, this is equivalent to all of the components on this rack failing together. A virtual file system according to the present disclosure can include fewer failure domains than chunks 910.

[0075]

[0083] In one example implementation where the nodes of the virtual file system are connected and powered in a fully redundant manner with only one storage device 906 per such node, the failure domain can only be this single storage device 906. Thus, in one example implementation, each chunk stripe 920 s Storage devices 9061 to 906 D A plurality of chunks 910 residing in each of N of the d,c (hence D is greater than or equal to N). An example of such an implementation is shown in FIG.

[0076]

[0084] In FIG. 8, D=7, N=5, M=4, K=1, and storage is organized into two DFRAS. These numbers are merely illustrative and are not intended to be limiting. The three chunk stripes 920 of the first DFRAS are arbitrarily called out for illustrative purposes. The first chunk stripe 9201 is the chunk 910. 1,1 , 910 2,2 , 910 3,3 , 910 4,5 , and 910 5,6 The second chunk stripe 9202 consists of chunk 910 3,2 , 910 4,3 , 910 5,3 , 910 6,2 , and 910 7,3 The third chunk stripe 9203 is made up of chunk 910 1,4 , 910 2,4 , 910 3,5 , 910 5,7 , and 910 7,5 It consists of:

[0077]

[0085] 8, D=7 and N=5, in an actual implementation, D may be much larger than N (e.g., by an integer multiple greater than 1, and possibly by many orders of magnitude), and the two values ​​may be chosen such that the probability of any two chunk stripes 920 of a single DFRAS residing in the same set of N storage devices 906 (or, more generally, in the same set of N failure domains) is below a desired threshold. d A failure of any one (or, more generally, any single failure domain) will occur in any particular stripe 920 (with a desired statistical probability determined based on the chosen values ​​of D and N, the size of the N storage devices 906, and the placement of the failure domains). s At most one chunk of 910 b,c Furthermore, a double failure will result in the loss of at most one chunk 910. b,c , and only a small number of stripes (determined based on the values ​​of D and N) will be lost for any particular stripe 920 s In this case, the number of failed stripes is exponentially smaller than the number of failed stripes.

[0078]

[0086] For example, each storage device 906 d If the size of the chunk is 1 TB and each chunk is 128 MB, then the storage device 906 d The failure of D results in 7812 (=1 TB / 128 MB) chunk stripes 920 losing one chunk 910 (with a desired statistical probability determined based on the chosen values ​​of D and N, the size of the N storage devices 906, and the placement of the failure domains). s About lost chunk 910 d,c , with the appropriate forward error correction algorithm, and chunk striping 920 sThe affected chunk stripe can then be quickly reconstructed using the other N-1 chunks in storage devices 9061-906. D Since the loss is uniformly distributed across all 7812 blocks 910 d,c The regeneration of the failure domains in the storage devices 9061-906 can be achieved with a desired statistical probability (based on the selected values ​​of D and N, the size of the N storage devices 906, and the location of the failure domains) that is determined by the selected values ​​of D and N, the size of the N storage devices 906, and the location of the failure domains in the storage devices 9061-906. D (i.e., the burden of recreating the lost data is minimized by reordering the storage devices 9061-906 so as to provide a very fast recovery from the failure.) D (The distance is uniformly distributed across all

[0079]

[0087] Next, storage devices 9061 to 906 D Moving to the case of simultaneous failure of two of the storage devices 9061-9066 (or, more generally, simultaneous failure of two failure domains), D Each DFRAS chunk stripe 9201 to 920 across all S The uniform distribution of chunks results in a very small number of chunk stripes 9201-920. S Only one chunk stripe, N, is missing. The virtual file system is split into chunk stripes 9201-920. S and storage devices 9061-906 D 906. The virtual file system may be operable to quickly identify two such lost chunk stripes based on metadata indicating a mapping between the two storage devices 906 and the one lost chunk stripe. Once two such lost chunk stripes are identified, the virtual file system may prioritize replicating these two lost chunk stripes before commencing replicating the single lost chunk stripe. The remaining chunk stripes will have only a single lost chunk, and for these (the majority of the affected chunk stripes), the virtual file system may prioritize replicating the two lost chunk stripes based on metadata indicating a mapping between the two storage devices 906 and the one lost chunk stripe. d The simultaneous failure of only one storage device 906d The same principle applies to a third simultaneous failure, etc. (the number of chunk stripes with three failed blocks will be smaller than the number with two failed blocks in the two simultaneous failure scenario). In one example implementation, chunk stripe 920 s The rate at which the replay is performed is chunk stripe 920 s The rate at which reads and commits for the replay are performed may be controlled based on the number of losses in the replay. This may be accomplished, for example, by controlling the rate at which reads and commits for the replay are performed, the rate at which FEC calculations for the replay are performed, the rate at which network messages for the replay are communicated, etc.

[0080]

[0088] 9 illustrates a forward error correction scheme that may be used to protect data stored in non-volatile memory of a virtual file system according to an example implementation of the present disclosure. 1,1 ~902 7,7 In the protection scheme of FIG. 9, five blocks in each stripe are for storage of data digits, and two blocks in each stripe are for data storage of protection digits (i.e., M=5 and K=2). In FIG. 9, the protection digit is calculated using the following equations (1)-(9).

number

[0081]

[0089] 9 are part of a multi-stripe (in this case, four stripes) FEC protection domain, and the loss of any two or less blocks in any of the block stripes 9301-9304 can be recovered by using various combinations of equations (1)-(9) above. In comparison, an example of a single stripe protection domain is when D11, D22, D33, D44, D54 are only protected by P1, and D11, D22, D33, D44, D54, and P1 are all written to stripe 9301 (9301 is a single stripe FEC protection domain).

[0082]

[0090] According to an example implementation of the present disclosure, a plurality of computing devices are communicatively coupled to one another via a network, each of the plurality of computing devices comprising one or more of a plurality of storage devices. A plurality of fault-tolerant address spaces are distributed across the plurality of storage devices such that each of the plurality of fault-tolerant address spaces spans the plurality of storage devices. A respective one of the plurality of fault-tolerant address spaces is organized into a plurality of stripes (e.g., a plurality of 930 as in FIG. 8 and FIG. 9). One or more stripes of each of the plurality of stripes are part of a respective one of a plurality of forward error correction (FEC) protection domains (e.g., a multi-stripe FEC domain in FIG. 8, etc.). Each of the plurality of stripes may include a plurality of storage blocks (e.g., a plurality of 912). Each block of a particular one of the plurality of stripes may reside on a different one of the plurality of storage devices. A first portion of the plurality of storage blocks (e.g., a plurality of 902 of stripe 9301 in FIG. 9) may be arranged to include a plurality of storage blocks. 1,2 ~902 1,6 9. The second portion of the plurality of storage blocks (e.g., 902 of stripe 9301 in FIG. 9) may be for storage of data digits. 1,1 and 902 1,7The two quantities may be for storage of a protection digit calculated based at least in part on the data digits.

[0083]

[0091] The multiple computing devices are configured to rank the multiple stripes. The rank may be operable to select which of the plurality of stripes to use for the next commit operation to one of the plurality of fault-tolerant address spaces. The rank may be based on how many protected and / or unprotected storage blocks are in each of the plurality of stripes. For any particular one of the plurality of stripes, the rank may be based on a bitmap stored on the plurality of storage devices having the particular one of the plurality of stripes. The rank may be based on how many blocks currently storing data are in each of the plurality of stripes. The rank may be based on the read and write overhead for committing to each of the plurality of stripes. Each of the fault-tolerant address spaces may be owned by only one of the plurality of computing devices at any time, and each one of the plurality of fault-tolerant address spaces may be read and written only by its owner. Each of the computing devices may own more than one of the fault-tolerant address spaces. The plurality of storage devices may be organized into multiple failure domains. Each one of the plurality of stripes may span multiple failure domains. Each of the fault-tolerant address spaces may span all of the multiple failure domains such that, upon failure of any particular one of the multiple failure domains, the workload of reconstructing lost data is distributed among each of the others of the multiple failure domains. The multiple stripes may be distributed across the multiple failure domains such that, in the event of a simultaneous failure of two of the multiple failure domains, the chances of two blocks in any particular one of the multiple stripes residing in the failed two of the multiple failure domains is exponentially smaller than the chances of just one block in any particular one of the multiple stripes residing in the failed two of the multiple failure domains.

[0084]

[0092] The computing devices may be operable to first recreate any of the stripes having two failed blocks, and then recreate any of the stripes having only one failed block. The computing devices may be operable to perform the recreation of the stripes having two failed blocks at a higher rate (e.g., by a higher percentage of CPU clock cycles dedicated to the recreation, a higher percentage of network transmission opportunities dedicated to the recreation, and / or the like) than the rate of the recreation of the stripes having only one failed block. The computing devices may be operable, in the case of one or more failures of a failure domain, to determine the rate at which any particular lost block is recreated based on how many other blocks of the same one of the stripes were lost. One or more of the failure domains include a plurality of storage devices. Each of the plurality of FEC protection domains may span multiple stripes of the plurality of stripes.

[0085]

[0093] The stripes are divided into groups (e.g., chunk stripes 9201 to 920 in FIG. 8). S ), where each of the plurality of groups includes one or more of the plurality of stripes, and the plurality of computing devices are operable to, for each of the groups, rank one or more of the group's plurality of stripes. The plurality of computing devices may be operable to perform successive commit operations to a selected one of the plurality of groups until one or more of the group's plurality of stripes no longer meets the determined metric, and to select a different one of the plurality of groups once the selected one of the plurality of groups no longer meets the determined metric. The metric may be based on how many blocks are available for new data to be written.

[0086]

[0094] The methods and / or systems have been described with reference to certain implementations. However, it will be understood by those skilled in the art that various changes may be made and equivalents may be substituted without departing from the scope of the method and / or system. In addition, many modifications may be made to adapt a particular situation or material to the teachings of the disclosure without departing from its scope. It is therefore intended that the method and / or system not be limited to the particular implementations disclosed, but rather that the method and / or system will include all implementations falling within the scope of the appended claims.

[0087]

[0095] As used herein, the terms "circuit" and "circuitry" refer to physical electronic components (i.e., hardware) as well as any software and / or firmware ("code") that may constitute, be executed by, or otherwise be associated with the hardware. As used herein, for example, a particular processor and memory may comprise a first "circuitry" when executing a first one or more lines of code, and may comprise a second "circuitry" when executing a second one or more lines of code. As used herein, "and / or" means that any one or more of the items in a list are joined by "and / or". As an example, "x and / or y" means any element of the 3-element set {(x),(y),(x,y)}. In other words, "x and / or y" means "one or both of x and y." As another example, "x, y, and / or z" means any element of the seven-element set {(x), (y), (z), (x,y), (x,z), (y,z), (x,y,z)}. In other words, "x, y, and / or z" means "one or more of x, y, and z." As used herein, the term "exemplary" means serving as a non-limiting example, instance, or illustration. As used herein, the terms "eg," and "for example" set out a list of one or more non-limiting examples, instances, or illustrations. As used herein, a circuit device is "operable" to perform a function whenever the circuit device comprises the necessary hardware and code (if any is required) to perform the function, regardless of whether the implementation of the function is disabled or enabled (e.g., by a user-configurable setting, factory trim, etc.).

Claims

1. A computing device comprising a front end and a back end, the front end operable to encrypt data as it enters the system, the back end comprising a plurality of buckets; A plurality of storage devices, each bucket of the plurality of buckets is operable to construct a fault-protected stripe comprising a plurality of storage blocks; each storage block of a fault protected stripe is in a different storage device of said plurality of storage devices; the encrypted data is stored in a file in one or more fault-protected stripes; Multiple storage devices and A system comprising:

2. The system of claim 1 , wherein the front end is operable to decrypt the data as it leaves the system.

3. The system of claim 1 , wherein the front end encrypts the data according to a file key.

4. The system of claim 3 , wherein the file key is rotated when the file is copied.

5. The system of claim 3 , wherein every fault-protected stripe constructed by the plurality of buckets in the backend is associated with a file system key.

6. The system of claim 5 , wherein the file key is encrypted with the file system key.

7. 6. The system of claim 5, wherein the file key is re-encrypted when the file system key is rotated.

8. The system of claim 1 , wherein the computing device is in a cluster of computing devices, the cluster of computing devices being associated with a cluster key.

9. The system of claim 8 , wherein the computing device registers the long-term key with a leader of the cluster when the computing device joins the cluster of computing devices.

10. 10. The system of claim 9, wherein prior to the transfer of the data, a session key is negotiated using an ephemeral key pair signed with the long-term key.

11. Opening a data file for write access to a file system on a computing device, comprising: The computing device comprises a front end, a back end, and a plurality of storage devices. the backend comprises a plurality of buckets; each bucket of the plurality of buckets is operable to construct a fault-protected stripe comprising a plurality of storage blocks; each storage block of the plurality of storage blocks in a fault protected stripe is in a different storage device of the plurality of storage devices; Steps and encrypting data at the front end; writing the encrypted data to the data file within one or more fault-protected stripes constructed by one or more buckets of the plurality of buckets; closing the data file; A method comprising:

12. The method of claim 11 , wherein the front end is operable to decrypt the data as it is read.

13. the front end encrypts the data according to a file key; The method includes erasing the file key from memory after the data file is closed. The method of claim 11.

14. 14. The method of claim 13, comprising rotating the file key by copying the data file.

15. 14. The method of claim 13, wherein every fault-protected stripe constructed by the plurality of buckets in the backend is associated with a file system key.

16. The method of claim 15 , wherein the file key is encrypted with the file system key.

17. 16. The method of claim 15, comprising re-encrypting the file key when the file system key is rotated.

18. The method of claim 11 , wherein the computing device is within a cluster of computing devices, the cluster of computing devices being associated with a cluster key.

19. 20. The method of claim 18, comprising registering the long-term key of the computing device with a leader of the cluster when the computing device joins the cluster of computing devices.

20. negotiating a session key using an ephemeral key pair signed with the long-term key; encrypting the data using the session key; transferring the data encrypted with the session key to the computing device; 20. The method of claim 19, comprising:

Citation Information

Patent Citations

  • Storage control device and method for controlling encrypting function thereof

    JP2008077366A

  • Scalable secondary storage system and method

    JP2010079886A

  • Data security service

    JP2016508643A

  • Sharing secure data

    US20130208893A1

  • Method and apparatus for a parallel data storage and processing server

    US5737549A