Efficient deduplication using block-based convergent encryption
Through block-based convergence encryption and dynamic salt technology, the problem of deduplication failure and attack risk caused by small changes in the data set in the existing technology is solved, and efficient deduplication and safe storage of the data set are achieved.
Patent Information
- Application Number
- CN202180071839.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2020-09-29
- Filing Date
- 2021-09-27
- Publication Date
- 2024-10-25
- Estimated Expiration
- 2041-09-27
AI Technical Summary
Existing convergent encryption technologies cannot effectively deduplicate data when there are small changes in the data set, are vulnerable to file confirmation and residual information attacks, and are difficult to accurately manage ciphertext storage in distributed computing systems.
Using block-based convergent encryption technology, the data set is divided into fixed-length blocks and each block is encrypted to generate block-level ciphertext and deduplicate through the message authentication code or hash value of the ciphertext, while using dynamic salt value to determine the encryption key to reduce redundancy and improve security.
It achieves effective deduplication when data sets are almost identical, reduces the risk of file confirmation and residual information attacks, and improves the security of storage systems and deduplication efficiency in distributed systems.
Smart Images

Figure CN116547642B_ABST
Abstract
Description
Background Art
[0001] Computing devices may utilize communication networks to exchange data. Companies and organizations operate computer networks that interconnect many computing devices to support operations or provide services to third parties. Computing systems may be located in a single geographic location or in multiple different geographic locations (e.g., interconnected via a private communication network or a public communication network). Specifically, a data center or data processing center (generally referred to herein as a "data center") may include many interconnected computing systems to provide computing resources to users of the data center. A data center may be a private data center operated on behalf of an organization, or it may be a public data center operated on behalf of the public or for the public interest.
[0002] To facilitate increased utilization of data center resources, virtualization technology allows a single physical computing device to host one or more virtual machine instances that appear and operate as independent computing devices to users of the data center. Using virtualization, a single physical computing device can dynamically create, maintain, delete, or otherwise manage virtual machines. In turn, users can request computer resources from a data center that includes a single computing device or a configuration of networked computing devices and is equipped with varying numbers of virtual machine resources.
[0003] A virtual machine is typically defined at least in part based on data used to run the virtual machine, which is typically packaged into a disk image. In general, a disk image is a data set, such as a file, that contains the contents and structure of a disk volume or data storage device. For example, a disk image may contain an operating system, libraries, utilities, applications, configurations, and the like. By generating a virtual machine and providing it with a disk that matches the contents of the disk image, a user can configure the virtual machine to achieve the desired functionality. Disk images are also used for other virtualization technologies, such as operating system-level virtualization, which is a technology in which the kernel of an operating system enables multiple isolated user space instances (commonly referred to as "containers") without requiring virtualization of the kernel. BRIEF DESCRIPTION OF THE DRAWINGS
[0004] Figure 1 is a block diagram depicting an illustrative environment in which a hosted computing environment can provide secure storage of data while enabling efficient deduplication and redundancy control;
[0005] Figure 2 Describes a general architecture of a computing device that provides a disk image processing service, the disk image processing service being configured to obtain a disk image for use by a Figure 1 It is used by the on-demand code execution system of the managed computing environment and securely stores disk images while deduplicating disk image blocks;
[0006] Figure 3is a graphical visualization of two datasets having overlapping but non-identical data, a partitioning of the datasets into chunks that can be securely deduplicated, and a manifest for each dataset that enables reconstruction of the dataset from an encrypted form of the chunks;
[0007] Figure 4 is a method for encrypting a data set by dividing the data set into blocks, convergently encrypting each block, storing previously unstored blocks in a data store, and generating a manifest capable of recreating the data set from the blocks in the data store. Figure 1 a flowchart of an illustrative interaction for securely storing a data set on a hosted computing environment of;
[0008] Figure 5 is a diagram for recreating a list created according to an embodiment of the present disclosure as a set of encrypted blocks stored in Figure 1 a flowchart of an illustrative interaction of a data set on a hosted computing environment;
[0009] Figure 6 is a flow chart depicting an illustrative routine for securely storing a data set and efficiently deduplicating by partitioning the data set into chunks and convergently encrypting each chunk while providing a manifest capable of recreating the data set from the encrypted chunks;
[0010] Figure 7 is a flow chart depicting an illustrative routine for controlling redundancy in a convergent encrypted data set by including a salt value having a constrained number of permutations and thereby enabling a single data set to produce a number of ciphertexts equal to the constrained number of permutations. DETAILED DESCRIPTION
[0011] In general, aspects of the present disclosure relate to facilitating secure storage and deduplication of data on a storage system by using convergent encryption. As is known in the art, convergent encryption is a technique for encrypting a data set (such as a file) with a key that can be deterministically derived from the plaintext of the data set (the unencrypted form of the data set). Therefore, under known convergent encryption techniques, two identical data sets encrypted using the same convergent encryption technique will produce the same ciphertext (the encrypted form of the data set). Convergent encryption is beneficial to storage technology, particularly multi-tenant storage technology that stores data on behalf of multiple parties, because it achieves deduplication of data without the need to know the plaintext. If two parties attempt to store the same data encrypted using convergent encryption, the storage system can detect the same ciphertext and store only one copy of the ciphertext, thereby reducing the storage requirements of the system without requiring the system to know the plaintext. Although beneficial, this basic convergent encryption technique is not without disadvantages. For example, because convergent encryption is expected to produce the same ciphertext only given the same plaintext, any changes to the underlying plaintext (even minor changes) may result in different ciphertexts and therefore prevent deduplication. Illustratively, if two users store nearly identical files of relatively large size (e.g., on the order of tens or hundreds of gigabytes), but one of the two users changes a small portion of the file (e.g., on the order of tens or hundreds of kilobytes (KB)), deduplication is expected to fail. Among other shortcomings, the basic convergent encryption techniques described above are subject to at least two cryptographic attacks: "file confirmation" attacks and "residual information" attacks. In a "file confirmation attack," a party that owns a file can confirm that the other party owns the file simply by encrypting the plaintext of the file and comparing the result with the other party's ciphertext, even if the other party only stores the ciphertext of the file. In a "residual information" attack, one party can learn the other party's confidential information that is placed into an otherwise known data set. For example, when convergent encryption is used to store a table with confidential information added to it (e.g., including a bank number), an attacker who knows the general table can attempt to generate and encrypt a table with all possible changes to the confidential information, and then learn the confidential information by comparing the generated table with the other's ciphertext.
[0012] Embodiments of the present disclosure address these shortcomings of basic convergent encryption, thereby providing increased data deduplication even in the presence of small changes, and mitigating or eliminating the above-mentioned "file confirmation" and "residual information" attacks. More specifically, embodiments of the present disclosure may utilize block-based convergent encryption, in which a data set (e.g., a file) is divided into fixed-length blocks before encryption, and each block is then encrypted according to a convergent encryption technique to produce block-level ciphertext. Deduplication can then be performed based on the block-level ciphertext. In the case where two data sets are almost (but not completely) identical, it is expected that a large number of plaintext blocks of the two data sets will be exactly the same. Therefore, a large number of block-level ciphertexts generated for the two data sets will also be the same, thereby achieving deduplication of these identical block-level ciphertexts. In this way, the present technology can enable the use of convergent encryption to deduplicate almost identical files as well as identical files.
[0013] In order to enable decryption of a data set encrypted using the block-level convergent encryption technique described herein, embodiments of the present disclosure may further provide a manifest for each encrypted data set. Each manifest may generally identify the block-level ciphertexts created for the data set, and for each block-level ciphertext, identify the encryption key used to encrypt the block-level ciphertext. The manifest (or a portion thereof, such as the encryption key for each ciphertext) may be encrypted according to another encryption key (such as a user-specific key). Therefore, it is expected that only the user (or its authorized party) storing a given data set will be able to access the data of the manifest. In addition, since the key for each block-level ciphertext is included in the manifest, it is expected that only the user with a valid manifest will be able to decode the corresponding block-level ciphertext and thus be able to access the entire plaintext data set. If two users provide overlapping (e.g., identical or share a significant portion) data sets, a different manifest may be provided for each user. However, it is expected that at least some of the block-level ciphertexts identified in the manifest will overlap, and therefore there is no need for the storage system provider to store such block-level ciphertexts separately. Therefore, deduplication within a storage system is improved while maintaining security within such a system.
[0014] In one embodiment, the security of the storage system disclosed herein is further improved by identifying block-level ciphertexts based on the message authentication code of the ciphertext. In general, a message authentication code (or "MAC") is a short (relative to the data set itself) piece of information used to authenticate a data set, thereby confirming the integrity and authenticity of the data. Therefore, two identical data sets will produce the same MAC when using the same MAC generation algorithm. In contrast, it is expected that two different data sets will produce different MACs. Therefore, each MAC can be said to be "unique" to its corresponding data set (where "unique" means a basic guarantee of uniqueness, not absolute uniqueness, because known MAC algorithms inherently have some very small "collision" opportunities, where different data sets result in the same MAC). According to an embodiment of the present disclosure, block-level ciphertexts can be identified by the corresponding MAC of the block-level ciphertext. For example, the MAC of each ciphertext can be used as the object or file name of the ciphertext. Deduplication can then be performed based on these identifiers, rather than comparing the two ciphertexts themselves. For example, a client (e.g., a user or computing device within a storage system) that wishes to store a given block-level ciphertext can first generate a MAC for the ciphertext and query the storage system whether an object or file with the MAC (e.g., with the object or file name) exists in the system. If so, the client can verify that the ciphertext is a duplicate and therefore does not need to store the file. Although some example embodiments are described herein with respect to MAC identifiers, block-level ciphertexts may also be stored according to other identifiers. For example, block-level ciphertexts may be stored using a hash value of the ciphertext as an identifier, which may also provide many of the advantages described above.
[0015] In some embodiments, the security of the storage system is further improved by using a common storage for MAC or hash-identified ciphertexts (e.g., a storage shared among a group of users, rather than having a different storage for each user) and not allowing operations on directly listing or browsing the stored MAC or hash-identified ciphertexts. For example, the interface to the common storage may limit the client to a subset of operations that do not include a list of currently stored MAC or hash-identified ciphertexts, such as:
[0016] Query whether a given ciphertext exists (e.g., whether an object with a given MAC or hash exists),
[0017] If an identifier is available, read the identified ciphertext, and
[0018] If the identification of the ciphertext is not already stored in the storage system, write the identified ciphertext.
[0019] Such a limited interface can reduce or eliminate security risks associated with the storage of block-level ciphertexts because it can limit the reading of the ciphertexts to those who can provide the correct identifier, where it is expected that the identifier can only be obtained by authorized parties. For example, a particular user storing a given ciphertext can generate or be provided with a manifest including a MAC or hash of the ciphertext, which can be stored separately and possibly encrypted (e.g., using a user-specific key, rather than convergent encryption).
[0020] This universal storage and limited interface can suppress both the "file confirmation" and "residual information" attacks described above. Specifically, for the "file confirmation" attack, the use of public storage will ensure that even if it is known that the public storage has stored the ciphertext, no user knows the specific other user who stores or accesses the ciphertext. In contrast, in order to confirm possession, the attacker needs to obtain the corresponding list; and because such a list does not require convergent encryption, such a list is not vulnerable to file confirmation attacks. For the "residual information" attack, the camera user can try to generate all possible permutations of the residual information in a known form and request to read the corresponding ciphertext from the public storage. If directory listing is allowed, the attacker can obtain a list of all stored ciphertext MACs or hashes and conduct this attack "offline". However, when directory listing is not allowed, this attack will require a one-by-one request for each corresponding ciphertext. Therefore, the attack is highly visible to the storage system and is easily suppressed by rate limiting the number of queries and / or reads of the public storage. Therefore, both attacks can be mitigated or eliminated without suppressing deduplication.
[0021] One potential difficulty with using the above-described techniques is reducing redundancy. While deduplication can reduce excessive resource usage in a storage system, such deduplication can concentrate the risk of failure. For example, a failure to store deduplicated data may destroy the data of all users of that data. Another potential difficulty may arise when performing the above-described techniques within a distributed computing system, particularly a highly utilized distributed computing system. Specifically, such a system may have difficulty accurately determining whether a particular ciphertext is still expected to be stored on the storage system. For example, where a ciphertext is stored in a public storage and referenced in a manifest, the system may attempt to count the number of manifests that reference a given ciphertext. If no such manifest exists, the ciphertext may be deleted as part of a garbage collection mechanism. However, in a distributed system, it may be difficult or impossible to determine that no current manifest references a given ciphertext, because there may be the possibility that a first device is generating such a manifest while a second device is performing garbage collection.
[0022] In order to solve these difficulties, embodiments of the present disclosure may use dynamic salt values when selecting a key for encrypting plaintext. These salt values may be selected according to the properties of the plaintext, the properties of the request to store the plaintext, the storage properties of the ciphertext corresponding to the plaintext on the storage system, etc. For example, before generating a key from the plaintext, the salt value may be added to the back or front of the plaintext so that the encrypted ciphertext (generated by encrypting the plaintext using the key) also varies according to the salt. These salt values may vary according to different parameters, such as the user or user group or storage time for which data is stored. For example, in order to reduce the concentration of risks caused by deduplication, users may be placed in groups equal to the number of desired data redundancies. Different salt values may be assigned to each group so that the data stored by the members of the group are deduplicated, but not deduplicated between the data stored by the members of different groups. If a particular user does not want deduplication to occur for any other user, a unique salt may be assigned to the user. Therefore, duplication may be maintained at an ideal level while still enabling deduplication. As another example, in order to reduce the difficulty of "reference counting" (e.g., how many lists reference a given ciphertext), the salt may vary over time. For example, the salt may be changed weekly so that data encrypted in the first week produces a different ciphertext than data encrypted in the second week. This greatly reduces the difficulty of such reference counting, because, for example, it is not desirable to create a new inventory using the ciphertext corresponding to a salt that is now expired. In one embodiment, the salt is deterministic so that all salts for a given attribute (e.g., a given time period, user or user group, etc.) are the same. In another embodiment, the salt may be probabilistic within a constrained number of possible permutations. For example, for time-based salts, the salt value may be probabilistic so that within a given time period, the salt becomes increasingly likely to reflect a future time period rather than a past time period. Illustratively, at the beginning of a week, salts may be probabilistically selected so that they have a higher chance of becoming the first salt (e.g., the "past week" salt) and a lower chance of becoming the second salt (the "current week" salt). As the week progresses, the probabilistic selection may be scaled to favor the second salt over the first salt. In this way, "smoothing" of the salt, and therefore smoothing of the corresponding ciphertext, may be achieved. Although weekly duration salts are described herein, any duration may be used to create time-varying salts. In addition, user or group-varying salts may be used in conjunction with time-varying salts, thereby providing a combination of the above benefits. For example, two varying salts may be concatenated to produce a combined salt for use in creating a key.
[0023] As described above, the term "convergent encryption" conventionally generally refers to the process of encrypting a data set with a key that can be determined from the plaintext of the data set. Therefore, the same plaintext file will produce the same ciphertext. As described above, the use of salt values modifies this result so that the same plaintext is expected to produce the same ciphertext only when the same salt is used. However, the benefits of deduplication are maintained because the potential salt values (and therefore the key and ciphertext values) are constrained to the maximum expected repetition level. For example, having 3 potential salt values constrains the key and ciphertext of a given plaintext to 3 potential values, thereby establishing a maximum redundancy of 3 for the plaintext. For ease of reference, this process in which the convergent encryption is modified to allow n variations of the salt and therefore allow up to n permutations of the ciphertext will be referred to as "modified convergent encryption" in this article. Conventional convergent encryption in which the same plaintext is guaranteed to produce the same ciphertext may be referred to as "pure convergent encryption" when necessary. In addition, the use of the general term "convergent encryption" (unless otherwise explicitly stated) is intended to cover both pure convergent encryption and modified convergent encryption.
[0024] Beneficially, as discussed above, the use of dynamic salts can mitigate or eliminate the "residual information" attack described above. Such attacks can only occur if the attacker knows the salt, which itself may limit the attack. Furthermore, if such salts are limited to a group of users, a given attack may only occur within that group. Furthermore, if such salts are time-limited, a given attack may only occur against data created during that time. Thus, the ability to perform a "residual information" attack is greatly reduced.
[0025] The technology described herein can be used in various storage systems that store various data. A specific type of system that may benefit is an on-demand code execution system. Such a system enables users to provide user-defined executable code and call such code on demand. Such systems are sometimes referred to as "serverless" code execution systems because their operation generally does not require users to define, configure or maintain specific machines on which the code is executed. For example, compared with many traditional systems, users of serverless systems can avoid creating machines (virtual or physical), installing operating systems, configuring machines, etc. It should be emphasized that the term "serverless" does not mean that there is actually no server in such a system, but means that users do not need to care about the specific server on which the code is executed. On the contrary, a serverless system can obtain a request to execute code, provide an appropriate environment for the code (the environment is typically isolated from other environments using virtualization technology), and execute the code within the environment. The serverless system can further "dismantle" or deconstruct the environment when it is no longer needed. Therefore, compared with traditional server environments, serverless systems provide high ease of use while reducing the use of computing resources relative to such environments due to the lack of dedicated resources and environments.
[0026] Some serverless systems enable users to use relatively small amounts of code, such as a specific script to run. However, this may impose restrictions on such code because it may be limited to the functions provided by default within the general environment of the serverless system (e.g., the default operating system of the serverless system). Typically, users want to execute code with additional functionality, which may require, for example, different operating systems, different libraries, different runtimes, different utilities, etc. To address this issue, serverless systems can be configured to enable users to provide more robust data sets that support code execution, such as entire disk images (e.g., containing user-defined code and operating systems, runtimes, etc. used by the code) or entire machine images (e.g., containing the state of additional elements such as memory, processor registers, etc.). These images can be used to create virtual machines or containers that execute code. For example, a disk image can be created according to the Open Container Initiative Image Specification, which defines the format for creating disk images used in OS-level virtualization systems. Therefore, a user can define an environment that contains any amount of data required to support the execution of code in that environment.
[0027] While submitting images provides the above benefits, it also increases the likelihood of data duplication in serverless systems. For example, two different users' disk images may share a common operating system and therefore have a large overlap. However, the images may differ in other aspects, such as the user-defined code executed on the serverless system. Therefore, if viewed as a complete data set, the traditional deduplication using convergent encryption will treat the two disk images as different. One potential technique to address this problem is to view the image as "layered", where the data is hierarchically divided into multiple layers and the data of each higher layer takes precedence over the corresponding lower layer. For example, the first layer may define a common operating system, while the second layer may edit the operating system. For the purpose of convergent encryption, treating each layer of the disk image as a different data set may achieve some deduplication. For example, two images sharing the same operating system layer can be deduplicated relative to that layer. However, any modification to a given layer causes the deduplication to fail relative to that layer. Therefore, this technique still has a high level of duplication. In contrast, the block-level convergent encryption technology discussed in this article can achieve more fine-grained deduplication even when one user modifies a given layer relative to other users. In addition, the block-level convergent encryption technology in this article can reduce the amount of data stored at a given device in a serverless system. For example, a host device hosting multiple execution environments may need to store a complete disk image of each such environment, and retrieving such images from a storage location may significantly affect the operating speed of the device (which speed may be critical to the operation of a serverless system because it may directly affect the speed at which requests for executed code may be completed). With the use of the presently described block-level convergent encryption techniques, the host device may be able to reuse data more extensively between different disk images, thereby reducing the amount of data stored on the device, reducing the amount of data transmitted to the device over a network, and increasing the overall operating speed of the serverless system. Therefore, the block-level convergent encryption techniques discussed herein may be particularly suitable for use in a serverless code execution system.
[0028] Based on the present disclosure, those skilled in the art will appreciate that the embodiments disclosed herein improve the ability of a computing system, such as a storage system, to securely store information while providing deduplication for the information. In addition, the currently disclosed embodiments address technical problems inherent in computing systems; specifically, the limited nature of computing resources available for storing information, and the difficulty of deduplicating information while maintaining the security of the information. The currently disclosed embodiments address technical problems in basic convergent encryption techniques, thereby enabling deduplication even when the data sets are not identical, and mitigating or eliminating attacks against these basic techniques. These technical problems are addressed by various technical solutions described herein, including the use of block-based convergent encryption and corresponding manifests, storage of MAC or hash-identified ciphertext blocks and disallowed directory lists in public storage, and the use of dynamic salts to determine the key used to convergently encrypt a data set (as well as any combination of these technical solutions). Therefore, the present disclosure generally represents improvements to storage systems and computing systems.
[0029] The foregoing aspects and many of the attendant advantages of the present disclosure will become more readily appreciated by reference to the following description taken in conjunction with the accompanying drawings as the same become better understood.
[0030] Figure 1 1 is a block diagram of an illustrative operating environment 100 in which a client device 102 may interact with a hosted computing environment 110 via a network 104. By way of illustration, various example client devices 102 are shown in communication with the hosted computing environment 110, including a desktop computer, a laptop computer, and a mobile phone. In general, the client device 102 may be any computing device, such as a desktop computer, a laptop computer or a tablet computer, a personal computer, a wearable computer, a server, a personal digital assistant (PDA), a hybrid PDA / mobile phone, a mobile phone, an e-book reader, a set-top box, a voice command device, a camera, a digital media player, etc. The hosted computing environment 110 may provide the client device 102 with one or more user interfaces, command line interfaces (CLIs), application programming interfaces (APIs), and / or other programming interfaces for utilizing services provided by the hosted computing environment 110, including an on-demand code execution system 130, an authentication service 140, a secret manager service 150, and an object storage service 160. Although one or more embodiments may be described herein as using a user interface, it should be understood that such embodiments may additionally or alternatively use any CLI, API, or other programming interface. Furthermore, while an end user may operate the client device 102 , the client device 102 may also include a non-end user device, such as a server, or other device that accesses corresponding services provided by the hosted computing environment 110 .
[0031] Client device 102 and hosting computing environment 110 can communicate via network 104, which may include any wired network, wireless network, or a combination thereof. For example, network 104 may be a personal area network, a local area network, a wide area network, an air broadcast network (e.g., for radio or television), a cable network, a satellite network, a cellular telephone network, or a combination thereof. As another example, network 104 may be a publicly accessible network of a link network that may be operated by various different parties, such as the Internet. In some embodiments, network 104 may be a private or semi-private network, such as a company or university intranet. Network 104 may include one or more wireless networks, such as a global system for mobile communications (GSM) network, a code division multiple access (CDMA) network, a long term evolution (LTE) network, or any other type of wireless network. Network 104 may use protocols and components for communicating via any of the Internet or other aforementioned types of networks. For example, the protocols used by network 104 may include hypertext transfer protocol (HTTP), HTTP security (HTTPS), message queue telemetry transmission (MQTT), constrained application protocol (CoAP), etc. The protocols and components for communicating via the Internet or any of the other aforementioned types of communication networks are well known to those skilled in the art and are therefore not described in further detail herein.
[0032] Hosted computing system 110 Figure 1 is depicted as operating in a distributed computing environment that includes the use of one or more computer networks ( Figure 1 The hosted computing environment 110 may also be referred to as a “cloud computing environment”. Each of the on-demand code execution system 130, the authentication service 140, the secret manager service 150, and the object storage service 160 may also be hosted on a server having a relatively large number of nodes. Figure 1 The devices shown may operate within a computing environment with fewer or more devices. Figure 1The depiction of the on-demand code execution system 130, the authentication service 140, the secret manager service 150, and the object storage service 160 in the environment 110 should be considered illustrative and not limiting of the present disclosure. For example, the environment 110 or its various components may implement various network service components and / or peer-to-peer network configurations to implement at least a portion of the processes described herein. In some cases, two or more of the on-demand code execution system 130, the authentication service 140, the secret manager service 150, and the object storage service 160 may be combined into a single service. Each of the on-demand code execution system 130, the authentication service 140, the secret manager service 150, and the object storage service 160 may be implemented directly in hardware or in software executed by a hardware device, and may (for example) include one or more physical or virtual servers implemented on physical computer hardware configured to execute computer executable instructions to perform the various features to be described herein. One or more servers may be geographically dispersed or geographically co-located, for example, in one or more data centers.
[0033] In general, object storage service 160 is operable to enable clients to read, write, modify, and delete data objects, each of which represents a data set associated with an identifier ("object identifier" or "resource identifier") that can be interacted with as a separate resource. For example, an object may represent a single file submitted by client device 102 (but object storage service 160 may or may not store such an object as a single file). This object-level interaction can be contrasted with other types of storage services, such as virtualized disk storage (e.g., block-based storage services provide data manipulation at the level of individual blocks) or database storage services that provide data manipulation at the level of tables (or portions thereof), etc.
[0034] Object storage service 160 illustratively includes one or more front ends 162 that provide an interface (command line interface (CLI), application programming interface (API), or other programming interface) through which client devices 102 can interact with service 160 to configure service 160 on their behalf and perform I / O operations on service 160. For example, client device 102 can interact with front end 162 to create a collection of data objects (e.g., object "buckets") on service 160 and configure permissions for the collection. Thereafter, client device 102 can create, read, update, or delete objects within the collection based on the interface of front end 162. In one embodiment, front end 162 provides a RESTful HTTP interface that supports multiple request methods, each request method corresponding to an I / O operation requested on service 160. By way of non-limiting example, request methods may include:
[0035] A GET operation that requests retrieval of an object stored on service 160 by reference to the object's identifier;
[0036] A PUT operation, which requests the storage of an object to be stored on service 160, including an identifier of the object and input data to be stored as the object;
[0037] A DELETE operation that requests the deletion of an object stored on service 160 by reference to the object's identifier; and
[0038] A LIST operation, which requests the listing of objects within a collection of objects stored on the service 160 by referencing the collection's identifier.
[0039] A variety of other operations may also be supported. For example, the service 160 may provide a POST operation similar to the PUT operation but associated with a different upload mechanism (e.g., browser-based HTML upload), or a HEAD operation capable of retrieving the metadata of an object without retrieving the object itself. In some embodiments, the service 160 may implement an operation that combines one or more of the above operations or combines the operation with native data manipulation. For example, the service 160 may provide a COPY operation capable of copying an object stored on the service 160 to another object, which combines a GET operation with a PUT operation. As another example, the service 160 may provide a SELECT operation that enables the SQL query to be specified to be applied to the object before returning the content of the object, which combines the application of the SQL query (native data manipulation) to the data object with a GET operation. As yet another example, the service 160 may provide a "byte range" GET that enables a GET operation to be performed on only a portion of the data object. In some cases, the operation requested by the client device 102 on the service 160 may be transmitted to the service via an HTTP request, which itself may include an HTTP method. In some cases, such as in the case of a GET operation, the HTTP method specified in the request may match the operation requested at service 160. However, in other cases, the HTTP method of the request may not match the operation requested at service 160. For example, a request may utilize an HTTP POST method to transmit a request to perform a SELECT operation at service 160.
[0040] During general operation, the front end 162 may be configured to obtain a call to a request method and apply the request method to the input data of the method. For example, the front end 162 may respond to a request to put input data into the service 160 as an object by storing the input data as an object on the service 160. For example, the object may be stored on an object data store corresponding to any persistent or substantially persistent storage device (including a hard disk drive (HDD), a solid state drive (SSD), a network accessible storage device (NAS), a storage area network (SAN), a non-volatile random access memory (NVRAM), or any of a variety of storage devices known in the art). As another example, the front end 162 may respond to a request to GET an object from the service 160 by retrieving an object (an object representing the input data of the GET resource request) from the storage and returning the object to the requesting client device 102.
[0041] According to an embodiment of the present disclosure, service 160 may include one or more encrypted object data stores 164 and one or more inventory data stores 166. Each of data stores 164, 166 may, for example, represent a logical portion of the overall object data store of service 160. Figure 1 Only data stores 164, 166 are shown, but service 160 may include other logical data stores.
[0042] Generally speaking, Figure 1The encrypted object data store 164 is configured to store ciphertext corresponding to a convergent encrypted data set. These ciphertexts may represent, for example, block-based ciphertext generated by dividing the data set into fixed-size plaintext blocks and convergently encrypting each such block. For example, the block-based ciphertext may be generated by generating a cryptographic hash of each fixed-size block and then encrypting the block using a block cipher or a stream cipher while using the hash as a cryptographic key. The cryptographic hash may be generated according to one of many known cryptographic hash functions, such as an algorithm in the Secure Hash Algorithm ("SHA") family, including the SHA-2 group (e.g., SHA-2 256-bit) and the SHA-3 group, and an algorithm in the BLAKE family (e.g., BLAKE2 or BLAKE3), etc. As discussed in more detail below, a salt may be added to the plaintext of the block before generating the hash. The block or stream cipher may be one of many known block or stream cipher algorithms, such as the Advanced Encryption Standard (AES) or a ChaCha stream cipher (e.g., ChaCha20). For example, the block cipher may be AES in counter mode ("AES-CTR") or Galois / Counter Mode (GCM), referred to as "AES-GCM". In some cases, the block cipher may be modified (if necessary) to ensure deterministic creation of ciphertext. For example, while the GCM algorithm typically includes the selection of a random initial counter value, embodiments of the present disclosure may set this value to zero. It is expected that such a lack of randomness will not reduce the security of the algorithm because it is expected that the key used to encrypt each different block will be different, and therefore the problem of reusing keys for different plaintexts does not arise.
[0043] The term "block cipher" as used herein is intended to refer to a cipher that encrypts data according to fixed-size groups of bits that are defined internally during a given implementation of a block cipher ("cipher internal blocks"). It is noteworthy that the size of such cipher internal blocks may be different from the fixed-size plaintext blocks encrypted using the block cipher. For example, although storage 164 can store 512KB of ciphertext, a block cipher (applied to each 512KB portion) can encrypt the portion in a cipher internal block of 128 bits, 192 bits, 256 bits, 512 bits, etc. during the implementation of the block cipher. Therefore, although the term "block" is used herein to apply to both the portion of the data set to be encrypted and the cipher internal block (because they are both fixed-length groups of bits), this should not be interpreted as meaning that these two different types of blocks have the same size. In practice, it is expected that the block encrypted using a block cipher (i.e., the entire data portion encrypted according to a given application of the block cipher) will be larger than the cipher internal block used during the implementation of the block cipher (i.e., the internal division of the data set encrypted during the application of the block cipher). Because the internal implementations of block ciphers are known in the art, and for the avoidance of doubt, references to the ordinary term "block" (e.g., without an adjective such as "internal to the cipher") as used herein, unless otherwise indicated to the contrary, generally refer to a portion of data (e.g., a 512KB block of a disk image) encrypted according to an independent application of an encryption algorithm.
[0044] In some embodiments, a ciphertext is identified within storage 164 according to a MAC of the ciphertext. Storage 164 may represent a public storage, and each identifier of a ciphertext may be unique within storage 164 among all ciphertexts within storage 164. The MAC may be generated according to any of a number of known MAC functions, including the Poly1305 MAC function, a hash-based message authentication code (HMAC) generated according to the cryptographic hash function described above, and a Galois message authentication code (GMAC) generated during an implementation of AES-GCM encryption of plaintext. The same cryptographic key used to encrypt the plaintext may be used to generate a MAC from the ciphertext. In other embodiments, a ciphertext is identified within storage 164 according to another identifier, such as a hash value of the ciphertext (e.g., as a result of applying a cryptographic hash algorithm to the ciphertext).
[0045] To facilitate retrieval of encrypted objects from the encrypted object data store 164, the service 160 also includes a manifest data store 166 configured to store manifests, each manifest corresponding to a data set stored on the service 160. For example, where block-based convergent encryption is used, the manifest may store a list of blocks that make up the data set (e.g., using block identifiers, which may be hash values, MACs, etc. of ciphertext) and the corresponding keys used to encrypt each block. Illustratively, the manifest for a disk image may identify a set of objects within the encrypted object data store 164, and for each object, identify the key used to encrypt the object. Thus, by retrieving and decrypting each object in the manifest and then combining the objects, the plaintext of the data set may be obtained. Each manifest may illustratively be encrypted (in whole or in part) using a user-specific key, such as a key obtained from the secret manager server 150 described below.
[0046] Although multiple object manifests are provided herein as an example, this approach may also be used with single object manifests. For example, rather than using block-based encryption, in some cases, service 160 may convergently encrypt the entire data set and store a single ciphertext of the data set in storage 164, which is identified in a corresponding manifest in storage 166. Although a single object manifest may reduce deduplication between objects, other advantages disclosed herein may still exist, such as hardening against the aforementioned "file confirmation" and "residual information" attacks.
[0047] In some embodiments, the service 160 may include functionality to encrypt plaintext and generate a manifest as described above. For example, the front end 162 may be configured to accept plaintext, store ciphertext, and generate a corresponding manifest. In other cases, the service 160 may omit such functionality and require another device to perform these operations. For example, the client device 102 itself may perform such operations, or such operations may be performed by other elements of the environment 110, such as the disk image processing service 134 of the on-demand code execution system 130, which is described in more detail below.
[0048] As described above, the environment 110 includes an on-demand code execution system 130, which may also be referred to as a serverless computing system. For example, an implementation for providing an on-demand code execution system 130 is provided in U.S. Patent No. 9,323,556, entitled "PROGRAMMATIC EVENT DETECTION AND MESSAGE GENERATION FOR REQUESTS TO EXECUTE PROGRAM CODE" and filed on September 30, 2014 ("the '556 patent"), the entire contents of which are incorporated herein by reference. In short, the on-demand code execution system 130 enables a client device 102 to submit executable code (e.g., source code) that implements a desired function, which is generally referred to as a "task" in this article. The system 130 may further enable the client device 102 to define one or more trigger conditions that cause the code to be executed on the system 130. For example, the client device 102 may request that the code should be executed on the system 130 each time a specific application programming interface (API) call is made. The interaction between the client device 102 and the system 130 may generally occur via a front end 132, which may provide an interface for such interaction. When a trigger condition occurs, the system 130 may configure an execution environment 138 for the code, which may correspond to a virtual machine instance, a software container, or other logically isolated environment in which the code may be executed. The system 130 may then execute the code within the environment 138, thereby resulting in task execution. When the task execution is complete, the system 130 may remove the environment 138, thereby freeing up computing resources for other task execution. The system 130 may thus enable the client device 102 to execute user-defined code on the system 130 without requiring the user to handle various aspects of the execution, such as obtaining a computing device, providing the device with code, etc.
[0049] According to an embodiment of the present disclosure, the on-demand code execution system 130 enables users to submit data sets to be supplied to the execution environment 138 to facilitate the execution of code. By way of non-limiting example, the data set may include one or more of code, operating system, runtime, library, utility, etc. For example, the data set may be a disk image of a disk drive to be provided as a virtual machine or container. As discussed above, data sets of different users may include a large amount of overlap, such as including the same operating system, library, runtime, etc. In order to facilitate the safe deduplication of such disk images, the system 130 includes a disk image processing service 134. The service 134 enables users (e.g., using the client device 102) to submit disk images to the system 130 for storage and use in conjunction with tasks. The system 130 can then use the object storage service 160 to securely store the disk image and perform deduplication. More specifically, according to the present disclosure, the service 134 may divide the disk image into fixed-size blocks, generate a key from the plaintext of each block (e.g., using a SHA or BLAKE algorithm), and then encrypt the plaintext using a corresponding key (e.g., using AES-CTR, AES-GCM, ChaCha20, etc.) to generate a set of encrypted blocks. When the encrypted blocks are not already stored in the encrypted object data store 164, the blocks may be added to the data store. For example, the service 134 may use a MAC or hash of each block as an object identifier, and determine whether the storage 164 includes an object with the identifier before uploading the block. The service 134 may further generate a manifest that lists each encrypted block (e.g., by a MAC or hash) and the corresponding key used to encrypt the block. The service 134 may then encrypt the manifest using a user-specific key and store the encrypted manifest in the data store 166. Because only unique blocks need to be stored, multiple disk images with overlapping blocks can be efficiently stored by the system 130. Although embodiments are described herein with reference to disk images, other types of data sets may also be used, including machine images.
[0050] As described above, efficient storage of disk images can further improve the efficiency of the system 130 in servicing calls to perform tasks. For example, users of the system 130 may be particularly sensitive to latency, such that they want tasks to be executed with little or no overhead delay, which is introduced by the operation of the system 130 rather than the execution of user-defined code. For example, such overhead delays may be caused by the time required to obtain a disk image from the object storage service 160 and provide the image to the execution environment 138. Using the deduplication techniques described herein, obtaining the environment 138 and providing the image to the environment may include retrieving a manifest, identifying a block in the manifest, retrieving the block, and decrypting the block to produce a plaintext disk image. Among them, the operation of retrieving the block may introduce the greatest delay because the expected manifest will be relatively small and the readily available hardware can efficiently decrypt the data. However, due to the deduplication discussed herein, the host device 136 may be enabled to reuse blocks between different disk images. For example, if the host device 136 identifies a particular block within the manifest and determines that it has previously retrieved the block (e.g., in conjunction with another disk image), the host device 136 will not need to retrieve the block again. Thus, deduplication as discussed herein may reduce the delay that would otherwise be required to retrieve a disk image, thereby speeding up operation of system 130 overall.
[0051] like Figure 1 As shown, hosted computing environment 110 also includes a key manager service 150 that is configured to securely store confidential cryptographic keys, such as keys used to encrypt the manifests within manifest data store 166. Illustratively, key manager service 150 may include hardware specifically designed for storing cryptographic keys, such as a secure enclave, a trusted platform module (TPM), etc. Thus, service 150 may provide a centralized location for users to store keys, audit the use of keys, etc.
[0052] To facilitate interaction with the hosted computing environment 110, the environment 110 also includes an authentication service 140 that enables the client device 102 to authenticate services within the environment 110, such as creating or triggering tasks on the on-demand code execution system 130, storing objects to or retrieving objects from the object storage service 160, storing keys to or retrieving keys from the key manager service 150, etc. The authentication service 140 is known in the art, and therefore the operation of the service 140 will not be described in detail herein. However, in brief, the client device 102 can authenticate to the service 140 using an authentication information set (e.g., a username and password), and the authentication service 140 can return other authentication information, such as an authentication token, to the client 102. The authentication token can then be provided from the client device 102 to other devices to authenticate the client device 102 to the other devices (these devices can verify the token by, for example, passing the token to the service 140 for verification). Services implemented on behalf of the client device 102 (such as task execution on the on-demand code execution system 130) can be authenticated with the authentication service 140 when launched within the environment 110. For example, an authentication token may be provided at initialization for a task execution occurring at the request of a client device 102, which identifies the task execution as being executed on behalf of the client device 102. Similarly, a token may be provided to a host device 136 that is directed to provide an execution environment 138 for such a task execution, thereby enabling the device to retrieve a user-specific key and a disk image manifest encrypted with the key. The host device 136 may then decrypt the manifest and generate a disk image for the task execution, as described herein.
[0053] Thus, embodiments of the present disclosure provide a secure mechanism for storing and using data on a hosted computing environment 110. These embodiments further enable deduplication of the data, reducing resource usage of the environment 110 when storing and transmitting the data. Furthermore, the embodiments realize these advantages without exposing the data to attacks that would otherwise be possible in basic convergent encryption techniques.
[0054] Figure 2 Describes the realization Figure 1 The general architecture of the computing system (disk image processing server 200) of the disk image processing service 134. Figure 2 The general architecture of the depicted server 200 includes an arrangement of computer hardware and software that can be used to implement aspects of the present disclosure. The hardware can be implemented on a physical electronic device, as will be discussed in more detail below. The server 200 may include, for example, Figure 2 More (or fewer) elements may be shown. However, it is not necessary to show all of these generally conventional elements to provide a feasible disclosure. Additionally, Figure 2 The general architecture shown can be used to implement Figure 2One or more of the other components shown.
[0055] As shown, server 200 includes processing unit 290, network interface 292, computer readable medium drive 294 and input / output device interface 296, all of which can communicate with each other through a communication bus. Network interface 292 can provide connectivity to one or more networks or computing systems. Therefore, processing unit 290 can receive information and instructions from other computing systems or services via network 104. Processing unit 290 can also communicate with main memory 280 and / or auxiliary memory 298, and further provide output information for optional display (not shown) via input / output device interface 296. Input / output device interface 296 can also receive input from optional input device (not shown).
[0056] The main memory 280 and / or the secondary memory 298 may contain computer program instructions (grouped into units in some embodiments) that are executed by the processing unit 290 to implement one or more aspects of the present disclosure. These program instructions are stored in the processor 290. Figure 2 280, but may be stored additionally or alternatively in the secondary storage 298. The main storage 280 and the secondary storage 298 correspond to one or more layers of memory devices, including (but not limited to) RAM, 3D XPOINT memory, flash memory, magnetic storage devices, etc. For the purpose of description, it is assumed that the main storage 280 represents the main working memory of the server 200, which has a higher speed but a lower total capacity than the secondary storage 298.
[0057] The main memory 280 may store an operating system 284 that provides computer program instructions for use by the processing unit 290 for general management and operation of the server 200. The memory 280 may also include computer program instructions and other information for implementing aspects of the present disclosure. For example, in one embodiment, the memory 280 includes a user interface unit 282 that generates a user interface (and / or instructions thereof) for display on a computing device, for example, via a navigation and / or browsing interface (such as a browser or application) installed on the computing device.
[0058] In addition to and / or in conjunction with the user interface unit 282, the memory 280 may include a deterministic file system generation unit 286, a cryptographic unit 288, and an object storage interface unit 289, each of which represents code that can be executed to implement a disk image of the functional disk image processing service 134. More specifically, the deterministic file system generation unit 286 represents code that generates a deterministic file system from a given disk image. As described above, some disk images may include multiple hierarchical layers, where higher-level layers take precedence over lower-level layers. Using such layers can increase the total data stored in the image because the layers may contain redundant data in the form of lower-level data that is later overwritten by higher-level layers. In addition, providing the environment 138 with multi-layer images may be time-consuming because multiple passes through the virtualized disk may be required to "lay" each layer. To address these issues, the disk image processing server 200 may utilize unit 286 to convert the multi-layer image into a "flat" (e.g., non-layered) disk image, such as an image of an ext4 file system commonly used within a Linux system. To prevent deduplication from being inhibited, unit 286 can be configured to perform this conversion deterministically without regard to dynamic data (such as timestamps) that might otherwise change the file system created from the layered image format. By storing these converted disk images instead of layered disk images, unit 286 can reduce data redundancy and increase the provisioning speed of system 130.
[0059] Memory 280 further includes a cryptographic unit 288 configured to perform cryptographic operations in accordance with the present disclosure, including one or more of partitioning a data set into fixed-size blocks, creating a cryptographic key from the plaintext of the block (e.g., as a hash of the plaintext, possibly with an appended salt value), encrypting the block, and generating a MAC or hash of the block. In some cases, server 200 may include specialized hardware to perform cryptographic operations. For example, processing unit 290 may include a portion of specialized hardware that performs a given operation quickly, or server 200 may include a second processing unit ( Figure 2 Therefore, unit 288 may include code to utilize this dedicated hardware to perform cryptographic operations.
[0060] According to an embodiment of the present disclosure, memory 280 also includes an object storage interface unit 289 configured to interface with object storage service 160. Specifically, unit 289 may be executable to determine whether a ciphertext is already stored within service 160, submit ciphertext that has not yet been stored for storage, generate a manifest for a data set stored as such ciphertext, and store such manifest on service 160. Thus, by combining Figure 2 By executing the object storage interface unit 289, the server 200 can implement various aspects of the present disclosure.
[0061] Figure 2 The server 200 shown is one illustrative configuration of such a device, and other configurations are possible. For example, although shown as a single device, in some embodiments, the server 200 may be implemented as multiple physical host devices. In other embodiments, the server 200 may be implemented as one or more virtual devices executing on a physical computing device. Figure 2 200, but in some embodiments, similar components may be used to implement Figure 2 Other devices shown in environment 100.
[0062] refer to Figure 3 , an illustrative visualization of a data set encrypted according to the presently disclosed embodiments and an inventory of such data sets will be described. Specifically, Figure 3 An illustrative visualization of two data sets (data sets A and B) encrypted and stored according to an embodiment of the present disclosure is included. Each data set illustratively represents a disk image containing an operating system, various libraries, runtimes, utilities, applications, etc. (generally referred to herein as "support data") and user-defined code. Illustratively, the support data may represent publicly available code that supports the execution of the user-defined code, while the user-defined code represents code written by a user that will be executed to implement a task on the on-demand code execution system 130.
[0063] exist Figure 3 , the bits of each data set are shown as elements 302A and 302B. These elements may represent, for example, a bitmap of a file system contained in a disk image. For clarity, Figure 3 The elements are greatly simplified, and such a bitmap may be smaller in practice than Figure 3 The description of is much more complicated. Figure 3 In , the shared bits between the two data sets are not shaded, while the different bits are shaded. Figure 3 In , the two datasets share most bits of their operating systems and supporting data, but include some changes between these parts of the datasets. Figure 3 The user-defined code in is unique to each data set and therefore contains no shared bits. The bits for each data set are in Figure 3302A and 302B, where each horizontal portion of elements 302A and 302B represents a block. As described above, the term "block" is generally intended to refer to a fixed-length portion of a data set that is to be encrypted according to an independent application of an encryption algorithm (e.g., separate from the encryption of other blocks so that the ciphertext of a given block is independent of the ciphertext of other blocks). These blocks may or may not correspond to operating system level blocks (e.g., fixed-length portions of a disk that an operating system reads or writes as a single unit). Additionally or alternatively, blocks may be referred to as "chunks," "segments," "portions," etc. Illustratively, each block may correspond to a 512KB portion of a data set. As Figure 3 As shown, the two data sets are identical for blocks 0 to 3, 5, and 6, but different for blocks 4 and 7 to 9 due to the shared bits between the data sets. Figure 3 The two datasets contain the same number of blocks, but in practice, the datasets can contain different numbers of blocks.
[0064] According to an embodiment of the present disclosure, the hosting environment 110 (e.g., the disk image processing service 134) can be configured to divide the data set into blocks, encrypt each block according to a key derived from the plaintext of the block (possibly with additional information, such as a salt) to generate a corresponding ciphertext for the block, and generate a MAC or hash for the block. Thereafter, the environment 110 can store the ciphertext for each block, as identified in the MAC or hash of the block.
[0065] To enable retrieval of data sets, environment 110 may also generate a list of each data set, such as Figure 3 Each manifest illustratively includes a list of chunks that make up the data set, including a chunk identifier (eg, a MAC, such as a GMAC, or a hash) for each chunk and a key used to encrypt the ciphertext for the chunk. Figure 3 The MACs and keys shown in represent hexadecimal values, which are truncated for ease of illustration; other formats may be used to store such MACs (or alternative identifiers) and keys.
[0066] Using the MAC and the key, a device with access to the manifest can retrieve the corresponding data set and decrypt it. For example, a device can incrementally retrieve each block using the MAC identifier of the manifest, and then decrypt the block according to the key to produce the plaintext of the block. The plaintext of each block can then be combined to represent the data set. In some cases, the device can further verify that the ciphertext has not been modified by comparing the ciphertext to the MAC of the ciphertext.
[0067] like Figure 3As shown, the specific blocks listed in each manifest 302A and 302B partially overlap. Specifically, the manifests include identical entries for blocks 0 to 3, 5, and 6, but are different for blocks 4 and 7 to 9. Thus, to represent the two data sets (each illustratively shown as 20 blocks in length), only 14 ciphertext blocks need to be stored (6 blocks shared between the manifests and 4 blocks unique to each). In practice, the number of blocks that overlap between data sets can be much greater, and thus the space savings greater.
[0068] As described above, the manifest for each data set may be encrypted, such as by using a user-specific key. Thus, access to each data set is limited to those with access to the corresponding key for the manifest. Notably, this access restriction occurs despite the sharing of chunks between manifests, since a user with a given manifest cannot determine which other manifests may reference a given chunk. Thus, deduplication between chunks is achieved while ensuring the security of each individual data set.
[0069] refer to Figure 4 , an illustrative interaction for submitting, deduplicating, and securely storing a data set to a hosted computing environment 110 according to an embodiment of the present disclosure will be described. More specifically, Figure 4 The interaction of depicts submission of a disk image to the on-demand code execution system 130, such as a disk image to be provided to an execution environment prior to executing code within the disk image.
[0070] The interaction begins at (1), where the client device 102 submits a data set to the on-demand code execution system 130. Illustratively, the data set may be submitted in conjunction with creating a task on the system 130 so that the task can be triggered later to cause the system 130 to provide an environment with the data set and execute code within the environment. As discussed above, the data set may have significant overlap with data sets of other tasks (e.g., other users or even the same user). Therefore, it is beneficial for the system 130 to deduplicate the data set so that the total storage resources used to store the data set are reduced. In addition, it is beneficial for the system 130 to ensure the security of the data set. Therefore, at interactions (2) to (8), the system 130 may convergently encrypt the data set according to an embodiment of the present disclosure, and generate a manifest for the data set that allows the data set to be recreated later (e.g., to execute a task).
[0071] More specifically, at (2), the system 130 obtains a user-specific key for storing the data set from the key manager service 150. The system 130 may illustratively use authentication data (e.g., an authentication token) provided by the client device 102 to enable the system 130 to authenticate the key manager service 150 so that the user-specific key can be obtained. In one embodiment, the key manager service 150 may be configured to receive a request to create an encryption key associated with a user, and may return the key to the system 130. In some cases, the created key may itself be encrypted using another key, which may be referred to as a "master key." The master key may be retained by the user and used to "unlock" other keys, such that the master key does not need to be used outside of the key manager service 150. Thus, in addition to the plaintext of the key, the key manager service 150 may return a ciphertext of the user-specific key at (2). The ciphertext may illustratively be stored with the data encrypted with the user-specific key (e.g., a manifest) so that the device may later pass the ciphertext of the user-specific key to the key manager service 150 along with the master key to retrieve the plaintext of the user-specific key. In this way, the security of user-specific keys and master keys can be ensured.
[0072] At (3), if necessary, system 130 formats the data set for later storage. Illustratively, if the data set represents a hierarchical file system with redundant data, system 130 may convert the hierarchical file system to a non-hierarchical file system suitable for provisioning on a virtualized execution environment (such as a virtual machine instance or container). As described above, the conversion may be performed in a deterministic manner so that any future repetitions of interaction (3) with respect to the same data set produce the same converted data set.
[0073] At (4), system 130 divides the data set into fixed-size blocks, such as 512KB blocks. Then, system 130 performs convergent encryption on the plaintext of each block at (5). Specifically, at Figure 4 In the interaction with , system 130 generates an encryption key for each block based on the plaintext of the block. Each key may represent a hash of the plaintext of the corresponding block, such as a SHA or BLAKE hash. In some cases, each key may reflect the processing of both the plaintext of the corresponding block and one or more salt values selected for the block based on the expected maximum repetition level of the blocks on system 130. The selection of such salts is described below with respect to Figure 7Described in more detail. System 130 then encrypts each block with its corresponding key to produce a ciphertext for the block. For example, system 130 may encrypt each block using AES, possibly AES-CTR, AES-GCM, or ChaCha20. In some embodiments, the algorithm may be modified to ensure that the algorithm is performed deterministically (e.g., without random differences between implementations), such as initializing a seed value (e.g., an initialization vector or "IV") to a known fixed value, such as zero. Additionally, system 130 generates an identifier for each block. As described above, the identifier may be a MAC, such as an HMAC (e.g., using the block's key and an appropriate hash algorithm, including those mentioned above) or a GMAC (e.g., generated during encryption of plaintext using GCM with an appropriate cipher), a hash value of the ciphertext, or other unique identifier.
[0074] At (6), system 130 generates a manifest for the data set, including a list of block-level ciphertexts (e.g., using identifiers of those ciphertexts, such as their corresponding generated MACs or hash values) and corresponding keys for encrypting the plaintext of the blocks into block-level ciphertexts. Figure 3 An example manifest is shown. System 130 further encrypts the manifest with a user-specific key, thereby ensuring that only authorized parties can access the plain text of the manifest.
[0075] At (7), system 130 stores the unique block-level ciphertext on object storage service 160. Illustratively, service 160 may provide an interface by which system 130 may query whether a given block-level ciphertext is currently stored on service 160, such as by using a MAC or hash of the ciphertext. For example, service 160 may allow a HEAD operation that provides metadata for an object when the object is stored on the system, or provides a "null value" when such an object is not stored. When such ciphertext is not yet stored, system 130 may store the ciphertext in service 160. Otherwise, when the ciphertext is already stored, system 130 may discard such blocks, thereby avoiding the use of storage resources on service 160. Service 160 may not allow other operations, such as listing all stored objects, to increase the security of the system.
[0076] Additionally, at (8), system 130 stores the manifest on service 160, thereby ensuring that the data set (in the form of block-level ciphertext) can be retrieved later and decrypted to produce the plaintext of the data set. Thus, the data set can be efficiently stored in an encrypted manner on service 160 while providing efficient deduplication.
[0077] refer to Figure 5 , an illustrative interaction for recreating a data set stored as a set of encrypted blocks on a hosted computing environment 110 using a manifest created according to an embodiment of the present disclosure will be described. More specifically, Figure 5 The interaction of depicts the recreation of a disk image stored on the hosted computing environment 110 and the use of the disk image by the on-demand code execution system 130 to facilitate execution of a task.
[0078] The interaction begins at (1), where the client device 102 triggers the execution of a task on the system 130. Figure 1 , a trigger initiated by a client device is shown, but task triggering may be performed via a variety of mechanisms, such as initiated by a different computing device, initiated by the system 130 in response to satisfying a trigger condition, and the like.
[0079] Out of Figure 5 For purposes of the description, assume that a triggered task is associated with a disk image that contains data used during execution of the task's code. System 130 may illustratively store metadata about the task that identifies the disk image, as well as, for example, a manifest for the disk image and a key used to encrypt the manifest. Thus, at (2) and (3), system 130 retrieves the manifest and the user-specific key from object storage service 160 and key manager service 150, respectively. Thereafter, at (4), system 130 decrypts the manifest using the user-specific key to produce plaintext identifying i) a set of block-level ciphertexts and ii) a key used to encrypt each block-level ciphertext.
[0080] At (5), system 130 identifies any block-level ciphertext that is not already cached at system 130, as identified in the manifest, and retrieves those uncached blocks at (6). As described above, due to overlap between data submitted for various tasks, individual blocks of different data sets used by system 130 may overlap. Therefore, and due to the use of convergent encryption as described herein, individual block-level ciphertexts may also be shared between different data sets. In the event that system 130 (e.g., a separate host device within system 130 operating to perform the current task) has recently performed another task, system 130 may therefore have obtained one or more block-level ciphertexts identified in the manifest for the current task. Therefore, system 130 need only retrieve uncached blocks, thereby reducing the time and computing resources required to obtain all blocks within the manifest.
[0081] Thereafter, at (7), system 130 uses the manifest and the block-level ciphertexts to generate a data set (e.g., a disk image) for the task. More specifically, system 130 decodes each block-level ciphertext using the manifest's block-level key to produce a plaintext for each block. These plaintexts can then be combined to reconstruct the data set.
[0082] At (8), system 130 provides a virtualized execution environment, such as a virtual machine instance or container, that can access the data set. For example, system 130 can "mount" the data set as a file system of the execution environment. At (9), system 130 then executes the task within the environment. Thus, via Figure 5 By interacting with the service 160 , the system 130 can efficiently perform tasks using data sets securely stored on the service 160 , enabling efficient reuse of blocks between these data sets and thereby reducing resource usage of the system 130 .
[0083] refer to Figure 6 , an illustrative routine 600 for secure deduplication storage of encrypted data will be described. The routine 600 may be implemented, for example, by an on-demand code execution system 130, such as by a disk image processing service 134.
[0084] The routine 600 begins at block 602, where the system 130 obtains a request to store a data set. The data set may represent, for example, a disk image to be provided to a virtualized environment of the system 130 to facilitate on-demand execution of user-specified code contained in the disk image.
[0085] At block 604, the system divides the data set into fixed-length plaintext block objects, such as 512KB segments. As used herein, the term "object" refers to a group or collection of data, generally without regard to how the group or collection is stored (e.g., as a data structure in memory, as a file on disk, as an entry in a database, etc.).
[0086] Thereafter, the routine 600 enters a loop 610, wherein blocks 612 through 616 are performed for each plaintext block object created at block 604. Although described as a loop, the implementation of blocks 612 through 616 may be independent, and thus multiple iterations of loop 610 may occur in parallel. More specifically, at block 612, the system 130 selects a key for the plaintext block object based at least in part on a deterministic analysis of the plaintext block object. For example, the system 130 may pass the plaintext of the block object through a hash function, such as the cryptographic hash functions mentioned above (e.g., functions within the SHA family, the BLAKE family, etc.), to produce a hash value that is used as a key. As described below with respect to Figure 6 Discussed in more detail, in some cases, system 130 may add a salt value to the plaintext prior to hashing, which salt may be selected based on the desired deduplication properties of the final data (e.g., based on the user or user group on whose behalf the final data is stored, based on the encryption time, etc.).
[0087] At block 614, the system 130 convergently encrypts the plaintext block object using the selected key to produce an encrypted ciphertext object. For example, the system 130 may encrypt the plaintext block object using a block cipher such as AES (possibly in CTR mode or GCM) or a stream cipher such as ChaCha (e.g., ChaCha20).
[0088] Due to the use of convergent encryption (e.g., where the encryption key is selected based at least in part on a deterministic analysis of the plaintext to be encrypted), it is expected that the encrypted ciphertext object is the same as any other encrypted ciphertext object generated from the same plaintext block object using the same deterministic process (e.g., including the same salt value when implementing modified convergent encryption). Therefore, other data sets previously processed by the system 130 according to routine 600 may produce one or more block-level ciphertext objects that are the same as those block-level ciphertext objects generated during loop 610. Therefore, at box 616, if the generated block-level ciphertext object has not been stored, the system 130 stores the object. For example, the system 130 can generate a MAC for the object using the ciphertext and a key (e.g., Poly1305 MAC, GMAC, HMAC, etc.), and query the data store to determine whether an object with the MAC has been stored. Similarly, the system 130 can generate a hash value for the object by passing the ciphertext via a hash algorithm, and query the data store to determine whether an object with the hash value has been stored. If not, the system 130 can store the object. In some cases, the system 130 may attempt to store all objects, and deduplication may be performed on the corresponding storage system. For example, the storage system may accept uploads of all block-level ciphertext objects, but only store unique objects. Alternatively, the storage system may accept uploads of all block-level ciphertext objects, and if duplicate copies exist on the system, then deduplication of these objects may be performed later. In each case, deduplication may be implemented on the storage system, thereby reducing resource usage of the system.
[0089] Thereafter, at box 620, the system 130 generates and stores a manifest that identifies the block-level ciphertext objects (e.g., via their identifiers on the storage system) and, for each block-level ciphertext object, identifies the key used to encrypt the object. The manifest may illustratively be encrypted at least in part based on a key specific to the user on whose behalf the data set is stored. For example, the key for the block-level ciphertext may be encrypted. In some cases, other portions of the manifest (such as the list of block-level ciphertexts) may be unencrypted so that the storage system can access the unencrypted data for system-wide operations, such as garbage collection of unreferenced block-level ciphertexts. The routine 600 then ends at box 622.
[0090] Therefore, through the implementation of routine 600, system 130 can store a data set as a set of block-level ciphertexts that collectively represent the data set and a corresponding manifest that identifies the ciphertext and can recreate the data set from the set of block-level ciphertexts. In addition, due to the use of block-level ciphertexts and corresponding manifests, the security of the data set can be maintained while achieving block-level deduplication of the data set.
[0091] refer to Figure 7 , an illustrative routine 700 for controlling the level of deduplication between encrypted data sets using a dynamic salt will be described. More specifically, a maximum level of duplication of data sets (e.g., a limit on potential deduplication) can be established by modifying a pure convergent encryption process to include a salt having one of n potential values during the determination of a key for encrypting plaintext, where n is the desired maximum level of duplication of the data sets. As discussed above, the addition of a dynamic salt to an otherwise pure convergent encryption process (e.g., a process in which the same plaintext always produces the same ciphertext) is referred to herein as "modified convergent encryption," which can be based on Figure 7 The routine 700 may be implemented, for example, by the on-demand code execution system 130, such as by the disk image processing service 134.
[0092] The routine 700 begins at block 702, where the system 130 obtains a request to store a data set. The data set may represent, for example, a disk image to be provided to a virtualized environment of the system 130 to facilitate on-demand execution of user-specified code contained in the disk image.
[0093] At block 704, the system 130 selects a salt to be used during encryption of the disk image. To ensure deduplication, the salt is selected based on factors such as the attributes of the request to store the data set or the storage attributes of the data set on the storage system. For example, the salt may be selected based on the account of the user requesting to store the data set, the number of times the data set was previously stored on the system, the time of the request to store the data set, or the location on the storage system where the data set is to be stored.
[0094] Illustratively, one or more users of the storage system may "opt out" of deduplication for the account of the user requesting storage of the data set, thereby requesting that their files never be deduplicated relative to the files of other users. To avoid the need to specifically modify routine 700 to account for these users, a unique salt may be established for each such user (e.g., matching or corresponding to, for example, an account identifier). By appending this salt to the plaintext of the data set prior to convergent encryption, system 130 may effectively ensure that the data set is not deduplicated relative to other users because, even if other users submit the same data set, the additional salt will result in a different key being used to encrypt the data set, and thus the ciphertext of the data set encrypted for the first user will be expected to be different from the ciphertext of the data set encrypted for the other users.
[0095] As another illustration of user-varying salts, the system 130 may be configured such that a certain degree of duplication is desired to ensure data redundancy (thus limiting the "blast radius" of failures with respect to a data set). In one embodiment, such redundancy is achieved by dividing users into n groups, where n is the desired level of redundancy across all users. Illustratively, each user's unique identifier (e.g., an account identifier, a hash of the account identifier, etc.) may be modulo-divided by n to place each user into one of the n groups. Each group may be assigned a unique salt such that duplicate data sets submitted by the same group of users are deduplicated, while duplicate data sets submitted by different groups of users are not deduplicated.
[0096] As another example, deduplication may be controlled based on the number of previous requests to store a data set on a storage system. For example, the system 130 may record each instance of a request to store a data set, such as by storing a counter of a hash value of the data set. The system 130 may increment the counter each time a request to store the data set is received (e.g., across all requests, across requests to a unique user, etc.). The system 130 may select a unique salt value for each n times a request to store the data set is made, such as by incrementing the salt value each time the counter exceeds a multiple of n. In this way, deduplication may be performed on every n requests to store the data set (because the salt value used for every n requests will be the same), but deduplication will not be performed between n requests from different groups because the salt values used between these groups are different. Therefore, using such a salt value may limit the total number of times a data set is deduplicated on the system.
[0097] In some cases, deduplication may be controlled based on the geographic location of the storage. For example, a storage system may include devices distributed across multiple geographic regions or across isolated groups of computing devices (sometimes referred to as "availability zones"). In order to provide deduplication without suppressing redundancy, system 130 may change the salt value of a data set based on the location where the data set is to be stored (which may be specified in the request, selected based on load balancing techniques, etc.). For example, data sets to be stored in the same region, availability zone, data store, etc. may be provided with the same salt, while data sets in different regions, zones, data stores, etc. may be provided with different salts. In this way, deduplication may be performed within a given geographic environment, but not between geographic environments, thereby achieving geographic redundancy of storage.
[0098] As yet another example, deduplication may be controlled based on the time of the request to store the data set, thereby enabling deduplication to be performed within a time window rather than across time windows. As described above, temporal differentiation of deduplication is particularly beneficial for processes (such as garbage collection) that may otherwise cause race conditions when attempting to run (e.g., because the garbage collection process may be required to ensure that no user is using the stored data set but is competing with a user currently attempting to store the data set). Thus, the salt may vary based on the time of the request to store the data set, such that requests occurring during a first time period (e.g., the first week) are associated with a different salt than requests occurring during a second time period (e.g., the second week). Thus, deduplication may be performed relative to data sets stored during the same time period.
[0099] Each of the above-mentioned salting techniques can be applied independently, or can be combined with one or more other above-mentioned techniques. For example, in the case of applying two salting techniques, two salt values can be connected together to form a polymeric salt of a data set. In some cases, the salt value selected according to the above-mentioned techniques may be purely deterministic. In other cases, the salt value can be selected probabilistically, such as by selecting between n potential values of the salt in a probabilistic manner (for example, wherein the probability varies according to the attribute that contributes to the salt). For example, a time-based salt value can be selected based on a sliding probability scale, wherein the specific probability of a given salt is selected along the scale shift over time. It is worth noting that, although the salt value is selected with potential probability, the maximum potential repetition of the data set is limited by the maximum possible number of salt values, thus maintaining the de-duplication benefits of pure convergent encryption, while also providing the additional benefits described herein.
[0100] After selecting the salt, routine 700 proceeds to block 706, where an encryption key is selected based on the plaintext of the data set and the salt. Illustratively, the salt may be appended to or prepended to the plaintext, and the resulting aggregated data may be passed through a hash function (such as the cryptographic hash function mentioned above) to produce a hash value for use as an encryption key.
[0101] At block 708, the system 130 convergently encrypts the plaintext block object using the selected key to produce an encrypted ciphertext object. For example, the system 130 may encrypt the plaintext block object using a block cipher such as AES (possibly in CTR mode or GCM) or a stream cipher such as ChaCha (e.g., ChaCha20).
[0102] At box 710, if the encrypted data set has not been previously stored, the system 130 stores the ciphertext of the data set. For example, the system 130 may generate a MAC of the object using the ciphertext and a key (e.g., Poly1305 MAC, GMAC, HMAC, etc.), and query the data store to determine whether an object with the MAC has been stored. Similarly, the system 130 may generate a hash value of the object by passing the ciphertext via a hash algorithm, and query the data store to determine whether an object with the hash value has been stored. If not, the system 130 may store the ciphertext. In some cases, the system 130 may attempt to store all ciphertext objects, and deduplication may be performed on the corresponding storage system. For example, the storage system may accept uploads of all ciphertext objects, but only store unique objects. Alternatively, the storage system may accept uploads of all ciphertext objects, and if duplicate copies exist on the system, these objects may be deduplicated later. In each case, deduplication may be implemented on the storage system, thereby reducing the resource usage of the system. Then, the routine 700 ends at box 712.
[0103] Although described separately, routines 600 and 700 may be used independently or in combination. For example, routine 600 may be used to provide pure convergent encryption of blocks of a data set, or convergent encryption may be modified to utilize salt values as discussed in routine 700. Similarly, routine 700 may be used to encrypt data sets of various sizes or properties, or may be used to encrypt blocks of larger data sets. In addition, although described in the context of the on-demand code execution system 130, routines 600 and 700 may be used by other computing devices to store various different types of data sets. In some embodiments, routines 600 and 700 may be modified to include additional actions suitable for a given data set. For example, in the case where the data set to be stored is a layered disk image, routine 600 or routine 700 may be modified to include formatting the layered disk image as a non-layered image, such as a deterministically generated ext4 file system. Therefore, the description of routines 600 and 700 is intended for illustration.
[0104] Various example embodiments of the present disclosure may be described by the following terms:
[0105] Clause 1. A storage system for facilitating deduplication of encrypted data, the storage system comprising:
[0106] One or more data stores configured to store:
[0107] block-level ciphertext objects, each block-level ciphertext object representing a fixed-length plaintext object that will be convergently encrypted to produce the block-level ciphertext object; and
[0108] a data set manifest, each data set manifest corresponding to a data set and identifying (i) a set of block-level ciphertext objects within the one or more data stores that collectively represent the data set, and (ii) for each block-level ciphertext object within the set, an encryption key used to encrypt the block-level ciphertext object, wherein each encryption key is deterministically derived based at least in part on a fixed-length plaintext object represented by the block-level ciphertext object;
[0109] One or more computing devices, the one or more computing devices being configured to:
[0110] obtaining a specific request to store a data set on the storage system;
[0111] Dividing the specific data set into fixed-length plaintext object sets;
[0112] generating a set of block-level ciphertext objects representing the set of fixed-length plaintext objects in encrypted form, wherein generating the set of block-level ciphertext objects comprises, for each fixed-length plaintext object in the set of fixed-length plaintext objects, convergently encrypting the fixed-length plaintext object with an encryption key selected at least in part based on the fixed-length plaintext object to produce a block-level ciphertext object representing the fixed-length plaintext object;
[0113] storing in the one or more data stores those block-level ciphertext objects in the set of block-level ciphertext objects that are not duplicates of block-level ciphertext objects already stored in the one or more data stores;
[0114] generating a manifest for the particular data set, the manifest for the particular data set identifying the set of block-level ciphertext objects and, for each block-level ciphertext object in the set of block-level ciphertext objects, identifying the encryption key used to encrypt the block-level ciphertext object; and
[0115] The manifest for the particular data set is stored in the one or more data stores.
[0116] Clause 2. The system of clause 1, wherein the encryption key for each fixed-length plaintext object is a hash value of the fixed-length plaintext object generated by processing the fixed-length plaintext object through a cryptographic hash algorithm.
[0117] Clause 3. The system of Clause 2, wherein the cryptographic hash algorithm is one of the Secure Hash Algorithm (SHA) family of algorithms or the BLAKE family of algorithms.
[0118] Clause 4. The system of Clause 1, wherein convergently encrypting the fixed-length plaintext object comprises encrypting the fixed-length plaintext object using at least one of a block cipher or a stream cipher.
[0119] Clause 5. The system of clause 1, wherein the specific data set is a disk image containing code executable on the serverless code execution system, and the system further comprises one or more computing devices, wherein the one or more computing devices are configured to:
[0120] obtaining a request to execute the code on the serverless code execution system;
[0121] obtaining said list of said particular data sets from said one or more data stores;
[0122] identifying, from the manifest of the particular data set, a subset of the set of block-level ciphertext objects that is not cached at the serverless code execution system;
[0123] Retrieving a subset of the block-level ciphertext objects;
[0124] decoding the set of block-level ciphertext objects using the encryption key included in the manifest to produce the particular data set;
[0125] Providing the specific data set to a virtualized execution environment of the serverless code execution system; and
[0126] The code is executed within the virtualized execution environment.
[0127] Clause 6. A method comprising:
[0128] Obtain a request to store the data set on a storage system;
[0129] dividing the data set into a fixed-length plaintext object set;
[0130] generating a set of block-level ciphertext objects representing the set of fixed-length plaintext objects in encrypted form, wherein generating the set of block-level ciphertext objects comprises, for each fixed-length plaintext object in the set of fixed-length plaintext objects, convergently encrypting the fixed-length plaintext object using an encryption key derived at least in part based on the fixed-length plaintext object to produce a block-level ciphertext object representing the fixed-length plaintext object;
[0131] storing in the storage system those block-level ciphertext objects in the block-level ciphertext object set that are not duplicated with block-level ciphertext objects already stored in the storage system;
[0132] generating a manifest for the data set, the manifest identifying the set of block-level ciphertext objects and, for each block-level ciphertext object in the set of block-level ciphertext objects, identifying the encryption key used to encrypt the block-level ciphertext object; and
[0133] The manifest is stored in the storage system.
[0134] Clause 7. The method of clause 6, further comprising encrypting a portion of the encryption key of each block-level ciphertext object in the set of block-level ciphertext objects in the manifest using an additional key.
[0135] Clause 8. The method as described in Clause 6 also includes generating an identifier for each block-level ciphertext object in the set of block-level ciphertext objects, wherein the identifier of each block-level ciphertext object is at least one of a message authentication code (MAC) of the block-level ciphertext object or a hash value of the block-level ciphertext object.
[0136] Clause 9. The method of Clause 8, wherein the MAC of the block-level ciphertext object is generated based on the block-level ciphertext object and the encryption key used to encrypt the block-level ciphertext object.
[0137] Clause 10. The method of clause 8, wherein the MAC is a hash-based MAC (HMAC), a Galois / Counter Mode MAC (GMAC), or a Poly1305 MAC.
[0138] Clause 11. A method as described in Clause 8, further comprising determining those block-level ciphertext objects in the block-level ciphertext object set that are not repeated by comparing the MAC of each block-level ciphertext object in the block-level ciphertext object set with the MAC of block-level ciphertext objects already stored in the storage system.
[0139] Clause 12. The method of Clause 6, wherein convergently encrypting the fixed-length plaintext object comprises encrypting the fixed-length plaintext object using at least one of Advanced Encryption Standard (AES) encryption or ChaCha encryption.
[0140] Clause 13. The method of Clause 6, wherein convergently encrypting the fixed-length plaintext object comprises encrypting the fixed-length plaintext object using at least one of a counter mode or a Galois / Counter Mode (GMC) of an encryption algorithm.
[0141] Clause 14. The method of clause 6, wherein convergent encryption of the fixed-length plaintext object comprises:
[0142] adding a salt value to the fixed-length plaintext object, the salt value being selected from a constrained number of permutations corresponding to a desired redundancy of the fixed-length plaintext object on the storage system;
[0143] hashing the fixed-length plaintext object and the salt value according to a cryptographic hash algorithm to generate a hash value; and
[0144] The hash value is used as the encryption key for convergently encrypting the fixed-length plaintext object.
[0145] Clause 15. A method as described in Clause 14, wherein the salt value is selected based on at least one of: a user requesting to store the data set, a time of the request to store the data set, a location on the storage system at which the request to store the data set is stored, or a current storage state of the data set on the storage system.
[0146] Clause 16. One or more non-transitory computer-readable media comprising computer-executable instructions that, when executed by a computing system, cause the computing system to:
[0147] Obtain a request to store the data set on a storage system;
[0148] dividing the data set into a fixed-length plaintext object set;
[0149] generating a set of block-level ciphertext objects representing the set of fixed-length plaintext objects in encrypted form, wherein generating the set of block-level ciphertext objects comprises, for each fixed-length plaintext object in the set of fixed-length plaintext objects, convergently encrypting the fixed-length plaintext object using an encryption key derived at least in part based on the fixed-length plaintext object to produce a block-level ciphertext object representing the fixed-length plaintext object;
[0150] storing in the storage system those block-level ciphertext objects in the block-level ciphertext object set that are not duplicated with block-level ciphertext objects already stored in the storage system;
[0151] generating a manifest for the data set, the manifest identifying the set of block-level ciphertext objects and, for each block-level ciphertext object in the set of block-level ciphertext objects, identifying the encryption key used to encrypt the block-level ciphertext object; and
[0152] The list is stored.
[0153] Clause 17. One or more non-transitory computer-readable media as described in Clause 16, wherein the storage system does not allow querying whether the storage system has stored multiple block-level ciphertext objects within a single operation, and wherein the computer-executable instructions also cause the computing system to identify those block-level ciphertext objects in the group that are not duplicated by submitting an operation to query whether the block-level ciphertext object is stored on the storage system for each block-level ciphertext object in the set of block-level ciphertext objects.
[0154] Clause 18. One or more non-transitory computer-readable media as described in Clause 17, wherein the operation of querying whether the block-level ciphertext object is stored on the storage system identifies the block-level ciphertext object through at least one of a MAC of the block-level ciphertext object or a hash value of the block-level ciphertext object.
[0155] Clause 19. The one or more non-transitory computer-readable media of Clause 16, wherein to convergently encrypt the fixed-length plaintext object, the instructions cause the computing system to:
[0156] adding a salt value to the fixed-length plaintext object, the salt value being selected from a constrained number of permutations corresponding to a desired redundancy of the fixed-length plaintext object on the storage system;
[0157] hashing the fixed-length plaintext object and the salt value according to a cryptographic hash algorithm to generate a hash value; and
[0158] The hash value is used as the encryption key for convergently encrypting the fixed-length plaintext object.
[0159] Clause 20. The one or more non-transitory computer-readable media of Clause 16, wherein the instructions further cause the computing system to:
[0160] obtaining a request to retrieve the data set;
[0161] identifying the set of block-level ciphertext objects from the manifest;
[0162] Retrieving the set of block-level ciphertext objects from the storage system;
[0163] decrypting each block-level ciphertext object in the set of block-level ciphertext objects using the encryption key of the block-level ciphertext object identified in the manifest; and
[0164] The plaintext objects resulting from the decryption of each block-level ciphertext object are combined to produce the data set.
[0165] Various additional example embodiments of the present disclosure may be described by the following additional clauses:
[0166] Clause 1. A system for performing improved convergent encryption, wherein a given plaintext is encrypted into one of a plurality of possible ciphertexts subject to a desired redundancy of the plaintext, the system comprising:
[0167] A distributed data store configured to store ciphertext; and
[0168] One or more processors configured to:
[0169] adding a salt value to the plaintext of the data set, the salt value selected from a constrained number of salt permutations corresponding to a desired redundancy of the data set in the distributed data store, wherein the salt value is selected based on at least one of: a user requesting to store the data set, a time of the request to store the data set, a location on the distributed data store at which the request to store the data set is stored, or a current storage state of the data set in the distributed data store;
[0170] hashing the plaintext of the data set with the added salt value according to a cryptographic hashing algorithm to generate a hash value;
[0171] encrypting the plaintext of the data set using the hash value as an encryption key to generate a ciphertext of the data set;
[0172] determining whether the ciphertext of the data set is currently stored in the distributed data store; and
[0173] When it is determined that the ciphertext of the data set is not currently stored in the distributed data store, the ciphertext of the data set is stored in the distributed data store.
[0174] Clause 2. The system of clause 1, wherein the cryptographic hash algorithm is one of an algorithm in the Secure Hash Algorithm (SHA) family or an algorithm in the BLAKE family.
[0175] Clause 3. The system of clause 1, wherein to encrypt the plaintext of the data set, the one or more processors are configured to use at least one of a block cipher or a stream cipher.
[0176] Clause 4. The system of clause 1, wherein the salt value is selected based on the user requesting to store the data set, and wherein the salt value is unique to the user.
[0177] Clause 5. The system of clause 1, wherein the salt value is selected based on the user requesting to store the data set, and wherein the salt value is shared among a proportion of users of the system inversely proportional to the number of salt permutations.
[0178] Clause 6. A computer-implemented method, the computer-implemented method comprising:
[0179] obtaining instructions to store the data set on a storage system;
[0180] adding a salt value to the plaintext of the data set, the salt value being selected from a constrained number of salt permutations corresponding to a desired redundancy of the data set in the storage system;
[0181] hashing the plaintext of the data set with the added salt value according to a cryptographic hashing algorithm to generate a hash value;
[0182] encrypting the plaintext of the data set using the hash value as an encryption key to generate a ciphertext of the data set; and
[0183] In response to determining that the ciphertext for the data set is not currently stored in the storage system, the ciphertext for the data set is stored in the storage system.
[0184] Clause 7. A method as described in Clause 6, wherein the salt value is selected based on at least one of: a user requesting to store the data set, a time of the request to store the data set, a location on the storage system at which the request to store the data set is stored, or a current storage state of the data set in the storage system.
[0185] Clause 8. The method of clause 6, wherein the salt value is selected based on a time of a request to store the data set, and wherein all requests to store the data set obtained within a certain time window share the salt value.
[0186] Clause 9. A method as described in clause 6, wherein the salt value is selected based on the time of the request to store the data set, and wherein the salt value is probabilistically selected between two potential salt values, the two potential salt values including a first potential salt value time corresponding to a first time period and a second potential salt value corresponding to a second time period.
[0187] Clause 10. The method of Clause 6, wherein the salt value is selected based on a location on the storage system at which the data set is requested to be stored, and wherein different locations on the storage system are associated with different salt values.
[0188] Clause 11. The method of Clause 10, wherein the different locations on the storage system are associated with isolated computing systems.
[0189] Clause 12. The method of Clause 6, wherein the salt value is selected based on a time of the request to store the data set.
[0190] Clause 13. A method as described in Clause 6, wherein the data set is a fixed-length block of a larger data set, and wherein the method also includes storing an identifier of the ciphertext of the data set and the encryption key used to encrypt the ciphertext of the data set in a manifest corresponding to the larger data set.
[0191] Clause 14. The method of Clause 6, wherein the salt value is selected based on a current storage state of the data set in the storage system, and wherein the current storage state indicates a number of redundant instances of the data set stored on the storage system.
[0192] Clause 15. One or more non-transitory computer-readable media comprising computer-executable instructions that, when executed by a computing system, cause the computing system to:
[0193] obtaining instructions to store the data set on a storage system;
[0194] adding a salt value to the plaintext of the data set, the salt value being selected from a constrained number of salt permutations corresponding to a desired redundancy of the data set in the storage system;
[0195] hashing the plaintext of the data set with the added salt value according to a cryptographic hashing algorithm to generate a hash value;
[0196] encrypting the plaintext of the data set using the hash value as an encryption key to generate a ciphertext of the data set; and
[0197] In response to determining that the ciphertext for the data set is not currently stored in the storage system, the ciphertext for the data set is stored in the storage system.
[0198] Clause 16. One or more non-transitory computer-readable media as described in Clause 15, wherein in order to add the salt value to the plaintext of the data set, the instructions cause the computing system to at least one of add the salt value to the front or back of the plaintext of the data set.
[0199] Clause 17. The one or more non-transitory computer-readable media of Clause 15, wherein the instructions further cause the computing system to:
[0200] generating a message authentication code (MAC) for the ciphertext of the data set; and
[0201] Determining whether the ciphertext of the data set is currently stored within the storage system is performed by querying whether the MAC of the ciphertext of the data set matches the MAC of any ciphertext stored on the storage system.
[0202] Clause 18. The one or more non-transitory computer-readable media of Clause 17, wherein the MAC is a hash-based MAC (HMAC), a Galois / Counter Mode MAC (GMAC), or a Poly1305 MAC.
[0203] Clause 19. The one or more non-transitory computer-readable media of Clause 17, wherein the MAC is generated using a combination of the ciphertext of the data set and the encryption key used to encrypt the ciphertext of the data set.
[0204] Clause 20. One or more non-transitory computer-readable media as described in Clause 17, wherein to encrypt the plaintext of the data set, the instructions cause the computing to implement at least one of Advanced Encryption Standard (AES) encryption or ChaCha encryption.
[0205] All of the methods and processes described above may be embodied in and fully automated via software code modules executed by one or more computers or processors. The code modules may be stored in any type of non-transitory computer-readable medium or other computer storage device. Some or all of the methods described may alternatively be embodied in dedicated computer hardware.
[0206] Unless otherwise specifically stated, conditional language such as "can," "may," "might," or "may" should be understood in context as generally used to indicate that certain embodiments include and other embodiments do not include certain features, elements, and / or steps. Thus, such conditional language is generally not intended to imply that one or more embodiments require features, elements, and / or steps in any way, or that one or more embodiments must include logic for deciding, with or without user input or prompting, whether such features, elements, and / or steps are included or to be performed in any particular embodiment.
[0207] Unless otherwise specifically stated, disjunctive language such as the phrase "at least one of X, Y, or Z" should be understood in context as generally used to indicate that an item, term, etc. may be X, Y, or Z, or any combination thereof (e.g., X, Y, and / or Z). Thus, such disjunctive language is generally not intended to, and should not, imply that certain embodiments require that at least one of X, at least one of Y, or at least one of Z each be present.
[0208] Unless expressly stated otherwise, articles such as "a" or "an" should generally be interpreted to include one or more of the described items. Thus, phrases such as "a device configured to..." are intended to include one or more of the listed devices. Such one or more listed devices may also be collectively configured to perform the stated statements. For example, "a processor configured to perform statements A, B, and C" may include a first processor configured to perform statement A working in conjunction with a second processor configured to perform statements B and C.
[0209] Any routine description, element or box in the flowchart described in this article and / or depicted in the accompanying drawings should be understood to potentially represent a module, segment or portion of code, which includes one or more executable instructions for implementing a specific logical function or element in the routine. Alternative implementations are included within the scope of the embodiments described herein, where, as understood by those skilled in the art, depending on the functionality involved, elements or functions may be deleted, or executed out of the order shown or discussed, including substantially synchronous execution or reverse order execution.
[0210] It should be emphasized that many changes and modifications may be made to the embodiments described above, and the elements of the changes and modifications should be understood to be among other acceptable examples. In this article, all such modifications and changes are intended to be included within the scope of this disclosure and protected by the appended claims.
Claims
1. A storage system for facilitating deduplication of encrypted data, the storage system comprising: One or more data stores configured to store: block-level ciphertext objects, each block-level ciphertext object representing a fixed-length plaintext object that is convergently encrypted to generate the block-level ciphertext object; as well as a data set manifest, each data set manifest corresponding to a data set and identifying (i) a set of block-level ciphertext objects within the one or more data stores that collectively represent the data set, and (ii) for each block-level ciphertext object within the set, an encryption key for encrypting the block-level ciphertext object, wherein each encryption key is deterministically derived based at least in part on a fixed-length plaintext object represented by the block-level ciphertext object; One or more computing devices, the one or more computing devices including a hardware processor and associated with the storage system, the one or more computing devices being configured to: obtaining, from a computing device of a first user, a request to store a particular data set on the storage system; dividing the particular data set into a set of fixed-length plaintext objects, wherein the length of each fixed-length plaintext object is shared with fixed-length plaintext objects generated from one or more additional data sets of one or more additional users other than the first user stored on the storage system; generating a set of block-level ciphertext objects representing the set of fixed-length plaintext objects in encrypted form, wherein generating the set of block-level ciphertext objects comprises, for each fixed-length plaintext object in the set of fixed-length plaintext objects, convergently encrypting the fixed-length plaintext object with an encryption key selected at least in part based on the fixed-length plaintext object to produce a block-level ciphertext object representing the fixed-length plaintext object; storing, in the one or more data stores, those block-level ciphertext objects in the set of block-level ciphertext objects that are not duplicates of block-level ciphertext objects already stored in the one or more data stores; generating a manifest for the specific data set, the manifest for the specific data set identifying the set of block-level ciphertext objects collectively representing the specific data set and, for each block-level ciphertext object in the set of block-level ciphertext objects, identifying the encryption key used to encrypt the block-level ciphertext object; as well as The manifest for the particular data set is stored in the one or more data stores.
2. The system of claim 1, wherein the encryption key for each fixed-length plaintext object is a hash value of the fixed-length plaintext object generated by processing the fixed-length plaintext object through a cryptographic hash algorithm.
3. The system of claim 2, wherein the cryptographic hash algorithm is one of the Secure Hash Algorithm (SHA) family of algorithms or the BLAKE family of algorithms.
4. The system of claim 1, wherein convergently encrypting the fixed-length plaintext object comprises encrypting the fixed-length plaintext object using at least one of a block cipher or a stream cipher.
5. The system of claim 1, wherein the specific data set is a disk image containing code executable on the serverless code execution system, and wherein, The one or more computing devices are further configured to: obtaining a request to execute the code on the serverless code execution system; obtaining said list of said particular data sets from said one or more data stores; identifying, from the manifest of the particular data set, a subset of the set of block-level ciphertext objects that is not cached at the serverless code execution system; Retrieving a subset of the block-level ciphertext objects; decoding the set of block-level ciphertext objects using the encryption key included in the manifest to produce the particular data set; Providing the specific data set to a virtualized execution environment of the serverless code execution system; as well as The code is executed within the virtualized execution environment.
6. A method implemented by at least one computing device including a processor and associated with a storage system, the method comprising: Obtaining a request from a computing device of a first user to store a data set on the storage system; partitioning the data set into a set of fixed-length plaintext objects, wherein the length of each fixed-length plaintext object is shared with fixed-length plaintext objects generated from one or more additional data sets of one or more additional users different from the first user stored on the storage system; generating a set of block-level ciphertext objects representing the set of fixed-length plaintext objects in encrypted form, wherein generating the set of block-level ciphertext objects comprises, for each fixed-length plaintext object in the set of fixed-length plaintext objects, convergently encrypting the fixed-length plaintext object using an encryption key derived at least in part based on the fixed-length plaintext object to produce a block-level ciphertext object representing the fixed-length plaintext object; storing in the storage system those block-level ciphertext objects in the block-level ciphertext object set that are not duplicated with block-level ciphertext objects already stored in the storage system; generating a manifest for the data set, the manifest identifying the set of block-level ciphertext objects collectively representing the data set and, for each block-level ciphertext object in the set of block-level ciphertext objects, identifying the encryption key used to encrypt the block-level ciphertext object; as well as The manifest is stored in the storage system.
7. The method of claim 6, further comprising encrypting a portion of the encryption key of each block-level ciphertext object in the set of block-level ciphertext objects of the manifest using an additional key.
8. The method of claim 6, further comprising generating an identifier for each block-level ciphertext object in the set of block-level ciphertext objects, wherein the identifier for each block-level ciphertext object is at least one of a message authentication code (MAC) of the block-level ciphertext object or a hash value of the block-level ciphertext object.
9. The method of claim 8, wherein the identifier of each block-level ciphertext object comprises a message authentication code (MAC) of the block-level ciphertext object, and wherein the MAC of the block-level ciphertext object is generated based on the block-level ciphertext object and the encryption key used to encrypt the block-level ciphertext object.
10. The method of claim 8, wherein the identifier of each block-level ciphertext object comprises a message authentication code (MAC) of the block-level ciphertext object, and wherein the MAC is at least one of a hash-based MAC (HMAC), a Galois / Counter Mode MAC (GMAC), or a Poly1305 MAC.
11. The method of claim 8 further comprises determining those block-level ciphertext objects in the block-level ciphertext object set that are not repeated by comparing the MAC of each block-level ciphertext object in the block-level ciphertext object set with the MAC of block-level ciphertext objects already stored in the storage system.
12. The method of claim 6, wherein convergently encrypting the fixed-length plaintext object comprises encrypting the fixed-length plaintext object using at least one of Advanced Encryption Standard (AES) encryption or ChaCha encryption.
13. The method of claim 6, wherein convergently encrypting the fixed-length plaintext object comprises encrypting the fixed-length plaintext object using at least one of a counter mode or a Galois / Counter Mode (GMC) of an encryption algorithm.
14. The method of claim 6, wherein convergently encrypting the fixed-length plaintext object comprises: adding a salt value to the fixed-length plaintext object, the salt value being selected from a constrained number of permutations corresponding to a desired redundancy of the fixed-length plaintext object on the storage system; hashing the fixed-length plaintext object and the salt value according to a cryptographic hash algorithm to generate a hash value; as well as The hash value is used as the encryption key for convergently encrypting the fixed-length plaintext object.
15. The method of claim 14, wherein the salt value is selected based on at least one of: a user requesting to store the data set, a time of the request to store the data set, a location on the storage system at which the request is to store the data set, or a current storage state of the data set on the storage system.
16. One or more non-transitory computer-readable media comprising computer-executable instructions that, when executed by at least one computing device comprising a processor and associated with a storage system, cause the at least one computing device to: obtaining, from a computing device of a first user, a request to store a data set on a storage system; partitioning the data set into a set of fixed-length plaintext objects, wherein the length of each fixed-length plaintext object is shared with fixed-length plaintext objects generated from one or more additional data sets of one or more additional users different from the first user stored on the storage system; generating a set of block-level ciphertext objects representing the set of fixed-length plaintext objects in encrypted form, wherein generating the set of block-level ciphertext objects comprises, for each fixed-length plaintext object in the set of fixed-length plaintext objects, convergently encrypting the fixed-length plaintext object using an encryption key derived at least in part based on the fixed-length plaintext object to produce a block-level ciphertext object representing the fixed-length plaintext object; storing in the storage system those block-level ciphertext objects in the block-level ciphertext object set that are not duplicated with block-level ciphertext objects already stored in the storage system; generating a manifest for the data set, the manifest identifying the set of block-level ciphertext objects collectively representing the data set and, for each block-level ciphertext object in the set of block-level ciphertext objects, identifying the encryption key used to encrypt the block-level ciphertext object; as well as The list is stored.
17. One or more non-transitory computer-readable media as described in claim 16, wherein the storage system does not allow querying whether the storage system has stored multiple block-level ciphertext objects within a single operation, and wherein the computer-executable instructions also cause the computing system to identify those block-level ciphertext objects in the set that are not duplicated by submitting an operation to query whether the block-level ciphertext object is stored on the storage system for each block-level ciphertext object in the set of block-level ciphertext objects.
18. One or more non-transitory computer-readable media as described in claim 17, wherein the operation of querying whether the block-level ciphertext object is stored on the storage system identifies the block-level ciphertext object through at least one of a MAC of the block-level ciphertext object or a hash value of the block-level ciphertext object.
19. The one or more non-transitory computer-readable media of claim 17, wherein to convergently encrypt the fixed-length plaintext object, the instructions cause the computing system to: adding a salt value to the fixed-length plaintext object, the salt value being selected from a constrained number of permutations corresponding to a desired redundancy of the fixed-length plaintext object on the storage system; hashing the fixed-length plaintext object and the salt value according to a cryptographic hash algorithm to generate a hash value; as well as The hash value is used as the encryption key for convergently encrypting the fixed-length plaintext object.
20. The one or more non-transitory computer-readable media of claim 17, wherein the instructions further cause the computing system to: obtaining a request to retrieve the data set; identifying the set of block-level ciphertext objects from the manifest; Retrieving the set of block-level ciphertext objects from the storage system; decrypting each block-level ciphertext object in the set of block-level ciphertext objects using the encryption key of the block-level ciphertext object identified in the manifest; as well as The plaintext objects resulting from the decryption of each block-level ciphertext object are combined to produce the data set.
