Encryption for Message Queues

A topic-based encryption policy in message queuing systems encrypts messages at the producer and decrypts at the consumer, addressing vulnerabilities in existing systems by controlling encryption independently of the queuing system operator, ensuring secure end-to-end data protection.

JP2023512928A5Active Publication Date: 2024-09-11INTERNATIONAL BUSINESS MACHINE CORPORATION
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
JP2022543533
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Priority Date
2020-02-05
Filing Date
2021-01-10
Publication Date
2024-09-11
Estimated Expiration
2041-01-10

AI Technical Summary

Technical Problem

Existing message queuing systems lack end-to-end encryption, leaving sensitive data vulnerable to unauthorized access and sysadmin attacks, with encryption control often delegated to the queuing system operator rather than the message producer or consumer.

Method used

Implement a topic-based encryption policy where messages are encrypted by the producer using keys managed by a key management system, stored in the queuing system, and decrypted by the consumer, ensuring encryption is controlled by the message producer and consumer, with encryption policies and key management systems independent of the queuing system operator.

Benefits of technology

Ensures secure, end-to-end encryption of messages, preventing unauthorized access and sysadmin attacks by maintaining encryption control with the message producer and consumer, while allowing flexible encryption policies based on message topics.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 00000000_0000_ABST
    Figure 00000000_0000_ABST
Patent Text Reader

Abstract

Targeted topic-based encryption on publish-subscribe message queues. Topic-based encryption, driven by encryption policies for both storing and receiving messages, ensures confidentiality of the specific topic associated with stored encrypted messages, with activity tracking and logging. Authentication of both publishers and consumers ensures confidentiality of encryption and decryption keys.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates generally to message queuing systems, and more particularly to processing messages within a message queuing system in a secure manner. [Background technology]

[0002] Managing messages and information exchange within a business, between businesses, business-to-consumer, and consumer-to-consumer is one of the core skills of information technology. Messaging systems have been widely used for decades to store, transfer, and distribute data as messages. Recently, messaging systems such as Kafka are also considered a form of database. Concurrent with this development, such messaging systems are increasingly instantiated in cloud computing systems. (Note: the term "KAFKA" may be subject to trademark rights in various jurisdictions around the world and is used herein only with respect to products or services appropriately named by the mark to the extent such trademark rights may exist.)

[0003] A secure key management and data transmission system is known that includes a transition system, a data consumer network device, a user network device, and a data transmission network, wherein the transmission management system is configured to receive user-specific data from the user network device via the data transmission network and receive a request for a service corresponding to processing the user-specific data according to a proprietary process provided by the data consumer network device.

[0004] Additionally, a system for propagating network configuration policies includes: Publish / SubscribeIt is known to use a publish / subscribe messaging system. During operation, the system: Publish / Subscribe One or more messages including a first representation of a configuration policy are received from a policy server through the messaging system. Summary of the Invention

[0005] In one aspect of the invention, a method, computer program product, and system includes: (i) determining, by referencing a topic-based encryption policy, that a first topic associated with a first message requires a first encryption level; and (ii) The above Encrypt the first message according to a first encryption level. hand , an encryption key for generating a first encrypted message The first entity (e.g., User system) (iii) storing the first encrypted message in a message queuing system according to the first topic; and (iv) The above Contains the first encrypted message The above Related to the first topic The first one attached Request for message A second entity (e.g. consumer system) (v) in accordance with a topic-based encryption policy for the first topic; The first topic associated with the first topic (vi) identifying a decryption key corresponding to the encrypted message; and (vi) using said decryption key to A second entity (e.g. consumer system) The first encrypted message for decryption by A second entity (e.g. consumer system) and sending the In one aspect of the invention, prior to step (i), the computer-implemented method includes receiving a request from a first entity to determine whether a first topic requires encryption for storage within the message queuing system. In any aspect of the invention, the computer-implemented method may further include recording in a logging system the providing of the encryption key to the first entity for generating the first encrypted message and the sending of the decryption key for the first encrypted message to the second entity. In any aspect of the invention, the computer-implemented method may further include, in response to an update to the topic-based encryption policy, logging the update in the logging system. In one optional aspect of the invention, the message authentication code may include a keyed-Hash Message Authentication Code (HMAC). In any aspect of the invention, the computer-implemented method may further include establishing a subscription account for the second entity, including assigning authenticating credentials to the second entity, and the request being received when the second entity subscribes to the first topic via the subscription account. In one optional aspect of the invention, the decryption key may be assigned to the first topic by the topic-based encryption policy.

[0006] According to another aspect of the present invention, Publish / Subscribe Message Queuing System ( publish / subscribe message queuing system ) A computer-implemented method for targeted, policy-based encryption in a message queuing system may be provided, the method including receiving an encrypted message by a message queuing system, the message being encrypted by reference to an encryption policy system and a key management system that stores topic-related encryption keys, storing the received topic-related encrypted message, and assigning a topic-related encryption key to the message queuing system. Subscription and sending an encrypted message based on the

[0007] According to yet another aspect of the present invention, Publish - Subscribe A system for targeted policy-based encryption in publish-subscribe message queues may be provided that includes a message queuing system adapted to receive encrypted messages, the messages being encrypted by reference to an encryption policy system and a key management system that stores topic-related encryption keys; a means for storing received topic-related encrypted messages; and a means for storing topic-related encrypted messages and a means for storing topic-related encryption keys. Subscription and means for sending an encrypted message based on the

