Enforcement of signatures for software deployment configurations
By digitally signing software deployment configurations and deployment resources to verify their authenticity and integrity, the deficiencies in verification of configuration data and deployment metadata in software deployment are solved and the security of the software platform is enhanced.
Patent Information
- Application Number
- CN202180060923.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2020-07-20
- Filing Date
- 2021-06-18
- Publication Date
- 2024-10-25
- Estimated Expiration
- 2041-06-18
AI Technical Summary
In software deployment, existing technology lacks methods to verify the source and integrity of configuration data and associated deployment metadata, affecting the security of the software platform.
Use cryptographic signature technology to sign software deployment configurations and deployment resources, and verify the authenticity of the digital signature to determine whether the signature complies with the access policy, thereby deciding whether to deploy the software.
Through digital signature verification, we ensure the source and integrity of deployed resources, enhance the security of the software platform, and ensure that signatures comply with access policies, thereby effectively preventing unauthorized software deployment.
Smart Images

Figure CN116158055B_ABST
Abstract
Description
Background Art
[0001] The present invention relates generally to the field of software deployment, and more particularly to the implementation of signing of software deployment configuration data.
[0002] Software deployment includes all activities that make a software system available for use. Typically, two essential items for software deployment are content and configuration. Configuration refers to data that configures how an application is deployed and how it operates once deployed. Configuration files are used to configure the parameters and initial settings of an application or container. Example configuration files include Kubernetes YAMLAin't Markup Language (YAML) and Ansible Playbooks.
[0003] Cryptographic signature techniques, such as digital signatures, are mathematical schemes used to verify the authenticity of a digital message or document. A valid digital signature provides strong reason to believe that the document was created or edited by the signer and that the message was not altered in transit. Digital signatures employ asymmetric cryptography and can provide a layer of authentication and security to messages or documents sent over an insecure channel. The digital signature process typically involves three algorithms. A key generation algorithm generates a signature when it receives a private key along with its corresponding public key. A signing algorithm generates a signature when it receives a private key and the message or data being signed. A verification algorithm checks the authenticity of a message by verifying the message along with the signature and public key. Summary of the invention
[0004] Aspects of embodiments of the present invention disclose a method, a computer program product, and a computer system. A processor intercepts deployment resources associated with software before deploying the software to a node, wherein the deployment resources configure how the software is deployed and operated. The processor verifies the authenticity of a digital signature present in the deployment resources. In response to verifying the authenticity of the digital signature, the processor deploys the software to the node according to the deployment resources. BRIEF DESCRIPTION OF THE DRAWINGS
[0005] Embodiments of the present invention will now be described, by way of example only, with reference to the accompanying drawings, in which:
[0006] Figure 1 A cloud computing node according to an embodiment of the present invention is shown.
[0007] Figure 2 A cloud computing environment according to an embodiment of the present invention is shown.
[0008] Figure 3 An abstract model layer according to an embodiment of the present invention is shown.
[0009] Figure 4 A block diagram of a computing environment according to an embodiment of the invention is shown.
[0010] Figure 5 is a flow chart showing the operational steps of creating a digital signature in a deployment resource according to an embodiment of the present invention.
[0011] Figure 6 is a flow chart illustrating operational steps for verifying a digital signature in a deployed resource according to an embodiment of the present invention.
[0012] Figure 7 is an example admission policy according to an embodiment of the present invention.
[0013] Figure 8 are example deployment resources according to an embodiment of the present invention.
[0014] Fig. 9 is another example deployment resource according to an embodiment of the present invention. DETAILED DESCRIPTION
[0015] Software deployment includes the software to be deployed (i.e., content) and configuration data. The configuration data and associated deployment metadata (collectively referred to herein as deployment resources) may include sensitive data that configures the manner in which the application is deployed and how the application operates once it is deployed. Embodiments of the present invention recognize that in software deployment, there is currently no method to verify the source and integrity of configuration data and associated deployment metadata. Embodiments of the present invention also recognize that verification of content and deployment resources is critical to the security of software platforms. Embodiments of the present invention provide a method for signing software deployment configurations and / or metadata deployment resources using cryptographic signature technology. The system can then rely on cryptographic signature technology to verify the source and integrity of deployment resources and determine whether the signature complies with access policies. Subsequently, such verification can be used to determine whether to deploy the software based on the provided deployment resources.
[0016] It should be understood that although the present disclosure includes detailed descriptions about cloud computing, the implementation of the teachings set forth herein is not limited to a cloud computing environment. Instead, embodiments of the present invention can be implemented in conjunction with any other type of computing environment now known or later developed.
[0017] Cloud computing is a service delivery model for enabling convenient, on-demand access to a shared pool of configurable computing resources (e.g., networks, network bandwidth, servers, processing, memory, storage, applications, virtual machines, and services) that can be quickly provisioned and released with minimal management effort or interaction with the service provider. The cloud model may include at least five characteristics, at least three service models, and at least four deployment models.
[0018] Features are as follows:
[0019] On-demand self-service: Cloud consumers can unilaterally and automatically provision computing capabilities, such as server time and network storage, as needed, without requiring human interaction with the provider of the service.
[0020] Broad network access: Capabilities are available over the network and accessed through standard mechanisms that facilitate the use of heterogeneous thin-client platforms or thick-client platforms (e.g., mobile phones, laptops, and PDAs).
[0021] Resource pooling: A provider's computing resources are pooled to serve multiple consumers using a multi-tenant model, where different physical and virtual resources are dynamically assigned and reassigned as needed. There is a sense of location independence, as consumers typically do not have control or knowledge of the exact location of the provided resources, but may be able to specify the location at a higher level of abstraction (e.g., country, state, or data center).
[0022] Rapid elasticity: The ability to quickly and elastically provision capacity, in some cases automatically scaling down quickly and releasing quickly to scale up quickly. To the consumer, the capacity available for provisioning generally appears unlimited and can be purchased in any quantity at any time.
[0023] Measured services: Cloud systems automatically control and optimize resource usage by leveraging metering capabilities at some level of abstraction appropriate to the type of service (e.g., storage, processing, bandwidth, and active user accounts). Resource usage can be monitored, controlled, and reported, providing transparency to both providers and consumers of the utilized services.
[0024] The service model is as follows:
[0025] Software as a Service (SaaS): The capability provided to the consumer is to use the provider's applications running on a cloud infrastructure. The applications can be accessed from different client devices through a thin client interface such as a web browser (e.g., web-based email). The consumer does not manage or control the underlying cloud infrastructure including the network, servers, operating systems, storage, or even individual application capabilities, with the possible exception of limited user-specific application configuration settings.
[0026] Platform as a Service (PaaS): The capability provided to consumers is to deploy applications created or acquired by consumers using programming languages and tools supported by the provider onto the cloud infrastructure. Consumers do not manage or control the underlying cloud infrastructure including networks, servers, operating systems or storage, but have control over the deployed applications and possible configuration of the application hosting environment.
[0027] Infrastructure as a Service (IaaS): The capabilities provided to consumers are the provision of processing, storage, networking, and other basic computing resources on which consumers can deploy and run arbitrary software, which may include operating systems and applications. Consumers do not manage or control the underlying cloud infrastructure, but have control over the operating system, storage, deployed applications, and possibly limited control over selected networking components (e.g., host firewalls).
[0028] The deployment model is as follows:
[0029] Private Cloud: Cloud infrastructure is operated only for the organization. It can be managed by the organization or a third party and can exist on-premises or off-premises.
[0030] Community Cloud: Cloud infrastructure is shared by several organizations and supports a specific community with shared concerns (e.g., mission, security requirements, policies, and compliance considerations). It can be managed by the organization or a third party and can exist on-premises or off-premises.
[0031] Public cloud: Cloud infrastructure is made available to the public or large industry groups and is owned by an organization that sells cloud services.
[0032] Hybrid cloud: A cloud infrastructure is a combination of two or more clouds (private, community, or public) that remain unique entities but are bound together by standardized or proprietary technologies that enable data and application portability (e.g., cloud bursting for load balancing between clouds).
[0033] Cloud computing environments are service-oriented and focus on statelessness, low coupling, modularity, and semantic interoperability. At the core of cloud computing is the infrastructure that includes a network of interconnected nodes.
[0034] See now Figure 1 , a schematic diagram of an example of a cloud computing node is shown. Cloud computing node 10 is merely one example of a suitable cloud computing node and is not intended to impose any limitation on the scope of use or functionality of the embodiments of the invention described herein. Regardless, cloud computing node 10 can be implemented and / or perform any of the functions set forth above.
[0035] In the cloud computing node 10, there is a computer system / server 12, which operates with many other general or special computing system environments or configurations. Examples of well-known computing systems, environments and / or configurations that may be suitable for the computer system / server 12 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, small computer systems, large computer systems, and distributed cloud computing environments including any of the above systems or devices, etc.
[0036] Computer system / server 12 may be described in the general context of computer system executable instructions (e.g., program modules) executed by a computer system. Generally, program modules may include routines, programs, objects, components, logic, data structures, etc. that perform specific tasks or implement specific abstract data types. Computer system / server 12 may be practiced in a distributed cloud computing environment, where tasks are performed by remote processing devices linked through a communications network. In a distributed cloud computing environment, program modules may be located in local and remote computer system storage media including memory storage devices.
[0037] like Figure 1 As shown in FIG. 1 , the computer system / server 12 in the cloud computing node 10 is shown in the form of a general-purpose computing device. The components of the computer system / server 12 may include, but are not limited to, one or more processors or processing units 16, a system memory 28, and a bus 18 that couples different system components including the system memory 28 to the processor 16.
[0038] Bus 18 represents 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 Interconnect (PCI) bus.
[0039] Computer system / server 12 typically includes a variety of computer system readable media. Such media can be any available media that can be accessed by computer system / server 12, and includes both volatile and nonvolatile media, removable and non-removable media.
[0040] The system memory 28 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) 30 and / or cache memory 32. The computer system / server 12 may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, a storage system 34 may be provided for reading from and writing to a non-removable, non-volatile magnetic medium (not shown, and commonly referred to as a "hard drive"). Although not shown, a disk drive for reading from or writing to a removable non-volatile disk (e.g., a "floppy disk") may be provided, as well as an optical drive for reading from or writing to a removable non-volatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media). In such a case, each may be connected to the bus 18 via one or more data media interfaces. As will be further depicted and described below, the memory 28 may include at least one program product having a set (e.g., at least one) of program modules configured to perform the functions of an embodiment of the present invention.
[0041] A program / utility 40 having a set (at least one) of program modules 42, as well as an operating system, one or more application programs, other program modules, and program data may be stored in memory 28 by way of example and not limitation. Each or some combination of the operating system, one or more application programs, other program modules, and program data may include an implementation of a network environment. The program modules 42 generally perform the functions and / or methods of embodiments of the present invention as described herein.
[0042] The computer system / server 12 may also communicate with one or more external devices 14 (e.g., keyboard, pointing device, display 24, etc.); and / or any device that enables the computer system / server 12 to communicate with one or more other computing devices (e.g., network card, modem, etc.). Such communication may be performed via input / output (I / O) interface 22. In addition, the computer system / server 12 may communicate with one or more networks, such as a local area network (LAN), a general wide area network (WAN), and / or a public network (e.g., the Internet) via a network adapter 20. As shown, the network adapter 20 communicates with other components of the computer system / server 12 via bus 18. It should be understood that, although not shown, other hardware and / or software components may be used in conjunction with the computer system / server 12. Examples include, but are not limited to, microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data archiving storage systems, etc.
[0043] See now Figure 2, depicts an illustrative cloud computing environment 50. As shown, the cloud computing environment 50 includes one or more cloud computing nodes 10 with which a local computing device used by a cloud consumer can communicate, such as, for example, a personal digital assistant (PDA) or cellular phone 54A, a desktop computer 54B, a laptop computer 54C, and / or an automobile computer system 54N. The nodes 10 can communicate with each other. They can be physically or virtually grouped (not shown) in one or more networks, such as a private cloud, community cloud, public cloud, or hybrid cloud, or a combination thereof, as described above. This allows the cloud computing environment 50 to provide infrastructure, platform, and / or software as a service for which the cloud consumer does not need to maintain resources on a local computing device. It should be understood that Figure 2 The types of computing devices 54A-N shown are intended to be illustrative only, and computing node 10 and cloud computing environment 50 may communicate with any type of computerized device over any type of network and / or network addressable connection (eg, using a web browser).
[0044] See now Figure 3 , showing the cloud computing environment 50 ( Figure 2 ) provides a set of functional abstraction layers. It should be understood in advance that Figure 3 The components, layers, and functions shown in are intended to be illustrative only, and embodiments of the present invention are not limited thereto. As described, the following layers and corresponding functions are provided:
[0045] The hardware and software layer 60 includes hardware and software components. Examples of hardware components include: mainframes 61; servers based on RISC (Reduced Instruction Set Computer) architecture 62; servers 63; blade servers 64; storage devices 65; and network and networking components 66. In some embodiments, software components include network application server software 67 and database software 68.
[0046] Virtualization layer 70 provides an abstraction layer from which the following examples of virtual entities can be provided: virtual servers 71 ; virtual storage 72 ; virtual networks 73 , including virtual private networks; virtual applications and operating systems 74 ; and virtual clients 75 .
[0047] In one example, the management layer 80 may provide the functionality described below. Resource provisioning 81 provides dynamic procurement of computing resources and other resources for performing tasks within a cloud computing environment. Metering and pricing 82 provides cost tracking when resources are utilized within a cloud computing environment, and bills or invoices for the consumption of these resources. In one example, these resources may include application software licenses. Security provides authentication for cloud consumers and tasks, as well as protection for data and other resources. User portal 83 provides access to the cloud computing environment for consumers and system administrators. Service level management 84 provides cloud computing resource allocation and management so that the required service levels are met. Service level agreement (SLA) planning and fulfillment 85 provides pre-scheduling and procurement of cloud computing resources in anticipation of future demand according to the SLA.
[0048] The workload layer 90 provides examples of functions that can take advantage of a cloud computing environment. Examples of workloads and functions that can be provided from this layer include: mapping and navigation 91; software development and lifecycle management 92; virtual classroom education delivery 93; data analysis processing 94; transaction processing 95; and mobile desktop 96.
[0049] Figure 4 4 is a functional block diagram illustrating a computing environment, generally designated 400, according to one embodiment of the present invention. The computing environment 400 is a partial depiction of an example of an architecture of a cloud computing environment 50, as shown in FIG. Figure 2 as described. Figure 4 This merely provides an illustration of one embodiment and does not imply any limitations with regard to the environments in which different embodiments may be implemented.
[0050] In the depicted embodiment, computing environment 400 includes a server 420 and one or more nodes 480 interconnected by a network 410. Network 410 may be a local area network (LAN), a wired local area network (WAN) such as the Internet, a public switched telephone network (PSTN), any combination thereof, or any combination of connections and protocols that will support communications between server 420 and node 480. Network 410 may include wired, wireless, or fiber optic connections. Computing environment 400 may include additional servers, computing devices, or other devices not shown.
[0051] Server 420 may be a management server, a network server, or any other electronic device or computing system capable of receiving and sending data. In some embodiments, server 420 may be a laptop computer, a tablet computer, a personal computer (PC), a desktop computer, or any programmable electronic device capable of communicating with node 480 via network 410. In one embodiment, server 420 represents a cloud computing environment (such as cloud computing environment 50 (see Figure 2)) of a node (such as node 10). In some embodiments, server 420 may represent a server computing system utilizing clustered computers and components to act as a single seamless resource pool. In the depicted embodiment, server 420 includes at least a deployment program 430, a signing function 440, a verification function 450, software 460, and an admission policy 470.
[0052] Node 480 may be a management server, a network server, or any other electronic device or computing system capable of receiving and sending data. In some embodiments, node(s) 480 may be a laptop computer, a tablet computer, a netbook computer, a personal computer (PC), a desktop computer, or any programmable electronic device capable of communicating with server 420 via network 410. In one embodiment, node 480 is an example of a computing device (such as computing devices 54A-54N) for accessing and / or communicating with cloud computing environment 50. In another embodiment, node 480 represents a cloud computing environment (such as cloud computing environment 50 (see Figure 2 )) of a node (such as node 10). In some embodiments, node 480 may represent a server computing system utilizing multiple computers as a server system, for example in a cloud computing environment. In some embodiments, node 480 represents a computing system utilizing clustered computers and components to act as a single seamless resource pool. In the depicted embodiment, node 480 includes software 490. Although depicted as a plurality of nodes, in different embodiments, node(s) 480 may represent one or any other number of nodes.
[0053] In one embodiment, server 420 and node 480 are part of a Kubernetes environment, where server 420 represents a master node and node 480 represents one or more worker nodes. In such an embodiment, verification function 450 can be part of an application programming interface (API) server within the master node.
[0054] Deployment program 430 is executed on server 420. Deployment program 430 can be a dedicated deployment program, a function integrated into another program (such as an orchestration or software deployment program), or any other program or function that can communicate with node 480 and provide a user interface for interacting with deployment resources and creating / implementing cryptographic signatures of deployment resources. In other embodiments, deployment program 430 can reside on other devices, provided that deployment program 430 can communicate with software 460, admission policy 470, and node 480. Deployment program 430 can include signing function 440 and verification function 450.
[0055] The signing function 440 operates to receive a selection of one or more sections of a deployment resource to be signed, encrypt the selected sections, and attach a signature to the deployment resource. The signing function 440 can be a function of the deployment program 430, or can be a separate program. In one embodiment, the signing function 440 resides on the server 420. In other embodiments, the signing function can reside on another server or another computing device, provided that the signing function 440 is accessible to the deployment program 430 and has access to the software 460 and / or the admission policy 270.
[0056] Verification function 450 operates to intercept deployment resources before deploying software and verify whether the signatures present in the deployment resources comply with the admission policy. Verification function 450 can be a function of deployment program 430, or can be a standalone program. In a Kubernetes environment, verification function 450 can be implemented as an admission controller. An admission controller is a piece of code that intercepts requests to the Kubernetes API server. In one embodiment, verification function 450 resides on server 420. In other embodiments, verification function 450 may reside on another server or another computing device, provided that the verification server is accessible by deployment program 430 and has access to software 460 and admission policy 470.
[0057] Software 460 may be a repository that can be written and read by deployer 430 and signing function 440 and may be accessible to verification function 450. Software 460 may include, for example, software and deployment resources, such as configuration files (e.g., YAML, Ansible Playbooks) and associated metadata. Software content may include, for example, virtual machines and container images. In general, software 460 may include any combination of content and configuration data that can be deployed to node 480. Software 460 may be, for example, a database.
[0058] Admission policy 470 can be a repository that can be written and read by deployment program 430 and can be accessed by signature function 440 and / or verification function 450. Admission policy 470 can include one or more admission policies for deploying software resources. Typically, admission policies specify signature requirements for specific sections or entire configuration files that need to be met in order to deploy software. More specifically, admission policy 470 can specify specific sections of the configuration file and the required signatures for each specific section. Figure 7Example admission policies are depicted in . Each admission policy may specify one or more individuals via some identification means (e.g., an email address or user ID). The admission policy also specifies a specific path that indicates the sections of the configuration file that need to be signed by the identified individuals. The admission policy may specify any number of specific individuals required to sign a section, or may specify no individuals if, for example, no signature is required. In some embodiments, if multiple users are listed, each listed individual is required to sign the section. In other embodiments, if multiple users are listed, at least one of the listed individuals is required to sign the section. The applicable admission policy may change based on factors such as the client, the target node, the type of software, etc. In some embodiments, the admission policy is manually entered, but the client or entity is responsible for deployment.
[0059] Software 490 may be software deployed by deployer 430 after satisfying applicable admission policy requirements that have been verified by verification function 450. Software 490 may be, for example, a container, a virtual machine, an application, or any other software capable of being deployed.
[0060] Figure 5 Described is a method according to an embodiment of the present invention. Figure 1-4 Flowchart 500 of steps for a signing function executed within a computing environment of a deployment resource (such as a configuration file) to add a digital signature.
[0061] In one embodiment, first, an administrative user creates or edits a deployment resource, such as a configuration file corresponding to the software to be deployed (such as the software stored at software 460). An example of such a configuration file is shown in Figure 8 and 9 . The configuration file can be, for example, a YAML file. Typically, the configuration file is used to configure the parameters and initial settings of the software to be deployed. Embodiments of the present invention recognize the importance of providing cryptographic signing technology to deployment resources (such as configuration files) because such deployment resources may contain sensitive data that configures how applications or other software are deployed and operate after deployment. The configuration file may include multiple sections and an organizational structure that allows an administrative user to select specific sections within the configuration file.
[0062] In step 510, the signing function 440 receives a selection of one or more sections within the deployment resource to be signed. In some instances, the signing user may select all sections, or specify that the entire file will be signed. However, in other instances, the signing user may select one or more sections of the deployment resource. The selected sections represent sections of the deployment resource that the signing user intends to verify or guarantee the work product contained in the content of each selected section. In some instances, the selected sections may correspond to sections that the user has edited or created. In other instances, the selected chapters may correspond to sections that the user has reviewed. The selected sections may be identified by dot marks, slash marks, or by other means. In some embodiments, the signing function 440 provides a text input option to provide such symbols. In other embodiments, the signing function 440 may allow a user to highlight or select one or more sections of the deployment resource using a graphical user interface and, for example, a cursor.
[0063] In step 520, the signing function 440 encrypts the selected segments into one or more digests and / or encrypted messages. In some embodiments, a one-way hash function is used to create a message digest for each selected segment. A message digest is a fixed-size digital representation of the message content calculated by a hash function. The message digest can be encrypted to form a digital signature. As such, in other embodiments, the created message digest is encrypted with a private key to create a digital signature. In such an embodiment, prior to verifying the deployment resources, the corresponding public key (i) has been made accessible to the verification function 450, or (ii) will be made accessible to the verification function 450. In some embodiments, the corresponding public key is stored in the admission policy 470.
[0064] In step 530, the signing function 440 attaches the digital signature to the deployment resource. It should be noted that in embodiments where only a message digest is required, the message digest, rather than the digital signature, is attached to the resource. In embodiments where a digital signature is required, the digital signature is attached to the deployment resource. In some embodiments, the digital signature is attached as an annotation at the top level of the metadata of the deployment resource. However, embodiments of the present invention recognize that the digital signature may be attached to any location of the deployment resource. In addition to the digital signature, the signing function 440 may also include a description of what sections and / or attributes are included in the signature. In other words, the digital signature proves the verification of which sections. The description of what sections are included in the signature can be in any format, such as but not limited to dot notation or slash notation. For example, if the configuration file is a YAML file, dot notation can be used to describe the path to the section of the YAML file associated with the signature.
[0065] The attached digital signature acts as a way to protect and authenticate the source and integrity of the configuration and deployment metadata, and can be used by the verification function 450 to verify the presence and authenticity of one or more claimant or individual signatures.
[0066] Figure 6 Flowchart 600 depicts the steps of verification function 450 according to one embodiment of the present invention. Figure 1-4 The system is executed within a computing environment to verify the signature of deployment resources (such as configuration files) against admission policies before software deployment.
[0067] In one embodiment, first, software from software 460 is deployed to one or more nodes. An admission policy is created and stored to admission policies 470, which specifies the signing requirements for one or more sections (or the entire configuration file) associated with the software deployment. In addition, if digital signatures are being used, one or more public keys associated with individuals required by the admission policy may be accessible to verification function 450, and in some embodiments, such public keys are also stored to a repository of admission policies 470 or another database / repository accessible to verification function 450.
[0068] In step 610, the verification function 450 intercepts the deployment resources before the corresponding software is deployed. In some embodiments, the verification function 450 is a Kubernetes admission controller. An admission controller is a piece of code that intercepts requests to the Kubernetes API server before the persistence of the object, but after the request is authenticated and authorized. In an embodiment of the present invention, the verification function 450 will operate as a verification controller. Validation controllers may not modify the objects they permit. In other environments, the verification function 450 can be any function of the deployer 430 that operates to intercept the deployment resources before the corresponding software is deployed.
[0069] In step 620, verification function 450 identifies the signatures required for deployment. Verification function 450 may access previously stored admission policies, such as previously stored admission policies stored to admission policies 470. As previously described, admission policies correspond to specific software, clients associated with nodes 480 to which the software will be deployed, development / deployment teams, or other factors that have been established and stored in admission policies prior to initiating deployment. Verification function 450 may extract the required one or more signatures and any associated sections associated with those signatures from the associated admission policy.
[0070] In decision 630, verification function 450 determines whether the signature exists and is verified in the intercepted deployment resource. Verification function 450 compares the signatures present in the configuration file or other deployment resources, and determines whether the required signature exists. In addition, verification function 450 utilizes the hash algorithm and / or public key associated with each signature to identify whether the signature is valid. The verification of the signature is completed by applying a hash function to the data and decrypting the signature using the signer's public key. If the generated hash is equal, the signature can be confirmed as valid. As described with reference to signature function 440, verification function 450 determines which sections are associated with the signature based on the attached path or other description of the section. In some embodiments, the admission policy may specify that a section may require multiple signatures. In other embodiments, the admission policy may specify that at least one of the following signatures is required for a specific section. Not all sections require signature verification.
[0071] If the verification function 450 determines that all necessary signatures exist and are verified (decision 630, yes branch), the verification function 450 allows the software to be deployed to the (multiple) nodes 480 according to the configuration and deployment parameters (step 640), thereby causing the software 490 to operate on the associated (multiple) nodes 480.
[0072] If the verification function 450 determines that the necessary signatures are not all present and / or not all necessary signatures can be verified as credible (determination 630, no branch), the verification function prevents the software from being deployed to (multiple) nodes 480. In some embodiments, in addition to preventing deployment from occurring, the verification function 450 may generate errors or other notifications. Such errors or communications may be delivered to the management user associated with the deployment, the user associated with each node 480 of the desired deployment software, and / or other users. In some embodiments, the notification may include details about what causes the software to be unable to be deployed. For example, the verification function 450 may specify the required signature missing from the deployment resource and / or the signature that cannot be authenticated or verified. The failure of authentication or verification of the signature may mean that after the signer creates the signature, the section associated with the signature is modified. Such a notification may provide details to the management user responsible for deploying the software, so as to better enable them to correct any problems with the deployment resources, re-specify each section when necessary, and try to deploy the software again.
[0073] Figure 7 Shown is a method for implementing Figure 8 and 9 An example admission policy 700 showing signature requirements for deployed resources is shown.
[0074] Admission policy 700 illustrates five sections that include signature requirements. More specifically, "spec.repeats," "spec.template.metadata.*," "spec.template.spec.container.image," "spec.template.spec.container.ports," and "spec.template.spec.container.env.*." Paths to specified sections are written in dot notation, but embodiments of the invention recognize that other types of notation or descriptive means may be utilized to identify sections. "*" acts as a wildcard and indicates, for example, that all subsections of the metadata header are to be signed. Each section also includes the signature requirements for that section that appear after the colon. As depicted, some sections require a single signature, while other sections require at least one signature from multiple listed signatures (where "or" is depicted as "‖"). Although not depicted, in admission policy 700, other admission policies may list multiple signatures for a particular section and require that all listed signatures be obtained before the software is deployed. For example, although not included in admission policy 700, a policy requiring multiple signatures may be "spec.template.spec.container.ports:bobsmith@foo.comand&aliejones@foo.com" (where "and" is depicted as "&&").
[0075] Figure 8 An example configuration file or deployment resource is shown, referred to herein as deployment resource 800. As described, deployment resource 800 corresponds to admission policy 700 and is an example of a deployment resource that will pass verification by verification function 450.
[0076] The deployment resource 800 includes a signature section 810 that has been attached as an annotation to the deployment resource 800, and the signature section 810 includes a digital signature and a path corresponding to the requirements of the access policy 700. Each signature includes (i) a path specifying the section that has been signed, a signer identification tag (in the depicted example, the signer identification tag is an email address), and an encrypted signature depicted as a long string. As described above, the encrypted signature is generated using a hash algorithm and / or the signer's private key. The signature has been attached to the deployment resource 800 by the signing function 440 and can be verified by the access access policy 700 from the repository access policy 470 by the verification function 450. The verification function 450 can use the public key associated with the signer to verify that the encrypted signature is legitimate and that the data in the associated section has not been modified.
[0077] When the deployment resource 800 is compared to the admission policy 700, all signature requirements specified by the admission policy 700 will be present. Assuming the verification function 450 is able to verify the integrity of the signature, the deployment resource 800 will be able to be used to configure the software during the software deployment process.
[0078] In contrast, Fig. 9 Deployment resource 900 is shown that will not meet the requirements of admission policy 700. When reviewing signature section 910, signature 920 specifies "bobsmith@foo.com", while admission policy 700 requires a signature from "chrissbuck@foo.com" for section "spec.template.metadata.*". Therefore, verification function 450 will determine that the required signature from admission policy 700 is missing, and will prevent deployment resource 900 from being used to configure the corresponding software scheduled to be deployed to node 480. In addition, although not depicted, deployment resource 900 may also encounter a signature that cannot be verified. For example, if a required signature is added, and then after the signature is added, the data from the associated section is modified, the signature will no longer be valid because the change in the content of the section will cause a mismatch during the verification process. In this case, verification function 450 will again determine that the deployment resource cannot be processed for software deployment due to an invalid signature.
[0079] As previously described, verification function 450 may generate an error or notification describing a defect in deployment resource 900. In this specific example, verification function 450 may generate a notification identifying that "bobsmith@foo.com" has signed the "spec.template.metadata.*" section of deployment resource 900 and that admission policy 700 requires a digital signature from "chrissbuck@foo.com". Further, assuming verification function 450 determines that another signature is invalid, verification function 450 will cause the notification to identify the invalid signature. Such information can be utilized by an administrative user to resolve the defect and update deployment resource 900 so that it meets the signature requirements of admission policy 700.
[0080] Although Figure 8 and 9 Depicted as a YAML configuration file, it should be noted that different embodiments of the present invention may utilize any type of deployment resource or configuration file.
[0081] The present invention may be a system, method, and / or computer program product at any possible level of technical detail of integration. The computer program product may include a computer-readable storage medium (or multiple media) having computer-readable program instructions thereon for causing a processor to perform various aspects of the present invention.
[0082] Computer readable storage medium can be a tangible device that can retain and store instructions used by an instruction execution device. Computer readable storage medium can be, for example but not limited to, electronic storage device, magnetic storage device, optical storage device, electromagnetic storage device, semiconductor storage device, or any suitable combination of the above. A non-exhaustive list of more specific examples of computer readable storage medium includes the following: portable computer disk, hard disk, 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 stick, floppy disk, mechanical encoding device such as punch card or a protruding structure in a groove with instructions recorded thereon, and any suitable combination of the above. Computer readable storage medium as used herein should not be interpreted as a temporary signal itself, such as radio waves or other free propagating electromagnetic waves, electromagnetic waves propagated by waveguides or other transmission media (e.g., light pulses passing through fiber optic cables) or electrical signals emitted by wires.
[0083] The computer-readable program instructions described herein can be downloaded from a computer-readable storage medium to a corresponding computing / processing device or to an external computer or external storage device via a network (e.g., the Internet, a local area network, a wide area network, and / or a wireless network). The network can include copper transmission cables, optical transmission fibers, wireless transmissions, routers, firewalls, switches, gateway computers, and / or edge servers. The 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 to be stored in a computer-readable storage medium in the corresponding computing / processing device.
[0084] The computer-readable program instructions for performing the operation of the present invention can be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-related instructions, microcode, firmware instructions, state setting data, configuration data of integrated circuits, or source code or object code written in any combination of one or more programming languages, including object-oriented programming languages (such as Smalltalk, C++, etc.) and process programming languages (such as "C" programming languages or similar programming languages). The computer-readable program instructions can be executed completely on the user's computer, partially on the user's computer, executed as an independent software package, partially on the user's computer, partially on a remote computer, or completely on a remote computer or server. In the latter case, the remote computer can be connected to the user's computer through any type of network (including a local area network (LAN) or a wide area network (WAN)), or can be connected to an external computer (for example, using an Internet service provider through the Internet). In certain embodiments, the electronic circuit including, for example, a programmable logic circuit, a field programmable gate array (FPGA) or a programmable logic array (PLA) can perform computer-readable program instructions by utilizing the state information of the computer-readable program instructions to personalize the electronic circuit so as to perform various aspects of the present invention.
[0085] This article describes various aspects of the present invention with reference to the flowcharts and / or block diagrams of the methods, devices (systems) and computer program products according to embodiments of the present invention. It should be understood that each box of the flowchart and / or block diagram and the combination of boxes in the flowchart and / or block diagram can be implemented by computer-readable program instructions.
[0086] These computer-readable program instructions can be provided to a processor of a computer, or other programmable data processing device to produce a machine, so that these instructions executed by the processor of the computer or other programmable data processing device create a device for implementing the functions / actions specified in one or more boxes of the flowchart and / or block diagram. These computer-readable program instructions can also be stored in a computer-readable storage medium, which causes the computer, programmable data processing device, and / or other equipment to work in a specific manner, so that the computer-readable storage medium in which the instructions are stored includes a manufactured product containing instructions for implementing aspects of the functions / actions specified in one or more boxes of the flowchart and / or block diagram.
[0087] These computer-readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device so as to cause a series of operating steps to be performed on the computer, other programmable apparatus, or other device to produce a computer-implemented process, thereby causing the instructions executed on the computer, other programmable apparatus, or other device to implement the functions / actions specified in the flowchart and / or block diagram or multiple boxes.
[0088] The flowcharts and block diagrams in the accompanying drawings show the architecture, functions and operations of the possible implementations of the systems, methods and computer program products according to different embodiments of the present invention. To this end, each box in the flowchart or block diagram may represent a module, segment or part of an instruction, which includes one or more executable instructions for implementing a specified logical function. In some alternative implementations, the functions marked in the box may not occur in the order marked in the figure. For example, the two boxes shown in succession can actually be completed as a step, and are executed simultaneously, substantially simultaneously, in a partially or completely overlapping manner in time, or the boxes can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of the boxes in the block diagram and / or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or action or performs a combination of dedicated hardware and computer instructions.
[0089] The description of different embodiments of the present invention has been presented for the purpose of illustration, but is not intended to be exhaustive or limited to the disclosed embodiments. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the invention. The terms used herein are selected to best explain the principles of the embodiments, practical applications, or technical improvements over technologies found in the marketplace, or to enable those of ordinary skill in the art to understand the embodiments disclosed herein.
Claims
1. A computer-implemented method comprising: Before deploying the software to the node, intercepting, by one or more processors, a deployment resource file associated with the software, wherein the deployment resource file includes configuration data; identifying, by the one or more processors, a user-generated digital signature required for software deployment, the digital signature comprising a message digest of one of a plurality of sections of a deployment resource file encrypted using a private key of a required user, wherein identifying the user-generated digital signature required for software deployment comprises retrieving, by the one or more processors, an admission policy specifying a corresponding user signature required for each of the plurality of sections in the deployment resource file; verifying, by one or more processors, the existence and authenticity of a required user-generated digital signature within the deployment resource file; In response to verifying the existence and authenticity of the digital signature, the software is deployed to the node according to the deployment resource file by one or more processors.
2. The computer-implemented method of claim 1 , wherein: The admission policy also specifies one or more signatures required to deploy the software; The admission policy is located outside the deployment resource file; as well as Verifying the presence and authenticity of a required user-generated digital signature within the deployment resource file includes verifying, by one or more processors, that a required user-generated digital signature specified by the admission policy is present within the deployment resource file.
3. The computer-implemented method of claim 1 , further comprising: Receiving, by one or more processors, a selection of a section to be signed within the deployment resource file; encrypting, by one or more processors, the selected segment using a hash function and a private key; as well as A digital signature and identification of the section is appended within the deployment resource by one or more processors.
4. The computer-implemented method of claim 3, wherein: Verifying the authenticity of the digital signature includes: decrypting, by one or more processors, the digital signature; and The resulting hash function is compared, by one or more processors, to a hash function associated with the data at the segment.
5. The computer-implemented method of claim 2, wherein: The admission policy further specifies a plurality of sections of the deployment resource file.
6. The computer-implemented method of claim 1 , wherein: The deployment resource file is a Kubernetes YAML file.
7. The computer-implemented method of claim 3, wherein: The digital signature and identification of the section within the deployment resource file are appended to an annotation in the top-level metadata of the deployment resource file.
8. A computer program product comprising: One or more computer-readable storage media, and program instructions stored together on the one or more computer-readable storage media, the program instructions comprising: Program instructions for intercepting deployment resource files associated with software prior to deploying the software to a node, wherein the deployment resource files include configuration data; program instructions for identifying a user-generated digital signature required for software deployment, the digital signature comprising a message digest of one of a plurality of sections of a deployment resource file encrypted using a required user's private key, wherein the program instructions for identifying a user-generated digital signature required for software deployment comprises program instructions for retrieving an admission policy specifying a corresponding user signature required for each of the plurality of sections in the deployment resource file; program instructions for verifying the presence and authenticity of the digital signature within the deployment resource file; Program instructions for deploying the software to the node according to the deployment resource file in response to verifying the presence and authenticity of the digital signature.
9. The computer program product of claim 8, wherein the admission policy further specifies one or more signatures required to deploy the software; The admission policy is located outside the deployment resource file; and Program instructions collectively stored on the one or more computer-readable storage media are for verifying a required user-generated digital signature specified by the admission policy within the deployment resource file.
10. The computer program product of claim 8, further comprising: program instructions stored collectively on the one or more computer-readable storage media for receiving a selection of a section to be signed within the deployment resource file; program instructions stored collectively on the one or more computer-readable storage media for encrypting the selected segment using a hash function and a private key; as well as Program instructions commonly stored on the one or more computer-readable storage media are for attaching a digital signature and identification of the section within the deployment resource.
11. The computer program product according to claim 10, wherein: The program instructions for verifying the authenticity of the digital signature include: program instructions for decrypting the digital signature; and Program instructions for comparing the resulting hash function to a hash function associated with the data at the segment.
12. The computer program product of claim 9, wherein: The admission policy further specifies a plurality of sections of the deployment resources.
13. The computer program product of claim 8, wherein: The deployment resource file is a Kubernetes YAML file.
14. The computer program product of claim 10, wherein: The digital signature and identification of the section within the deployment resource file are appended to an annotation in the top-level metadata of the deployment resource file.
15. A computer system comprising: One or more computer processors, one or more computer-readable storage media, and program instructions stored together on the one or more computer-readable storage media for execution by at least one of the one or more computer processors, the program instructions comprising: Program instructions for intercepting deployment resource files associated with software prior to deploying the software to a node, wherein the deployment resource files include configuration data; program instructions for identifying a user-generated digital signature required for software deployment, the digital signature comprising a message digest of one of a plurality of sections of a deployment resource file encrypted using a private key of a required user, wherein the program instructions for identifying a user-generated digital signature required for software deployment comprises program instructions for retrieving an admission policy specifying a corresponding user signature required for each of the plurality of sections in the deployment resource file; Program instructions for verifying the existence and authenticity of a digital signature within the deployment resource file; Program instructions for deploying the software to the node according to the deployment resource file in response to verifying the presence and authenticity of the digital signature.
16. The computer system of claim 15, wherein: The admission policy specifies one or more signatures required to deploy the software; The admission policy is located outside the deployment resource file; as well as Program instructions stored collectively on the one or more computer-readable storage media for execution by at least one of the one or more computer processors, the program instructions being operable to verify that a required user-generated digital signature specified by the admission policy is present in the deployment resource file.
17. The computer system of claim 15, further comprising: program instructions stored collectively on the one or more computer-readable storage media for execution by at least one of the one or more computer processors, the program instructions for receiving a selection of a section to be signed within the deployment resource file; program instructions stored collectively on the one or more computer-readable storage media for execution by at least one of the one or more computer processors for encrypting the selected segment using a hash function and a private key; as well as Program instructions commonly stored on the one or more computer-readable storage media for execution by at least one of the one or more computer processors are used to attach a digital signature and identification of the section within the deployment resource.
18. The computer system of claim 17, wherein: The program instructions for verifying the authenticity of the digital signature include: Program instructions for decrypting the digital signature; and Program instructions for comparing the resulting hash function to a hash function associated with the data at the segment.
19. The computer system of claim 16, wherein: The admission policy further specifies a plurality of sections of the deployment resources.
20. The computer system of claim 15, wherein: The deployment resource file is a Kubernetes YAML file.