[0008] moreover, Another Embodiments include associated computer program products accessible from a computer usable or computer readable medium that provide program code for use by or in conjunction with a computer or any instruction execution system. ofIn this description, a computer usable medium or computer readable medium may be any apparatus that may include means for storing, communicating, propagating, or transporting a program for use by or in connection with an instruction execution system, apparatus, or device. Yet another embodiment is a computer-implemented method, the computer-implemented method comprising: receiving a request from a first entity to determine whether a first topic requires encryption for storage in a message queuing system, the first topic being associated with a first message; determining, by the first entity, that the first topic requires a first encryption level by referencing a topic-based encryption policy; encrypting, by the first entity, the first message according to the first encryption level to generate an encrypted message; storing the encrypted message within a message queuing system according to the first topic; receiving from a second entity a subscription for messages associated with the first topic that includes the first message; identifying, by the second entity, a decryption key corresponding to the encrypted message according to the topic-based encryption policy for the first topic; decrypting, by the second entity, the encrypted message with the decryption key to recover the first message; Including, wherein the encrypted message includes a message authentication code, the message authentication code ensuring the integrity of the signer of the first encrypted message and the integrity of the first encrypted message. A computer-implemented method is provided. In any aspect of the invention, the computer-implemented method may further include receiving the first message associated with the first topic from the first entity. In one optional aspect of the present invention, the message queuing system is a Kafka system. In any aspect of the invention, identifying the decryption key may include referencing the topic-based encryption policy to determine whether a subscription for a message associated with the first topic includes an encrypted message. In one optional aspect of the invention, a subscription for the message may include the encrypted message only if the message authentication code is provided by the second entity.

[0009] It should be noted that embodiments of the present invention are described with reference to different subject matters. In particular, some embodiments are described with reference to method type claims, whereas other embodiments are described with reference to apparatus type claims. However, from the above and following description, a person skilled in the art will infer that, unless otherwise indicated, any combination of features belonging to a certain type of subject matter, as well as any combination between features relating to different subject matters, in particular between features of method type claims and features of apparatus type claims, is also considered to be disclosed within this document.

[0010] The above defined aspects, as well as further aspects of the invention, will be apparent from and will be elucidated with reference to the example embodiments described hereinafter, to which the invention is not limited.

[0011] Some embodiments of the present invention will now be described, by way of example only, with reference to the following drawings, in which: [Brief description of the drawings]

[0012] [Figure 1] 1 is a flowchart of a first embodiment method for targeted policy-based encryption in publish-subscribe message queues. [Diagram 2] FIG. 2 is a schematic diagram of a first embodiment of a system supporting the first embodiment method of FIG. 1; [Diagram 3] 3 is a flowchart of activities for implementing at least a portion of the method of the first embodiment using the system of the first embodiment of FIG. 2. [Figure 4] 1 is a schematic diagram of a machine logic (e.g., software) portion of a first embodiment system for targeted policy-based encryption in publish / subscribe message queues. [Diagram 5] 11 is a flowchart of a second embodiment method for targeted policy-based encryption in publish-subscribe message queues. [Figure 6] 1 is a schematic diagram of a computing system according to the present invention; DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0013] Publish - Subscribe Targeted topic-based encryption on message queues. Topic-based encryption is driven by encryption policies for both storing and receiving messages, and activity tracking and logging is used to track and report on events associated with stored encrypted messages. Attached Ensures confidentiality for certain topics. Authentication of both the publisher and the consumer ensures that encryption and decryption keys are used confidentially.

[0014] When messaging systems carry highly sensitive data, such as personal or financial data, encryption of the data at the messaging server may often be required due to regulatory requirements, privacy policies, and / or best practices.

[0015] Some messaging systems store all data that is intended to be transferred through the messaging server. For this and other reasons, such messaging systems resemble databases. This type of messaging system increases the need for encrypted storage, since the complete set of sensitive information may reside and be stored on the messaging server. If not encrypted, the entire sensitive data may be exposed to unauthorized access.

[0016] Some messaging systems may support native encryption of data stored on the messaging server, however, even if the messaging system supports encrypted storage on the server, the original producer of the data does not necessarily control the means of encryption, especially the encryption keys.

[0017] Often, encryption-at-rest is addressed with disk or file system encryption on the messaging server. While such techniques may prevent exposure when a disk is lost or stolen, they do not typically prevent access to decrypted data when a user has read and permission to all files on the messaging server. Thus, the file system will decrypt the data for such users because they have read permission. To prevent this, so-called "sysadmin attacks," best security practices dictate that sensitive data be encrypted, i.e. at the database or application level, with the corresponding decryption keys inaccessible to system administrators.

[0018] In the context of this description, the following terms, terms or expressions, or combinations thereof, may be used:

[0019] The term "policy-based encryption" may indicate that a repository of rules may be available, for example, in an encryption policy database. By consulting the encryption policy database and flagging the requirement for encryption of messages on a particular topic in a message queue, the encryption policy database may inform the requestor that messages on the selected topic are or must be encrypted. Note also that "encrypting a message" may refer to the process of making a message unreadable as plain text. A message may only be understandable after it is decrypted.

[0020] It should also be noted that the term "encryption" may be understood broadly, i.e., to include other cryptographic operations such as digital signatures and MACs that provide message integrity and non-repudiation properties.

[0021] The term "message queue" (or messaging queue) may denote a data storage organization that facilitates inter-process communication or for communication between threads within the same process. It may use a queue for messages, such as a predefined sequence of messages. In this way, an asynchronous communication protocol may be established. This means that the sender and receiver of a message do not need to interact with the message queue at the same time. A message placed on the queue by the sender may be stored on the queue and received and / or retrieved by the receiver. There may be several different commercially available message queuing systems from various companies or on a larger scale as open source implementations. Sometimes a message queuing system may also be denoted as a message broker.

[0022] Thus, message queuing may enable messaging patterns in which the sender of a message, referred to herein as a publisher or message producer, does not program the message to be sent directly to a specific recipient, referred to herein as a message consumer. In the context of this description, the terms "producer" and "consumer" refer to a human user operating a computer or a person who generates, encrypts, and / or processes messages in a message queuing system. Subscribe Alternatively, the published message may refer to any computer program that operates according to program instructions to transmit, receive, or decode, or a combination of these. Subscriber Without any prior knowledge, the documents can be classified into different classes or topics. Subscriber expresses an interest in one or more of those message classes, such as a particular topic of interest, without any knowledge of which message producer generated the message. Subscriber Only messages of interest to the user may be received.

[0023] The term "encrypted message" may denote data that is not present in clear text but is encoded by a cryptographic key. Various methods for encryption are known. The proposed concept may be independent of the encryption method chosen. An encrypted message is readable only in clear text after decryption.

[0024] The term "encryption policy system" may refer to a policy database or repository of information that defines the encryption operations and associated key material to be applied to messages, e.g., sent to a given topic in a message queuing system. Specifically, for each topic to be protected against unauthorized access, there may be a record that details at least some of the following information: (i) message server address, (ii) topic name, (iii) topic identifier, (iv) encryption algorithm, (v) encryption / decryption steps, (vi) cipher suite (e.g., respective application programming interface), (vii) key management service, (viii) service address, (ix) key identifier, and / or (x) optional initialization information for encryption / decryption.

[0025] The term "key management system" may refer specifically to a storage system for encryption and decryption key pairs for asymmetric encryption or symmetric encryption / decryption of messages. A key management system may provide specific encryption keys based on selected rules of an encryption policy system (for message senders) or based on selected topics (for message consumers).

[0026] " Subscription The term " may indicate an expressed interest in messages of a specified class or topic. Subscription A message consumer can receive messages stored in a message queue by topic or class.

[0027] The term "topic" may refer to a theme or headline for multiple messages. Topics may be organized according to various rules, for example, regarding the same or similar content, regarding a particular time frame, and / or regarding authors.

[0028] The term "Kafka" (or the Kafka system), particularly version 0.9.0 and above, may refer to a well-known open source stream processing software platform owned by the Apache Software Foundation. Kafka aims to provide a unified, high-throughput, low-latency platform for processing real-time data feeds. Kafka may also be used as a message queuing system that organizes received messages into topics and stores them in associated databases. In addition to the Kafka system, the proposed method and related systems may be implemented with other message queuing systems. (Note: The terms "KAFKA", "APACHE", and "APACHE SOFTWARE FOUNDATION" may be subject to trademark rights in various jurisdictions throughout the world and are used herein only with respect to products or services appropriately named by the mark to the extent such trademark rights may exist).

[0029] The term "message producer" may refer to the originator (or originator operated system) of a message. The originator may also be referred to as a publisher.

[0030] The term "message consumer" may refer to the recipient of a message. Note that the terms "(message) producer" and "(message) consumer" may relate to the Kafka system.

[0031] Some embodiments of the present invention recognize the following facts, potential problems, and / or potential areas for improvement with respect to the current state of the art: (i) conventional systems for propagating network configuration policies do not enable end-to-end encryption of topic-related messages in message broker systems, and thus sysadmin attacks may still be inevitable, and thus there may be a need to overcome such shortcomings in conventional message queuing systems, particularly with respect to protecting data within the message queuing system; (ii) end-to-end data protection from producer to consumer can be guaranteed without decrypting messages sent from producer to message queuing system, and messages stored within a database on a message queuing server remain encrypted, and messages stored in encrypted form within the database and thus requiring encryption in accordance with a security policy and received by the message queuing system are always inaccessible to unauthorized personnel (or unauthorized systems); (iii) the message queuing system, encryption policy system, and associated key management system and / or services are capable of providing a secure, secure, and / or secure network; Publish / Subscribe(iv) administrators of a message queuing server may be excluded from accessing encrypted messages on specified topics in the message queuing system's database according to an encryption policy system that may exclude administrators from read permissions on topics in the database; (v) control is not merely delegated to message producers, but by an encryption policy system that may define rules for message producers and message recipients independently in such a way that message producers may simply request encryption keys from a key management system or service that is related to, but not necessarily identical to, the encryption policy system. (vi) messages may be stored within the message queuing system as topic-related messages, and thus there may be topics that require encryption in the message queuing system's database and other topics that may not require any encryption; and / or (vii) the producer of the message and / or the encryption database system key user may retain full control of the encryption / decryption process, such that encryption is not delegated to an operator of the message queuing system (e.g., an operator of a standard message queuing system like Kafka may be used and at the same time ensure encryption of messages in the topic).

[0032] In the following a detailed description of the figures is given. All the instructions in the figures are schematic. First, Publish - SubscribeA block diagram of one embodiment of the computer-implemented method of the present invention for targeted policy-based encryption in messaging queues is provided. Publish - Subscribe SUMMARY OF THE DISCLOSURE An embodiment of a system for targeted policy-based encryption in messaging queues is described.

[0033] Figure 1 specifically targets the topic level. Publish - Subscribe 1 is a flow chart of a first embodiment method 100 for targeted policy-based encryption in a message queue. The message queue may be implemented using the Kafka system or another now known or to be developed messaging system. The method includes receiving 102 an encrypted message by the message queuing system, whereby the message has been encrypted specifically by a message producer or an associated message generating system by reference to an encryption policy system and a key management system that stores topic-associated encryption keys. Alternatively, the policy-based encryption is targeted at a class level.

[0034] The method 100 also includes storing (104) received topic-related encrypted messages, specifically upon request of a message consumer. Publish / Subscribe The expression includes a link to the topic to which the message pertains. Subscription Alternatively, the concept of a message class may be used to organize messages, and Subscription In this disclosure, the term class includes characteristics that may not be immediately understood as topical, such as the urgency of a message, its classified status, and its level of insightfulness.

[0035] FIG. 2 is a schematic diagram of a first embodiment system 200 supporting the method of the first embodiment of FIG. 1. A message producer 202 consults an encryption policy in an encryption policy system 210 to determine whether a message on a particular topic must be encrypted. The message producer 202 receives an encryption key for the message from a key management system 212, either in parallel or on request, and the key management system grants access via an access control module 213. In this example, the message producer may interact with the key management system using a key management API (application programming interface) 214. The key management system and the encryption policy system record key access transactions and policy changes to a logging system 216 via the access control modules 211 and 213. The records may include requests received, acceptances, rejections, corresponding time stamps, permission levels, topics sought, and / or keys provided. The key management system may also manage access control to particular topics for producers and consumers. The message (not shown) is then sent in a particular encrypted format, encrypted by the encryption interface 203 of the message producer 204, to a message broker 204 for storing the message in encrypted format as a specified topic or class in a file system 206. In some embodiments of the invention, the file system 206 is in the form of a Kafka cluster. In some embodiments of the invention, encryption and decryption is performed at the broker level, e.g., within the broker 204, such that key access is consolidated at the broker. Publish / Subscribe In this mode, the broker 204 receives Subscribe Be Ta Send the consumer an encrypted message about the topic. In response to receiving the message, the consumer 208 checks with the encryption policy system 210 to Subscribed determining whether messages on the topic are encrypted; if so, the consumer receives a decryption key for said encryption key upon request; SubscribedThe request is made using the topic as an input parameter to the key management system 212. Note that the encryption / decryption can be symmetric (encryption key and encryption key are the same) or asymmetric (e.g., encryption key and decryption key are different, such as in a public key infrastructure). The encryption / decryption mechanism may conform to the AES-256 Advanced Security Standard, and the keys may be compatible with any other suitable encryption standard. In some embodiments of the invention, the broker is a message queuing system. In some embodiments of the invention, the key management system acts as a key management service.

[0036] Upon receiving the decryption key, the message consumer decrypts the received message (not shown) using the decryption interface 209 of the message consumer 208 and the received decryption key (not shown).

[0037] 3 is a flow chart of a process 300 including activities for implementing at least a portion of the method of the first embodiment using the system of the first embodiment of FIG. 2. In an initial step 302, a message producer, or simply producer, through a broker 204: Subscribe The message with the assigned topic is prepared for sending to the file system 206. Before sending, the producer: Subscribe The cryptographic policy system 210 is queried (304) using the determined topic as an input variable. In this example, Subscribe It is found that the selected topic requires encryption according to an encryption policy system or database. The producer then requests an encryption key referenced in the encryption policy from the key management system 212. Assuming that the access control policy at the key management service allows access to the key for the producer, i.e., the producer is permitted to send messages for the specified topic to the file system, the key is returned by the key management service in the request response to the producer.

[0038] At the same time, the key request by the producer is recorded in an audit trail within the logging system 216.

[0039] Next, at 306, the producer encrypts the outgoing message body using a key retrieved from the key management system, and the message is sent via the broker 204 to the file system 206 under the specified topic. The broker receives (308) the message and stores the message in the file system in encrypted format within the targeted topic.

[0040] The broker then receives (310) a request from the consumer for a message on the specified topic. The consumer request is stored in a message logging system, such as logging system 216. The logging system is associated with key management system 212 by access control module 213 and with encryption policy system 210 by access control module 211 as a single system, so that policies and access are tracked within the same system. Alternatively, separate logging systems may be associated with the two systems. The broker responds to the request by forwarding the message received from the producer in step 308. In step 314, the consumer receives the message assigned the specified topic in encrypted form.

[0041] The consumer then checks or queries (316) an encryption policy database system to determine if a message on the topic is encrypted, and if so, requests from the key management system the key needed to decrypt the message. After the consumer receives (318) the decryption key from the key management system, the consumer system decrypts the received message. Upfront, the key management system or encryption policy system has confirmed that the consumer is authorized to receive the decryption key according to the access control policy. Note that the requesting consumer may be barred from the respective audit service, activity tracker, logging system, and / or ordered trail. Finally, the consumer decrypts the message using the key received from the key management system.

[0042] For completeness, Fig. 4 Publish / Subscribe FIG. 4 is a schematic diagram of a machine logic (e.g., software) portion 400 of a first embodiment system for targeted policy-based encryption in message queues. The machine logic portion comprises a message queuing system 402 adapted to receive encrypted messages, where the messages are encrypted by reference to an encryption policy system 404 and a key management system 406 that stores topic-related encryption keys. Additionally, the messages may be encrypted by a producer's encryption system, such as encryption system 410.

[0043] The machine logic portion may also comprise means for storing received topic-related encrypted messages in a database 408, i.e., one group of messages may be stored under or associated with one topic and another group may be stored within or associated with another topic. The database 408 may be linked to the message queuing system 402 or may be a physical part of the message queuing system 402.

[0044] Finally, the machine logic part is responsible for sending messages to their assigned topics. Subscribe The transmission may be directed to a message recipient (not shown here) that includes a decryption system, such as decryption system 412.

[0045] Some embodiments of the invention may include one or more of the following features, characteristics, or advantages, or combinations thereof: (i) the message queuing system may be a Kafka system, particularly version 0.9.0 or higher, although any other message queuing system may be deployed when implementing various embodiments of the invention; (ii) the method of the invention may be independent of the underlying message queuing system; (iii) the method may also include consulting an encryption policy system by the message producer prior to sending a topic-related message, whereby the message producer may determine whether encryption should be performed for a message related to a particular topic prior to sending to the message queuing system; (iv) the method may include consulting an encryption policy system by the message producer prior to sending a topic-related message, whereby the message producer may determine whether encryption should be performed for a message related to a particular topic prior to sending to the message queuing system; (v) the method may include consulting an encryption policy database by the message producer to a key management system (e.g., a security policy database) when the message producer determines that the encryption policy database contains rules to perform encryption of the topic-related message, i.e., based on the selected topic; (v) the key management system and the encryption policy system may be implemented within the same security system (e.g., the key management system may be a service of the encryption policy system, thereby realizing centralized control of the security rules and associated keys for encryption and decryption, specifically outside of the control of the message queuing system operator); and / or (vi) the key management system and the encryption policy system may be accessible at different locations (e.g., the encryption database system and the key management system may be implemented independently of each other, thus further increasing the security level achieved) (note that different authentication methods may have to be used to access the encryption database system and the key management system).

[0046] Some embodiments of the invention may include one or more of the following features, characteristics, or advantages, or a combination thereof: (i) when a message is received by a message consumer, specifically a message sent from a message queuing system, a reference to an encryption policy system to determine whether the received message is encrypted, where a message consumer may be enabled to distinguish between encrypted and unencrypted messages from a message queuing system and a message receiver may not be enabled to process them separately; (ii) when a received message is encrypted, a decryption key should be associated with the encryption key with which the message was encrypted, where the key may be stored by a topic, such that a message receiver may request a decryption key by referencing the topic, and the message receiver may then use the received decryption key to decrypt the received message; (iii) the encryption / decryption key may be used for symmetric or asymmetric encryption; (iv) an operation to record access to the encryption policy system; (v) an operation to record access to the key management system such that a secure audit trail may be established for the encryption policy system, as well as for the key management system, and all accesses, key retrievals, and modifications may be traceable at any time including unauthorized users or access attempts of the system; (vi) whether a message sent to a message consumer has been decrypted (e.g., made readable by a specific identifiable user), and all accesses, key retrievals, and modifications may be tracked; (vii) encrypted messages received by the message queuing system may be digitally signed;and / or (viii) encrypted messages received by the message queuing system include a message authentication code, specifically a keyed-Hash Message Authentication Code (HMAC), to ensure the integrity of the signer of the encrypted message as well as the integrity of the message (e.g., it can be proven that no bits were altered on the path from the message producer to the message consumer); A subscription for the message may include the first encrypted message only if the message authentication code is provided by the second entity.

[0047] FIG. 5 shows a flow chart 600 illustrating a second method in accordance with the present invention.

[0048] The process begins in step S602, where the key management system determines a first encryption level. The encryption level refers to the type and / or degree of encryption. The encryption levels are provided on a topic-based list according to an encryption policy. Messages are encrypted according to the message's associated topic.

[0049] Processing continues at step S604 where the key management system provides encryption keys to users who wish to store messages within the file system of a message queuing system such as Kafka. In some embodiments of the invention, key access is controlled such that users must be authenticated before the key is provided.

[0050] The process continues to step S606, where the key management system stores the encrypted message. Attached providing the encrypted message to the broker, which encrypts the message and stores the encrypted message within the message queuing system's file system;

[0051] The process continues at step S608 where the key management system receives the request for the encrypted message. Subscribe and may select a few topics of interest. Subscribed Related to the topic AttachedWhen a message is stored, a consumer may request the message. In some embodiments of the present invention, a consumer receives notification of a message on a particular topic and submits a request after notification. Alternatively, a consumer may receive notification of a message on a particular topic and submit a request after notification. Subscribe A request is automatically generated for each consumer that is

[0052] Processing continues at step S610 where the key management system identifies a decryption key corresponding to the encrypted message. The decryption keys are stored according to topic such that for a given message on a particular topic, a decryption key may be identified via the encryption policy system. Identifying the decryption key may include referencing the topic-based encryption policy to determine whether a subscription for a message associated with the first topic includes the first encrypted message.

[0053] Processing ends at step S612, where the key management system sends the encrypted message and the corresponding decryption key to the consumer. In some embodiments of the invention, the decryption key is sent to the consumer when the encrypted message is sent to the consumer and it is determined that a decryption key is required. Alternatively, the consumer receives the encrypted message and requests the decryption key to decrypt the message.

[0054] The embodiments of the present invention may be implemented in conjunction with almost any type of computer, regardless of the platform suitable for storing and / or executing program code. Figure 6 shows, as an example, a computing system 500 suitable for executing program code relating to the proposed method.

[0055] Computing system 500 is merely one example of a suitable computer system, and whether computer system 500 may be implemented and / or computer system 500 may perform any of the functions described above is not intended to suggest any limitation as to the scope of use or functionality of the embodiments of the invention described herein. There are components in computer system 500 that are operable with numerous other general purpose or special purpose computing system environments or configurations. Examples of well-known computing systems, environments, or configurations, or combinations thereof, that may be suitable for use with computer system / server 500 include, but are not limited to, personal computer systems, server computer systems, thin clients, thick clients, handheld or laptop devices, multiprocessor systems, microprocessor-based systems, set-top boxes, programmable consumer electronics, network PCs, minicomputer systems, mainframe computer systems, and distributed cloud computing environments that include any of the above systems or devices. The computer system / server 500 may be described in the general context of computer system executable instructions, such as program modules, being executed by the computer system 500. Generally, program modules may include routines, programs, objects, components, logic, data structures, etc. that perform particular tasks or implement particular abstract data types. The computer system / server 500 may be practiced in a distributed cloud computing environment where tasks are performed by remote processing devices that are linked through a communications network. In a distributed cloud computing environment, program modules may be located in both local and remote computer system storage media, including memory storage devices.

[0056] As shown in the figure, a computer system / server 500 is shown in the form of a general-purpose computing device. Components of the computer system / server 500 may include, but are not limited to, one or more processors or processing units 502, a system memory 504, and a bus 506 that couples various system components including the system memory 504 to the processor 502. The bus 506 is a communications fabric that may represent any one or more of several types of bus structures including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, and a processor or local bus using any of a variety of bus architectures. By way of example and not limitation, such architectures include an Industry Standard Architecture (ISA) bus, a Micro Channel Architecture (MCA) bus, an Enhanced ISA (EISA) bus, a Video Electronics Standards Association (VESA) local bus, and a Peripheral Component Interconnects (PCI) bus. The computer system / server 500 typically includes a variety of computer system readable media. Such media may be any available media that is accessible by computer system / server 500 and includes both volatile and non-volatile media, removable and non-removable media.

[0057] The system memory 504 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) 508 and / or cache memory 510. The computer system / server 500 may further include other removable / non-removable volatile / non-volatile computer system storage media. By way of example only, a storage system 512 may be provided for reading from and writing to a non-removable non-volatile magnetic medium (not shown, typically referred to as a "hard drive"). Although not shown, a magnetic disk drive may be provided for reading from and writing to a removable non-volatile magnetic disk (e.g., a "floppy disk"), and an optical disk drive may be provided for reading from and writing to a removable non-volatile optical disk, such as a CD-ROM, DVD-ROM, or other optical media. In such case, each may be connected to the bus 506 by one or more data media interfaces. As further illustrated and described below, the memory 504 may include at least one program product having a set (e.g., at least one) of program modules configured to perform functions of an embodiment of the present invention.

[0058] By way of example and not limitation, a set of program modules 516 (at least one) having programs / utilities, as well as an operating system, one or more application programs, other program modules, and program data may be stored in memory 504. Each of the operating system, one or more application programs, other program modules, and program data, or any combination thereof, may include an implementation of a networking environment. The program modules 516 generally implement the functionality and / or methodologies of embodiments of the present invention as described herein.

[0059] The computer system / server 500 may also communicate with one or more external devices 518, such as a keyboard, a pointing device, a display 520, one or more devices that allow a user to interact with the computer system / server 500, or any device that allows the computer system / server 500 to communicate with one or more other computing devices (e.g., a network card, a modem, etc.), or a combination thereof. Such communication may occur through an input / output (I / O) interface 514. Additionally, the computer system / server 500 may communicate with one or more networks, such as a local area network (LAN), a general wide area network (WAN), or a public network (e.g., the Internet), or a combination thereof, through a network adapter 522. As shown, the network adapter 522 may communicate with other components of the computer system / server 500 through a bus 506. It is understood that other hardware and / or software components, not shown, may be used with the computer system / server 500. Examples include, but are not limited to, microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, data archive storage systems, and the like.

[0060] moreover, Publish - Subscribe At least a portion of the system 400 for targeted policy based encryption on messaging queues may be connected to a bus system 506. The complete system 400 may require multiple different computing systems 500 for different portions of the system, e.g., a message producer system, a message recipient system, a database system, a core message queuing system, a key management system, and an encryption policy system.

[0061] Although the description of various embodiments of the present invention has been presented for illustrative purposes, the description is not exhaustive and is not intended to be limited to the disclosed embodiments. Many modifications and variations will be apparent to those skilled in the art without departing from the scope and spirit of the described embodiments. The terms used in this specification are selected to best explain the principles of the embodiments, practical applications or technical improvements over the technology found in the market, or to enable those skilled in the art to understand the embodiments disclosed herein.

[0062] The present invention may be embodied as a system, method, and / or computer program product, which may include one or more computer readable storage media having computer readable program instructions for causing a processor to implement aspects of the present invention.

[0063] The medium may be an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system for propagation media. Examples of computer-readable media may include semiconductor or solid state memory, magnetic tape, removable computer diskettes, random access memory (RAM), read-only memory (ROM), rigid magnetic disk, and optical disk. Current examples of optical disks include compact disk-read-only memory (CD-ROM), compact disk-read / write (CD-R / W), DVD, and Blu-Ray-Disk.

[0064] A computer readable storage medium may be a tangible device that can hold and store instructions used by an instruction execution device. A computer readable storage medium may be, for example, but not limited to, an electronic storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the above. A non-exhaustive list of more specific examples of computer readable storage media includes: portable computer diskettes, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), static random access memory (SRAM), portable compact disk read-only memory (CD-ROM), digital versatile disk (DVD), memory sticks, floppy disks, punch cards, or mechanically encoded devices such as ridge structures in grooves with instructions recorded therein, and any suitable combination of the above. As used herein, computer-readable storage media should not be interpreted as signals that are transitory in nature, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through a waveguide or other transmission medium (e.g., light pulses through a fiber optic cable), or electrical signals transmitted through wires.

[0065] The computer-readable program instructions described herein may be downloaded from a computer-readable storage medium to the respective computing / processing device or to an external computer or storage device via a network, such as the Internet, a local area network, a wide area network, or a wireless network, or a combination thereof. The network may include copper transmission cables, optical transmission fiber, wireless transmission, routers, firewalls, switches, gateway computers, or edge servers, or a combination thereof. A network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in a computer-readable storage medium in the respective computing / processing device.

[0066] The computer readable program instructions for carrying out the operations of the present invention may be either source or object code written in any combination of one or more programming languages, including assembler instructions, instruction set architecture (ISA) instructions, machine language instructions, machine dependent instructions, microcode, firmware instructions, state setting data, or object code, including object oriented programming languages ​​such as Smalltalk®, C++, and traditional procedural programming languages ​​such as the “C” programming language or similar programming languages. The computer readable program instructions may be executed entirely on the user's computer, partially on the user's computer as a stand-alone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the latter scenario, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or wide area network (WAN), or a connection may be made to an external computer (e.g., through the Internet using an Internet Service Provider). In some embodiments, electronic circuitry including, for example, a programmable logic circuit, a field programmable gate array (FPGA), or a programmable logic array (PLA) may execute computer readable program instructions to personalize the electronic circuitry by utilizing state information of the computer readable program instructions to perform aspects of the present invention.

[0067] Aspects of the present invention are described herein with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer readable program instructions.

[0068] Such computer-readable program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the instructions, executed via the processor of the computer or other programmable data processing apparatus, produce means for implementing the functions / operations specified in one or more blocks of the flowcharts and / or block diagrams to create a machine. Such computer-readable program instructions may also be stored in a computer-readable storage medium that may direct a computer, programmable data processing apparatus, or other device, or combination thereof, to function in a particular manner, such that the computer-readable storage medium having stored thereon the instructions includes an article of manufacture including instructions that implement aspects of the functions / operations specified in one or more blocks of the flowcharts and / or block diagrams.

[0069] The computer-readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or another device such that the instructions, which execute on a computer, other programmable apparatus, or other device, implement the functions / operations specified in one or more blocks of the flowcharts and / or block diagrams, causing the computer, other programmable apparatus, or other device to perform a series of operational steps to create a computer-implemented process.

[0070] The flowcharts and / or block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of the present invention. In this regard, each block in the flowcharts or block diagrams may represent a module, segment, or portion of instructions that includes one or more executable instructions for implementing a specified logical function. In some alternative implementations, the functions described in the blocks may occur in an order other than that described in the figures. For example, two blocks shown in succession may in fact be executed substantially simultaneously, or the blocks may sometimes be executed in the reverse order, depending on the functionality involved. It will also be noted that each block in the block diagrams and / or flowchart illustrations, and combinations of blocks in the block diagrams and / or flowchart illustrations, may be implemented by a dedicated hardware-based system that performs the specified functions or operations, or a combination of dedicated hardware and computer instructions.

[0071] The terms used in the specification are merely for the purpose of describing particular embodiments and are not intended to limit the present invention. As used herein, the singular forms "a", "an" and "the" are intended to include the plural unless the context clearly indicates otherwise. It will be further understood that as used herein, the terms "comprises" and / or "comprising" specify the presence of stated features, integers, steps, operations, elements, or components, or combinations thereof, but do not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components, or groups thereof, or combinations thereof.

[0072] The corresponding structures, materials, acts, and equivalents of all means or steps and functional elements in the following claims are intended to include any structures, materials, or acts for performing a function in combination with other claimed elements as specifically claimed. The description of the present invention has been presented for purposes of illustration and description, and is not intended to be exhaustive or limited to the invention in the disclosed form. Many modifications and variations will be apparent to those skilled in the art without departing from the scope and spirit of the invention. The embodiments are chosen and described in order to best explain the principles and practical applications of the invention, and to enable those skilled in the art to understand the invention in various embodiments with various modifications as suited to the particular use contemplated.

[0073] Some useful definitions follow:

[0074] The Present Invention: The subject matter described by the term "the present invention" should not be understood as an absolute indication that it is encompassed by the claims as filed, or by the claims that may ultimately be issued after patent prosecution, and the term "the present invention" is used to help the reader gain a general impression of the disclosures herein that are believed to be new, but as indicated by the use of the term "the present invention", this understanding is tentative and provisional, and is subject to change during patent prosecution as relevant information comes to light and the claims are potentially revised.

[0075] Embodiments: See the definition of "present invention" above. A similar caution applies to the term "embodiments."

[0076] And / or: inclusive disjunction, e.g., A, B, "and / or" C, means that at least one of A or B or C is true or true.

[0077] User / Subscriber Including, but not necessarily limited to: (i) a single individual human being; (ii) a user or Subscriber or (iii) an artificial intelligence entity that has sufficient intelligence to act as the relevant user or Subscriber groups, or combinations thereof.

[0078] Module / Sub-Module: Any set of hardware, firmware, or software, or combination thereof, operable to perform any type of function, whether the modules are (i) in a single local proximity, (ii) distributed over a wide area, (iii) in a single proximity within a larger body of software code, (iv) located within a single body of software code, (v) located within a single storage device, memory, or medium, (vi) mechanically connected, (vii) electrically connected, or (viii) connected in data communication, or any combination thereof.

[0079] Computer: Any device that has significant data processing and / or machine-readable instruction reading capabilities, including, but not limited to, desktop computers, mainframe computers, laptop computers, field programmable gate array (FPGA) based devices, smart phones, personal digital assistants (PDAs), body-mounted or inserted computers, embedded device style computers, and application specific integrated circuit (ASIC) based devices.

[0080] Some embodiments of the present invention are directed to one or more of the following inventive concepts.

[0081] Publish - Subscribe1. A computer-implemented method for targeted policy-based encryption in messaging queues, comprising: (i) receiving an encrypted message by a message queuing system, the message being encrypted by reference to an encryption policy system and a key management system that stores topic-associated encryption keys; (ii) storing the received encrypted message; and (iii) associating the message with a topic. Subscription and sending an encrypted message based on the

[0082] The Kafka system is a message queuing system.

[0083] including consulting the cryptographic policy system by a message producer before sending a topic-related message, Publish - Subscribe Targeted policy-based encryption on messaging queues.

[0084] determining, by the message producer, that the encryption policy database contains rules that effectuate encryption of messages related to the topic, and if the message producer is authorized to receive the encryption key, receiving the encryption key from the key management system; Publish - Subscribe Targeted policy-based encryption on messaging queues.

[0085] The key management system and the encryption policy system are implemented in the same security system.

[0086] A key management system and encryption policy system that are accessible in different locations.

[0087] when the sent message is received by the message consumer, consulting an encryption policy system to determine whether the received message is encrypted; Publish - Subscribe Targeted policy-based encryption on messaging queues.

[0088] (i) upon determining that the received message is encrypted, receiving, by the message consumer, a decryption key; and (ii) decrypting the received message. Publish - Subscribe Targeted policy-based encryption on messaging queues.

[0089] Cryptographic policy - including logging access to the system; Publish - Subscribe Targeted policy-based encryption on messaging queues.

[0090] including logging access to key management systems; Publish - Subscribe Targeted policy-based encryption on messaging queues.

[0091] Encrypted messages received by the message queuing system are digitally signed.

[0092] An encrypted message received by the message queuing system includes a message authentication code.

[0093] Publish - Subscribe A computer system for targeted policy-based encryption in messaging queues, comprising: (i) a message queuing system adapted to receive encrypted messages, the messages being encrypted by reference to an encryption policy system and a key management system that stores topic-associated encryption keys; (ii) means for storing the received encrypted messages; and (iii) means for storing encryption keys associated with the topics. Subscription and means for sending an encrypted message based on the encrypted message.

[0094] Publish - SubscribeA computer system for targeted policy-based encryption in messaging queues, the computer system being adapted to receive an encryption key from a key management system if a message producer determines that an encryption policy database contains rules that effectuate encryption of topic-related messages, and if the message producer is authorized to receive the encryption key.

Claims

1. 1. A computer-implemented method, comprising: receiving a request from a first entity to determine whether a first topic requires encryption for storage in a message queuing system, the first topic being associated with a first message; In response to receiving the request, determining that the first topic requires a first encryption level by consulting a topic-based encryption policy; providing a first entity with an encryption key for encrypting the first message according to the first encryption level to generate a first encrypted message; storing the first encrypted message in a message queuing system according to the first topic; receiving a request from a second entity for the first message associated with the first topic, the first message including the first encrypted message; identifying a decryption key corresponding to the first encrypted message associated with the first topic according to the topic-based encryption policy; sending the first encrypted message to the second entity for decryption by the second entity using the decryption key; Including, wherein the first encrypted message stored within the message queuing system includes a message authentication code, the message authentication code ensuring the integrity of a signer of the first encrypted message and the integrity of the first encrypted message. The computer-implemented method.

2. recording in a logging system the providing of the encryption key to the first entity for generating the first encrypted message and the sending of the decryption key for the first encrypted message to the second entity. The computer-implemented method of claim 1 , further comprising:

3. In response to an update to the topic-based encryption policy, logging the update in the logging system. The computer-implemented method of claim 2 , further comprising:

4. The computer-implemented method of claim 1, wherein the message authentication code includes a keyed-hash message authentication code (HMAC).

5. establishing a subscription account for the second entity, including assigning an authenticating credential to the second entity; the request is received when the second entity subscribes to the first topic via the subscription account; The computer-implemented method of claim 1 , further comprising:

6. 2. The computer-implemented method of claim 1, wherein the decryption key is assigned to the first topic by the topic-based encryption policy.

7. The processor: receiving a request from a first entity to determine whether a first topic requires encryption for storage in a message queuing system, the first topic being associated with a first message; in response to receiving the request, determining that the first topic requires a first encryption level by referencing a topic-based encryption policy; having a first entity provide an encryption key for encrypting the first message according to the first encryption level to generate a first encrypted message; storing the first encrypted message in a message queuing system according to the first topic; receiving a request from a second entity for the first message associated with the first topic, the first message including the first encrypted message; identifying a decryption key corresponding to the first encrypted message associated with the first topic according to the topic-based encryption policy; sending the first encrypted message to the second entity for decryption by the second entity using the decryption key; 1. A computer program product for implementing topic-based encryption on a publish-subscribe messaging queue by executing: wherein the first encrypted message stored within the message queuing system includes a message authentication code, the message authentication code ensuring the integrity of a signer of the first encrypted message and the integrity of the first encrypted message. The computer program.

8. The processor, recording in a logging system the providing of the encryption key to the first entity for generating the first encrypted message and the sending of the decryption key for the first encrypted message to the second entity.

8. The computer program product of claim 7, further comprising:

9. The processor, In response to an update to the topic-based encryption policy, logging the update in the logging system.

9. The computer program product of claim 8, further comprising:

10. The computer-implemented method of claim 1, wherein the message authentication code includes a keyed-hash message authentication code (HMAC).

11. The processor, establishing a subscription account for the second entity, including assigning an authenticating credential to the second entity; the request is received when the second entity subscribes to the first topic via the subscription account; 8. The computer program product of claim 7, further comprising:

12. 8. The computer program product of claim 7, wherein the decryption key is assigned to the first topic by the topic-based encryption policy.

13. 1. A computer system comprising: A processor set; A computer readable storage medium having program instructions stored thereon; Equipped with The processor set includes: receiving a request from a first entity to determine whether a first topic requires encryption for storage in a message queuing system, the first topic being associated with a first message; In response to receiving the request, determining that the first topic requires a first encryption level by consulting a topic-based encryption policy; providing a first entity with an encryption key for encrypting the first message according to the first encryption level to generate a first encrypted message; storing the first encrypted message in a message queuing system according to the first topic; receiving a topic request from a second entity for messages associated with the first topic including the first encrypted message; identifying a decryption key corresponding to the first encrypted message associated with the first topic according to the topic-based encryption policy; sending the first encrypted message to the second entity for decryption by the second entity using the decryption key; 4. A computer system executing the program instructions to cause the set of processors to perform topic-based encryption on a publish-subscribe messaging queue by: wherein the first encrypted message stored within the message queuing system includes a message authentication code, the message authentication code ensuring the integrity of a signer of the first encrypted message and the integrity of the first encrypted message. The computer system.

14. 1. A computer-implemented method, comprising: receiving a request from a first entity to determine whether a first topic requires encryption for storage in a message queuing system, the first topic being associated with a first message; determining, by the first entity, that the first topic requires a first encryption level by referencing a topic-based encryption policy; encrypting, by the first entity, the first message according to the first encryption level to generate a first encrypted message; storing the first encrypted message in a message queuing system according to the first topic; receiving a subscription from a second entity for messages associated with the first topic including the first message; identifying, by the second entity, a decryption key corresponding to the first encrypted message according to the topic-based encryption policy for the first topic; decrypting, by the second entity, the first encrypted message with the decryption key to recover the first message. Including, wherein the first encrypted message stored within the message queuing system includes a message authentication code, the message authentication code ensuring the integrity of a signer of the first encrypted message and the integrity of the first encrypted message. The computer-implemented method.

15. The computer-implemented method of claim 14 , further comprising receiving the first message associated with the first topic from the first entity.

16. 15. The computer-implemented method of claim 14, wherein the message queuing system is a Kafka system.

17. identifying the decryption key, Referencing the topic-based encryption policy to determine whether a subscription for a message associated with the first topic includes the first encrypted message.

15. The computer-implemented method of claim 1 or 14, comprising:

18. a subscription for the message includes the first encrypted message only if the message authentication code is provided by the second entity; 15. The computer-implemented method of claim 1 or 14.