A portion of the disclosure of this patent document contains material which is subject to copyright protection. The copyright owner has no objection to the facsimile reproduction by anyone of the patent document or the patent disclosure, as it appears in the Patent and Trademark Office patent file or records, but otherwise reserves all copyright rights whatsoever.
The present invention is generally related to computer systems, and is particularly related to providing secure communication in a network environment.
The interconnection network plays a beneficial role in the next generation of super computers, clusters, and data centers. As larger cloud computing architectures are introduced, the performance and administrative bottlenecks associated with the traditional network and storage have become a significant problem. A next generation data center can include a middleware machine system having a plurality of compute nodes for hosting applications. One example of such a middleware machine system is the Oracle® Exalogic computer appliance. A next generation data center can also include a database server system. One example of a database server system is the Oracle® Exadata Database Machine. The middleware machine system works in cooperation with the database server system. Data stored in the database server system is used and retrieved for computer operations in the middleware machine system, data generated or modified in the middleware machine system is stored in the database server system. Accordingly, it is important that the connection between the middleware machine system and the database server system be reliable, high speed, low latency and high bandwidth with low protocol overhead. For example, the InfiniBand (IB) technology has seen increased deployment as the foundation for a cloud computing fabric. InfiniBand is a connection-based communication protocol which uses a switched fabric topology which can support, among other things, remote direct memory access (RDMA) operations between the middleware machine system and database server system.
However, data centers are often shared by multiple tenants. The multiple tenants may be for example different corporate entities in cloud computing environments. Even where a data center is dedicated to a single corporate entity there may be multiple tenants in the form of different departments such as finance, human resources, engineering and the like which own data which must be kept private from other departments. It is important or necessary in multitenant environments that data be secured and accessible to authorized tenants and associated users and not accessible to unauthorized tenants and associated users. Likewise applications in the middleware machine system are associated with particular tenants and thus data in the database server system should be accessible to certain applications and not to others.
A conventional way to protect data from unauthorized access is to use a firewall appliance. A firewall appliance such as an Ethernet firewall appliance can be placed between a middleware machine system and a database server system sitting in the shared Ethernet medium. The firewall appliance controls access to database services making a port available for such service to authorized tenants and their associated applications and not to unauthorized tenants and their associated applications. However, use of such a firewall appliance necessarily prevents direct connection between the middleware machine system and the database server system and acts as a bottleneck on the indirect connection. No InfiniBand firewall appliance is currently available. Thus, if a firewall is required/specified, a conventional Ethernet firewall appliance (or the like) should be used. However, the use of a conventional Ethernet firewall appliance introduces additional networking overhead, and creates a bottleneck which limits the scalability of the system. The use of a conventional Ethernet firewall appliance precludes the use of a high speed connection-based switched fabric such as InfiniBand as well as the optimizations that such a connection-based switched fabric provides to operations performed between the middleware machine system and the database server system.
Prior systems and methods for providing and controlling data flow in an engineered system for middleware and application execution system using an intermediate node to provide security are described in U.S. patent application titled “SYSTEM AND METHOD FOR PROVIDING A DATA SERVICE IN AN ENGINEERED SYSTEM FOR MIDDLEWARE AND APPLICATION EXECUTION”, application Ser. No. 14/467,859, filed Aug. 25, 2014; U.S. patent application titled “SYSTEM AND METHOD FOR CONTROLLING A DATA FLOW IN AN ENGINEERED SYSTEM FOR MIDDLEWARE AND APPLICATION EXECUTION”, application Ser. No. 14/467,860, filed Aug. 25, 2014; U.S. patent application titled “SYSTEM AND METHOD FOR SUPPORTING DATA SERVICE ADDRESSING IN AN ENGINEERED SYSTEM FOR MIDDLEWARE AND APPLICATION EXECUTION”, application Ser. No. 14/467,868, filed Aug. 25, 2014; and U.S. patent application titled “SYSTEM AND METHOD FOR SUPPORTING HOST CHANNEL ADAPTER (HCA) FILTERING IN AN ENGINEERED SYSTEM FOR MIDDLEWARE AND APPLICATION EXECUTION”, application Ser. No. 14/467,896, filed Aug. 25, 2014, which applications are incorporated herein by reference. However, use of an intermediate node necessarily increases latency and overhead to the communication channel. These applications describe a firewall appliance which has general applicability. However, the solution requires extra networking overhead, impacting latency and scalability issues, because the intermediate node receives and processes each packet traveling between two end points. Additionally, in light of the processing required for each packet, the system makes a trade-off between how much deep packet processing is performed relative to the overhead, latency, and scalability impacts.
In order to provide solution similar to one described in this invention disclosure using standard firewall appliance, one would need to track state of each connection and association of this connection with specific application layer construct, like for example database service, as we described in this invention disclosure.
It would therefore be desirable to overcome the disadvantages presented by the conventional use of an intermediary firewall appliance and/or intermediary node while providing a security solution that ensures the security of data in a multitenant environment.
Described herein are systems and methods that overcome the disadvantages presented by the conventional use of intermediary firewall appliance while providing a security solution that ensures the security of data in a multitenant environment. The security solution described herein avoids the use of an intermediary firewall appliance necessarily and allows bottleneck-free direct connection between the middleware machine system and the database server system. The security solution enables the use of a high speed connection-based switched fabric such as InfiniBand linking a middleware machine system and a database server system as well as optimizations that such a connection-based fabric can provide to operations performed between the middleware machine system and the database server system. Nodes in the middleware machine system and nodes in the database server system can be directly connected through one or more switches in the switched fabric without passing through any intermediate firewall appliance or computing node. The security solution operates in a manner which allows the system to take advantage of the full range of optimizations enabled by such direct connection including those provided by SR-IOV technology.
In some embodiments, the present disclosure describes an integrated firewall which provides security in a multi-tenant environment having a connection-based switched fabric directly connecting database servers which provide a plurality of database services with application servers hosting database service consumers each having a different database service consumer identity. The firewall functionality integrated into each database server provides access control by discarding communication packets which do not include a database service consumer identity and using the database service consumer identity in combination with an access control list to control access from the database service consumers to the database services. The access control includes address resolution access control, connection establishment access control, and data exchange access control based on said access control list. The integrated firewall enables direct connection of database servers and application servers via an InfiniBand network providing without requiring a separate intermediary firewall appliance or security node. The integrated firewall enables the system to take advantage of SR-IOV technology which provides direct networking hardware access from the consumers to the database services (when authorized).
In some embodiments, the present disclosure describes a complete security solution which provides secure communication in a multi-tenant environment which includes a connection-based fabric, storage cells holding data associated with different tenants, database servers which provide a plurality of database services using said data, application servers hosting database service consumers. The fabric is configured into multiple partitions isolating the storage cells from the database service consumers. Unique database service consumer identities are securely associated with each database service consumer. The security solution is configured such that the consumer identifiers are included in all communications between the database service consumers and the database servers. The database servers reject all communications from the database service consumers which do not include an identity. The database servers use an access control list in combination with the identities provided in communication packets to control access from the database service consumers to the database services using one or more of address resolution access control, connection establishment access control, and data exchange access control. Denial of service (DoS) attack prevention can also be performed based on consumer identities included in packets. The security solution enables direct connection of database servers and application servers via an InfiniBand network providing firewall functionality without requiring a separate intermediary firewall appliance or security node.
In some embodiments, the present disclosure describes systems and methods that can provide secure communication in a network environment. The network environment, such as a multi-tenant environment over a network, can include one or more service provider nodes, one or more service consumer nodes, and one or more storage cells. Said one or more service provider nodes can ensure secure communication between said one or more service provider nodes and said one or more service consumer nodes. Furthermore, the network environment can isolate one or more storage cells associated with said one or more service provider nodes from said one or more service consumer nodes. Additionally, the network environment can provide secure access, to one or more service provider instances running on said one or more service provider nodes, for one or more virtual machines (VMs) on said one or more service consumer nodes.
In some embodiments, the present disclosure describes, a method for providing secure communication in a network environment, comprising: ensuring, via one or more service provider nodes in the network environment, secure communication between said one or more service provider nodes and one or more service consumer nodes; isolating one or more storage cells associated with said one or more service provider nodes from said one or more service consumer nodes; and providing secure access to one or more service provider instances running on said one or more service provider nodes, for one or more virtual machines (VMs) on said one or more service consumer nodes.
These and other objects and advantages of the present invention will become apparent to those skilled in the art from the following description of the various embodiments, when read in light of the accompanying drawings.
Various embodiments of the present invention are described in detail below based on the following figures.
Described herein are systems and methods that can provide secure communication in a network environment. The network environment, such as a multi-tenant environment over a network, can include one or more service provider nodes, one or more service consumer nodes, and one or more storage cells. Said one or more service provider nodes can ensure secure communication between said one or more service provider nodes and said one or more service consumer nodes. Furthermore, the network environment can isolate one or more storage cells associated with said one or more service provider nodes from said one or more service consumer nodes. Additionally, the network environment can provide secure access, to one or more service provider instances running on said one or more service provider nodes, for one or more virtual machines (VMs) on said one or more service consumer nodes.
In the following description, the invention will be illustrated by way of example and not by way of limitation in the figures of the accompanying drawings. References to various embodiments in this disclosure are not necessarily to the same embodiment, and such references mean at least one. While specific implementations are discussed, it is understood that this is provided for illustrative purposes only. A person skilled in the relevant art will recognize that other components and configurations may be used without departing from the scope and spirit of the invention.
Furthermore, in certain instances, numerous specific details will be set forth to provide a thorough description of the invention. However, it will be apparent to those skilled in the art that the invention may be practiced without these specific details. In other instances, well-known features have not been described in as much detail so as not to obscure the invention.
The present invention is described with the aid of functional building blocks illustrating the performance of specified functions and relationships thereof. The boundaries of these functional building blocks have often been arbitrarily defined herein for the convenience of the description. Thus functions shown to be performed by the same elements may in alternative embodiments be performed by different elements. And functions shown to be performed in separate elements may instead be combined into one element. Alternate boundaries can be defined so long as the specified functions and relationships thereof are appropriately performed. Any such alternate boundaries are thus within the scope and spirit of the invention.
Common reference numerals are used to indicate like elements throughout the drawings and detailed description; therefore, reference numerals used in a figure may or may not be referenced in the detailed description specific to such figure if the element is described elsewhere. The first digit in a three digit reference numeral indicates the series of figures in which the element first appears.
In the following description, some embodiments describe a system having an Oracle® Exalogic middleware machine connected by an InfiniBand fabric to an Oracle® Exadata database server system is described. However, a person having ordinary skill in the art will understand that the present invention can be applied to many high performance computing environments without departing from the scope of the invention. Moreover, although numerous specific details of an Oracle® Exalogic middleware machine connected by an InfiniBand fabric to an Oracle® Exadata database server system are described to provide a thorough description of the invention, it will be apparent to those skilled in the art that the invention may be practiced without these specific details. Thus, a particular implementation of a multi-tenant computing environment embodying the present invention can, in some embodiments, exclude certain features, and/or include different, or modified features than those of the middleware machine, database server system and InfiniBand fabric described below, without departing from the scope of the invention.
As shown in
In accordance with an embodiment of the invention, the IB subnet 110, which supports the multi-tenant environment 100, can be configured using different partitions. For example, the storage cells 103 may not be visible to the virtual machines on compute node 101, since the access to the storage cells 103 can be isolated via using a dedicated IB Partition. Additionally, the access to the database nodes 102 can be isolated via another dedicated partition, while the database nodes 102 can be shared by all tenants running on the compute nodes 101. On the other hand, the database nodes 102 can have access to both partitions using different networking interfaces.
As shown in
As shown in
As shown in
As shown in
As shown in
The system includes access control measures which ensure that access to a specific database service provided by the database server system 240 is restricted to virtual machines of the middleware machine system 220 that have been granted access to that specific database service in an access control list (ACL) under control of management stack 210. Access may be granted for example only to those virtual machines associated with a particular tenant. The access control list (ACL) associates each named database service with a set of VM identifiers corresponding to the VMs that are allowed to access it. The access control system ensures that only VMs granted permission in the ACL with respect to a named database service will be allowed to access that named database service. The content of the ACL is under the secure control of an administrator of the integrated system using management stack 210.
As shown in
Database server system 240 also include a plurality of database nodes 260. Two database nodes 260a, 260b are shown. A typical system will include a large number of similar database nodes. The database nodes 260a, 260b can access the storage cells 250a, 250b, 250c, and 250d via the storage access partition 202. Each of the database nodes 260a, 260b can host a plurality of database processes e.g. PDB 261a, 262a, 261b, and 262b each of which can provide a named database service e.g. DB SVC 263a, 264a, 263b, and 264b. Each named database service can be associated with one or more particular tenants. Storage cells 250a, 250b, 250c, 250d represent shared storage media. The particular storage cells need not be associated with or dedicated to particular tenants. In an embodiment the storage cells 250 represent a distributed storage array managed by the database nodes 260. Database files can be striped across multiple storage cells. However a wide variety of arrangements of the database files on the storage cells can be utilized under control of the database nodes 260. No additional security measures needed for access to the storage cells 250 because storage cells are isolated from the VMs of the compute nodes using a dedicated storage access partition 204. The storage access partition 204 is only available to the database nodes 260a, and 260b and the storage cells 250a, 250b, 250c, and 250d. Thus, the plurality of storage cells 250 is isolated from the middleware machine system 220 and the virtual machines on compute nodes 220a, 220b, 220c, and 220d.
The only way for the middleware machine system 220 to access database files stored on the plurality of storage cells 250 is indirectly through calling one or more of the tenant-specific named database services on the plurality of database nodes 260. Access to the database nodes 260a 260b is controlled and secured using Access Control 266a and 266b as described below. Access from the virtual machines on compute nodes to the database nodes is also constrained to a dedicated database access partition 204. This partition is different from the default partition, and is not used for communication between the virtual machines on different compute nodes themselves. If multiple tenants are deployed they all share the same database access partition 204 to access database nodes. All VMs are configured as limited members of the database access partition 204 in order to prevent communication between VMs using the database access partition 204. All database nodes are configured as full members of the database access partition 204.
Middleware machine system 220 includes a plurality of compute nodes of which four are shown 220a, 220b, 220c, and 220d. A typical system will include a large number of similar compute nodes. The compute nodes host applications (not shown) running in virtual machines. Each of the virtual machines can be assigned to a particular tenant in a multitenant environment. There can be a plurality of virtual machines (and applications) running on each compute node. Eight virtual machines are shown VM 221a, VM 222a, VM 221b, VM 222b, VM 221c, VM 222c, VM 221d, and VM 222d. A typical system will include a large number of similar virtual machines running on each compute node and on many additional compute nodes. Each virtual machine is associated with an identifier VMID 223a, VMID 224a, VMID 223b, VMID 224b, VMID 223c, VMID 224c, VMID 223d, and VMID 224d, by the hardware of the compute node hosting the virtual machine under control of the subnet manager 214. The VMs on compute nodes 220a, 220b, 220c, 220d can communicate with the plurality of database nodes 260 over the storage access partition 202 using a connection based reliable protocol. In a preferred embodiment the VMs on compute nodes 220a, 220b, 220c, and 220d can communicate with the plurality of database nodes 260 over InfiniBand fabric 206.
The hardware of compute nodes 220a, 220b, 220c, and 220d transmits communication packets between the applications on the virtual machines and the database nodes. The hardware of the compute nodes includes in a header of each packet, a source global identifier (SGID) including the VMID associated with the virtual machine communicating. Because the VMIDs are associated with the virtual machines in hardware, the virtual machines cannot spoof their identifiers, that is, they cannot use identifiers that they are not associated with by the hardware. Also, the hardware of the compute nodes ensures that all communication packets from virtual machines include in their header an SGID which includes the VMID of the relevant virtual machine when communicating with the database nodes over the database access partition 204.
As previously described, the only way for the virtual machines of middleware machine system 220 to access data on the plurality of storage cells 250 is by calling specific named database services on the plurality of database nodes 260. The virtual machines are not allowed to communicate over the storage access partition and thus cannot communicate with the storage cells directly. Each of the virtual machines can attempt to create a connection to any of the named database services. However, each database node includes access control functions 266a and 266b implemented in the hardware (for example the HCA) and the software of the database node. The access control functions 266a and 266b can identify from the SGID in received communication packets which virtual machine is trying to connect to a named service. The access control functions 266a and 266b provide access control functionality responsive to access control list 268a and 268b, which identifies which virtual machines can access which named services. The contents of the ACL is under the secure control of management stack 210 and copies of the ACL are distributed to each database node. Access control functions 266a, 266b can include one or more of address resolution access control, connection establishment access control, data exchange access control, and IPoIB access control.
Access control functions 266a 266b can prevent a virtual machine from establishing a connection with a particular database node if the VM is not authorized to access any database service provided by the particular database node. Access control functions 266a and 266b can also prevent a virtual machine from establishing a connection with and communicating with a particular database service unless the VM is authorized in the access control list to access the particular database service. In an embodiment of a multitenant environment, the access control list is configured such that only virtual machines associated with the same tenant as a particular database service can establish a connection and communicate with the particular database service. All connection requests from unauthorized virtual machines are denied. Access control can be performed at various stages in the lifecycle of a connection as described below.
As shown in
The OCI Client 333 and JDBC Client 335 can send and receive data using remote direct memory access (RDMA) via Direct Access Stack 340 and HCA 326 using Single Root I/O Virtualization (SR-IOV) technology in using a virtual function (VF) attached to each virtual machine hosting an application instance in the application layer. As shown in
The Single and Multi-root IO Virtualization technologies are defined in standards specifications published by PCI-SIG. Certain aspects of Single Root I/O Virtualization (SR-IOV) Technology, RDMA and virtual function attached to virtual machines is described for example in U.S. patent application titled “SYSTEM AND METHOD FOR SUPPORTING LIVE MIGRATION OF VIRTUAL MACHINES IN A VIRTUALIZATION ENVIRONMENT”, application Ser. No. 13/838,121, filed Mar. 15, 2013; and U.S. patent application titled “SYSTEM AND METHOD FOR SUPPORTING LIVE MIGRATION OF VIRTUAL MACHINES BASED ON AN EXTENDED HOST CHANNEL ADAPTOR (HCA) MODEL”, application Ser. No. 13/838,275, filed Mar. 15, 2013; and U.S. patent application title “SYSTEM AND METHOD FOR SUPPORTING LIVE MIGRATION OF VIRTUAL MACHINES IN AN INFINIBAND NETWORK”, application Ser. No. 13/837,922, filed Mar. 15, 2013, which applications are incorporated herein by reference.
An advantage of SR-IOV technology is that the virtual machines are granted direct hardware access via a PCIE virtual function (PCIE VF). This provides the same performance as physical deployment and supports user-level networking and RDMA providing linear performance scalability with the number of VMs. SR-IOV is therefore required to take full advantage of high speed interconnect such as an InfiniBand fabric. However, unlike software I/O virtualization technologies such as paravirtualization, with SR-IOV there is no intermediary software to control access to the VM. Thus, where the VM networking stack is untrusted, there is no trusted software intermediary to intercept and filter networking traffic. Thus, in order to fully utilize SR-IOV technology while providing access control, a secure VM Identifier (VMID) is made visible on the network and access control is mediated by the external entity or Service Provider (Database) as described herein. As shown in
The InfiniBand Fabric 206 includes a plurality of switches 216 (one shown) to which the HCA 326 of compute node 320 and HCA 366 of database node 360 are connected (in addition to the plurality of HCAs of a plurality of other compute nodes and databases nodes not shown). InfiniBand (abbreviated IB), is a computer-networking communications standard used in high-performance computing, features very high throughput and very low latency. It is used for data interconnect both among and within computers. InfiniBand is utilized as either a direct, or switched interconnect between servers and storage systems, as well as between storage systems. InfiniBand uses a switched fabric topology, as opposed to shared medium technology such as Ethernet. All transmissions begin or end at an HCA. In the system of
The InfiniBand fabric 206 implements one or more subnet manager 214 which is responsible for configuration of the InfiniBand fabric 206, and route resolution used in the process of IB connection establishment. The subnet manager 214 also configures the HCAs 366, 326 attached to the subnet through secure subnet management packets (SMP). In embodiments of the present invention, the subnet manager 214 can be used to securely configure the HCAs in the subnet with virtual machine identifiers (VMIDs) associated with particular virtual functions associated with particular virtual machines. As shown in
The subnet manager 214 can also be used to securely configure the HCAs in the subnet such that each communication packet transmitted between a virtual machine on a compute node and a database node includes a global routing header (GRH) which includes a source global identifier (SGID) which includes the virtual machine identifier (VMID) associated with a particular virtual function associated with a particular virtual machine. As shown in FIG. 3, for example, each communication packet transmitted between virtual machine 331 of compute node 320 and a database node includes a global routing header (GRH) which includes a source global identifier (SGID) which includes the VMID 322 associated with the VF 321 attached to the virtual machine 331. Thus association of the VMIDs with virtual machines, and inclusion of SGIDs in communication packets is under the secure control of the subnet manager 214 and HCAs and cannot be spoofed or corrupted by the compute node 320 or VMs on the compute node. Thus, even a user or application with root access to the compute node will not be able to alter the VMIDs and SGIDs include in packet headers or use unauthorized VMIDs/SGIDs.
In embodiments, the OFED Stack 377 and HCA 366 of each database node 360 implement access control based on one or more access control list (ACL) 375a, 375b. The access control uses the SGIDs embedded in the InfiniBand packets to identify the virtual machine associated with the packets. The OFED Stack 377 and HCA 366 implement access control based on one or more access control list (ACL) 375a, 375b to prevent the establishment of connections and transmission of data between virtual machines in the compute nodes and database processes unless authorized by the appropriate ACL. Note however, that should a connection be made and communication allowed between an authorized virtual machine and database process, the connection allows full direct RDMA over InfiniBand between an OCI Client 333 instance on the compute node 320 and the OCI Server 372 and the database node 360 without the need for an intermediary firewall appliance (such as e.g. Ethernet firewall 390). A VM once authorized by access control logic and hardware is granted direct hardware access (via PCIE VF) to a database service with the same performance as physical deployment using a connection that supports user-level networking and RDMA without any intermediary software to control access to VM resulting in linear performance scalability with number of VMs and taking full advantage of the high speed InfiniBand interconnect with data exchange access enforced by the HCA hardware of the database node.
The applications on compute node 320 can also include one more other application 336 which does not use JDBC or OCI is therefore precluded from utilizing direct access stack 340 for RDMA but instead use Sockets 337 to communicate with a database over Ethernet. Sockets 337 are coupled via an OS Stack 344 to an Ethernet over InfiniBand (EoIB) adapter 346. Ethernet packets are sent out using EoIB to Gateway 306 which retransmits the packets over an Ethernet network external to InfiniBand fabric 206. The Ethernet communications pass through a conventional Ethernet firewall appliance 390 before reaching database node 360. At database node 360, the Ethernet communications are received with Network Interface Card (NIC) 367 from Ethernet firewall appliance 390 and transmitted via OS Stack 378 to Sockets 379. It should be noted that this connection path features higher overhead in several aspects including processor overhead in reading/writing sockets 379, OS Stack overhead, and inclusion of Gateway 306 and Ethernet firewall 390 is the communication path.
In embodiments of the present invention, the subnet manager 214 is used to securely configure all HCAs in the subnet with virtual machine identifiers (VMIDs) associated with particular virtual functions associated with particular virtual machines. Each subnet manager 214 uses subnet management packets to configure a port global unique identifier (GUID) table 400 stored in secure memory of HCA 326. A different port GUID table is configured in each HCA connected to the subnet. The port GUID table 400 is used in HCA 326 to associate each virtual function (VF) and hence each virtual machine with a GUID established by the subnet manager 214 for use as a VMID. Thus, association of the VMIDs with virtual machines is under the secure control of the subnet manager and cannot be spoofed or corrupted by the virtual machine.
Subnet manager 214 also configures the database access partition such that HCA 326 includes the GUID in a Global Routing heading (GRH) in each InfiniBand packet 402a, 402b, 402c transmitted by the HCA 326 towards a database node. In an embodiment, the subnet manager 214 instructs the software stack to use GRH on connections between the virtual machines on the compute nodes and the database nodes. When GRH is specified for the connection, the hardware (e.g. HCA 326) will include the GRH in all packets sent over the connection. The VMID is included in the global routing header as the GRH.SGID which is a concatenation of the GUID of the attached VF (VMID) and the Subnet Prefix. The GRH is typically not transmitted in InfiniBand packets when the InfiniBand packets are transmitted between endpoints within a single subnet. One way for subnet manager 214 to ensure that each InfiniBand packet transmitted by the HCA 326 to a database node includes the GRH is to identify all the database nodes as part of a separate subnet than the compute nodes—the HCA will then include the GRH in all InfiniBand packets according the standard protocol for communication between different subnets over InfiniBand. Alternatively, subnet manager 214 can specify a change in policy which requires transmission of the GRH in all InfiniBand packets even within the same subnet.
In an embodiment, the subnet management partition command is extended to include a GRH flag. The GRH flag is configured by subnet manager 214 at partition creation time. When a path resolution for a connection specifies the database access partition 204 (see
A management stack 210 (see
The database ACL table is a database table created specifically for the access control system described herein. A PL/SQL package provides the management stack 210 with an API allowing management of this table without exposing internal details of the actual table implementation. Only the management stack 210 will update the database ACL table. A dedicated database service can be created to access the database ACL table. Names of the database services used to access database ACL table should be known to the management stack 210, and are provided either via APIs or configuration files, depending on the management stack deployment option used. The management stack 210 can use a dedicated Management database access partition to access database ACL table, preferably using SQL over TCP. Access to the management database access partition is restricted to the management stack 210 only.
A database listener 546 (see
The system administrator can configure VMs deployed on the middleware machine system compute nodes with access to one or more database services. The database services should be associated with the same tenant that the VM is deployed in and the management stack 210 enforces this restriction. The management stack 210 persists the VMID to database service(s) association in the local database or configuration file. Additionally, the management stack 210 is able to use this information to build/rebuild the database ACL table.
In the ACL, each VM is associated with database services which it is authorized to access based on that VM's unique VMID and the given database service name. The management stack is responsible for tracking the association of VM and VMID, and updating the database ACL table appropriately throughout the VM lifecycle. At VM deployment a new entry carrying the VM UUID is added to the database ACL table by the management stack. This entry will eventually be updated with the VMID and one or more database service names. During subsequent VM life cycle operations an entry might be updated with a new VMID assigned to that VM or new database service(s) with access granted or revoked. The VF is hot-plug attached to the booting VM and each time a given VM is started a different VF can get attached and thus result in a different VMID for the given VM. This change in VMID requires the management stack to update the VMID to database service association in the ACL. This VM entry will remain in the database ACL table until the VM is destroyed. If a VM attempts to access the database before the management stack completes an update of the database ACL table and the update is propagated to all database nodes, and Listeners and IPoIB drivers the VM may be refused access until after the update is complete.
As shown in
At steps 566, 567, 568, upon VM instantiation, the Management stack 210 associates each VM with its VMID and associated the VMID with one or more service names associated with the particular authorized tenants established in step 565, selects a compute node (e.g. 320) for VM deployment and deploys the VM (e.g. VM221a) on the selected compute node. A virtual function VF is assigned and attached to the VM on instantiation and obtains that VM's identifier (VF GUID) from port GUID table 400 of the HCA 326 of the compute node 320 to which the VM 221a is deployed. At steps 569, 570 the management stack 210 updates the database ACL 524 with the association of service name and the VMIDs established in from step 569. Upon update of the database ACL table, the information is propagated to the database nodes (e.g. database node 360), and within each node to the database listeners and IPoIB driver on each node as described in
Note that multiple VMs may be granted access to the each specific database service, and that a single VM may be granted access to multiple database services. The access granted is completely granular as per the ACL table and can be configured as necessary to isolate VMs associated with particular tenants from database services associated with other tenants or to share particular database services between VMs of different tenants as necessary or desirable for the particular service. The system administrator 211 maps database service names to different tenants in a multitenant environment.
The management stack 210 responsible for configuration of the security system may run on a compute node of the middleware machine system 220 and use the InfiniBand fabric 206 for communication with the database nodes in order to retrieve database service configuration information and program the required database ACL tables. The management stack can use a dedicated database management access partition for this purpose. Access to this partition will be granted only to the Management stack, and thus this networking interface on the database nodes does not have to be protected by the security measures described herein. The management stack 210 uses APIs provided by the PL/SQL procedures running on the database nodes and accessible over TCP. These procedures are enhanced to allow access and control of the database ACL table to be performed only via a networking interface associated with the database management access partition. In alternative embodiments, the management stack can be deployed on the database server system 260 or uses Ethernet to communicate with the database nodes, standard Ethernet security mechanisms would be used to ensure secure communication between the management stack 210 and the database nodes.
As described above, VMIDs are embedded in each packet transmitted in the database access partition as part of the GRH.SGID and identify VMs originating the packets. The access control list specifies which VMs can access which services. Access Control is then implemented in the database nodes using the VMIDs provided in the GRH.SGID of each packet and the ACL. The ACL 524 and the sub-tables, such as service VMID List 516 and node ACL 536, can be utilized to provide access control at several different stages in the lifecycle of a connection between a compute node virtual machine and a database service, including Address Resolution, Path Resolution, Connection Establishment and Data Exchange. It should be noted that for the system described above, the access control measures described below need only be performed on the networking interface used for communication between the database nodes and VMs on the compute nodes i.e. the network interface for the database access partition. These access control measures need not be applied to the network interface used for communication between the database nodes and the storage cells i.e. the network interface for the storage access partition. These access control measures also need not be applied to the network interface used for communication between the VMs on compute nodes and VMs on other compute nodes.
Granularity of the access control varies depending on the connection lifecycle phase. During the Address Resolution and Path Resolution phases, the system can control access to the specific database node based on node ACL 536. That is, a virtual machine can be provided address and path information only for database nodes providing one or more database service which the virtual machine is authorized to access. During the Connection Establishment and Data Exchange phases, the system controls access and data transfer between VMs and specific named database services based on the ACL 524 and/or service VMID List 516.
One mechanism implemented in the database nodes for providing access control at a stage in the lifecycle of a connection between a virtual machine and a database service is Address Resolution Access Control. Address Resolution Protocol (ARP) communications are used by the VMs as an initial part of a process for connecting to a database node which provides a particular named database service. ARP is used to resolve IP Address to the hardware address (MAC address in case of Ethernet, or 20 byte IPoIB hardware address defined by IPoIB standard. ARP communications are exchanged between the VMs deployed on the compute nodes and the database nodes using IPoIB communication. VMs send out multicast ARP requests from the compute nodes and database nodes send back unicast ARP responses (if permitted). Both the multicast requests, and the unicast responses exchanged between the database nodes and the VMs are required to carry the global routing header (GRH) and therefore identify the VM by providing the VMID in the GRH.SGID.
Address Resolution access control, is performed by matching the VMID from the GRH.SGID of the incoming Address Resolution Protocol (ARP) requests with the node ACL 536 programmed for the specific database node which identifies VMs authorized to access the database node. As described above, the node ACL 536 is provided to the IPoIB driver 526 on each database node using the sysfs/ioctl interface for the specific IPoIB networking interface. VMIDs can be added or deleted from the node ACL. Thus, the IPoIB driver of each database node is configured with a list of VMIDs of VMs that are allowed access to the database node over a specific networking interface. The IPoIB driver 526 can use the node ACL to perform access control by declining to provide ARP responses to VMs not authorized to access the database node. To put it another way the IPoIB driver 526 does not respond to ARP requests unless the GRH.SGID includes a VMID in the node ACL.
Upon receipt of an ARP request from a VM, the IPoIB Driver 526 of the database node checks the request to verify that a GRH is present in the packet—if there is no GRH, the request is discarded and no response is made. Next the IPoIB Driver 526 of the database node matches the SGID in the GRH of each inbound ARP Request/Response with the node ACL—if there is no match, the request is discarded and no response is made. Next the IPoIB Driver 526 of the database node matches the SGID in the GRH of each inbound ARP Request/Response with the lower 128 bits of the source hardware address from the ARP request/response body, if there is no match, the request is discarded and no response is made. The last check is intended to make sure that the hardware address programmed into the ARP cache carries a valid SGID of the corresponding VM, and can be used for identification of sockets created by the VM. Only if the GRH is present, and the SGID matches the node ACL 536, and the lower 128 bits of the source hardware address from the ARP request/response body is an ARP response sent back to the virtual machine on the compute node.
Thus the ACL controls access to address resolution information to only those VMs identified by SGID in the node ACL 536. Thus, VMs cannot receive address resolution information from database nodes which they are not authorized to access. Consequently, the database nodes (and database services they provide) are effectively “invisible” to VMs which are not authorized to access them according to the node ACL 536.
Another mechanism implemented in the database nodes for providing access control at a stage in the lifecycle of a connection between a virtual machine and a database service is Connection Establishment Access Control. When a VM has located a database service to which it wishes to connect, it will attempt to establish a connection with the database service. A database node performs connection establishment access control using information provided by the Open Fabrics Enterprise Distribution (OFED) which provides an open-source software stack for RDMA and kernel bypass applications. In embodiments, the system is configured such that all communication between a virtual machine on a compute node and a database node, with the exception of ARP traffic and TCP sockets used for control operations, is constrained to the communication over InfiniBand reliable connection transport with packets containing GRH headers. Connection establishment access control is performed by confirming that connection requests do carry GRH headers and that the GRH.SGID identifies a VMID corresponding to a VM which is authorized to access to the specific named database process as indicated by the access control list.
The connection management agent (CMA) can be enhanced to perform additional node-level access control similar to the IPoIB driver for ARPs. For example the CMA can be enhanced such that it does not push events up to the application level in the database node unless the GRH.SGID associated with the MAD matches a VM authorized to access the database node. Adding node-bounded ACL capability to the CMA is particularly useful for handling DoS attacks by pushing attack prevention as close to the node boundaries as possible and avoiding the overhead of providing MADs to the application level for rejection.
However, in some embodiments, the Connection Management Agent (CMA) 622 does not validate access control of the specific VM to the specific database service, relying on a database process in the Application layer 610 to perform this check (such as e.g. DB Instance 506 and/or DB listener 546 of
The application layer consumes events from the OFED stack. The application layer uses the OFED event notification mechanism to establish IB Connections. The Application Layer obtains the VMID of the VM for the specific connection during connection establishment flow as described above. The database process 610 in the application layer then uses the obtained VMID to enforce access control for the individual connection. The application layer determines when and how the VM identity (VMID obtained from the GRH.SGID) provided by the CMA layer in the cma-id is used to control access to the specific database service.
The application layer requires the database service name in addition to the VMID in order to identify which database service a particular compute node VM is trying to gain access to. If this information is not available at connection establishment time, the application can store the VM identity (VMID obtained from the GRH.SGID) make an initial connection and then use the VM identity to validate access permission as soon as the database service name becomes available (dropping the connection if permission is denied). The interface between the OFED stack and the application layer allows the application layer to identify the specific end-point of a connection, and terminate connectivity with the specific end-point based on the access control determination after receiving the database service name. Thus, the application may decide to initially accept the connection, and terminate it at a later stage. This allows the application layer to not rely on the database service name being available prior to connection establishment, and have it obtained as a part of an initial data exchange.
As shown in
Where the VM is not authorized to connect to the database service requested in the CAM MAD, the application prevents creation of a connection context and/or destroys an interim connection context. Thus, using the ACL, Connection Establishment Access Control implemented in the database node can deny connections to unauthorized VMs thereby preventing connections and thus communication between VMs and database services they are not authorized to access per the ACL.
A further mechanism implemented in the database nodes for providing access control at a stage in the lifecycle of a connection between a virtual machine and a database service is data exchange access control. Data exchange access control, is based on the hardware queue pair (QP) context 624 programmed during the connection establishment phase. As described above, as shown in
An HCA that is compliant with the InfiniBand specification must validate that every single packet exchanged on that connection carries the GRH header, and that the GRH.SGID of the incoming packets match the remote peer GID specified in the hardware QP Context. In addition, all sequence number checks and protocol checks would be performed by hardware as well (similar to the TCP flags and sequence number validation for the TCP socket). Enforcement of these requirements ensures on-the-fly access control validation by the HCA hardware of the data transfers between VM and database service on a particular connection without any constraints on the InfiniBand operations performed (including RDMA operations), and without any performance impact.
As shown in
Another mechanism implemented in the database nodes for providing access control at a stage in the lifecycle of a connection between a virtual machine and a database service is IPoIB Access Control. Limited access is enabled for TCP-socket traffic for the specific TCP port used by the database listener 546. However, the OS Stack IP Filter in the database node is configured to exclude unauthorized traffic. IPoIB can be configured for either connected or datagram modes. Each side of an IPoIB communication channel is configured independently, (i.e. one side can be configured to connected mode and another to datagram mode). In embodiments of the present invention, all communication over IPoIB is restricted to connected mode only. This is achieved by configuring the IPoIB driver of the database node to enforce use of connected mode by the remote peer such as a VM on a compute node.
IPoIB performs the following checks upon receiving a packet to guarantee that communication is using connected mode only. Communication over datagram QP should be restricted to ARP packets only—all other packets are discarded. IPoIB only establishes connections with the VMs listed in the database node ACL table. The Connection Management Agent (CMA) provides the IPoIB with address information about the remote peer establishing this connection. Among other address attributes, the CMA will provide an SGID of the peer (VM) as described in Connection Establishment Access Control section. The IPoIB driver should perform the following checks when processing connection establishment events. Obtain the remote end-point address information from the CMA event. Retrieve the VM's SGID from the address information provided in the CMA event. Match the VM's SGID with an ACL list entry and discard the connection establishment event if the VM's SGID does not match with an ACL list entry. This provides enhanced security allowing positive identification of the VM communicating with the database listener 546 in cooperation with the database listener 546 validating that the VM attempting to create a database process connection is allowed access to the specific database service.
Protection against DoS attacks is one of the standard features provided by a conventional Ethernet firewall appliance. In a DoS attack multiple messages are sent to an interface. Even if the messages are rejected the sheer number of the messages and the overhead associated with rejecting the messages overwhelms the resources of the interface so that it cannot be used for legitimate traffic. A DoS attack does not necessarily represent a malicious actor and may be caused e.g. by misconfigured software or an error in hardware or software that causes the repeated messages. The systems and methods of the present invention provide multi-tenant aware, fine-grained database aware access control as described above. Because the access control is performed by the software and hardware of the database nodes, however, the system cannot use standard filtering techniques to address the DoS problem. By the time the attack can be detected by the database node, it is already under attack and has to spend at least some resources rejecting the messages. As described above, the amount or resource expended can be reduced by pushing message control/rejection close to the edge of the node. However it would also be desirable to provide other DoS attack prevention functionality.
Instead of attempting to follow a traditional firewall-based filtering approach, an embodiment of the present invention can take full advantage of being a fully engineered and highly integrated solution to address DoS issues. When components responsible for access control detect repeated attempts by a VM to connect to a database service which it is not authorized to access the components of the integrated system can take actions to remediate and log the access violation. For example, when the database listener 546 detects a repeated access violation it performs the following actions. The database listener 546 logs the access violation. The database listener 546 updates access control filters of other components located lower in the processing stack (e.g. IB Connection Management stack, or IPoIB driver), so consecutive attacks can be stopped on the lower level, closer to the database node boundaries and thus cause less interference with operation of the database node. The database listener 546 also notifies the management stack 210 and provides information about the attack including the GRH.SGID including the VMID identifying the VM which is the source of the attack.
The system provides reliable identification of the virtual machine using the VMID which is embedded into the GRH.SDID of each packet by the HCA of the compute nodes. Thus, the identity of the attacker VM is known to the management stack 210 from the GRH-SGID associated with the attack packets. The management stack can take one or more of actions to stop the attack. For example the management stack can revoke the offending VMs access to the database access partition 204, thus preventing the VM from sending any further packets to the database nodes, Additionally, for example, the management stack can take actions to terminate operation of the VM depending upon the configuration of the management stack, or action taken by the system administrator. In this way the DoS packets can either be prevented from reaching the database nodes or the source of the DoS packets can be deactivated thereby achieving DoS protection functionality without a standard packet filtering firewall appliance.
While various embodiments of the present invention have been described above, it should be understood that they have been presented by way of example, and not limitation. It will be apparent to persons skilled in the relevant art that various changes in form and detail can be made therein without departing from the spirit and scope of the invention.
Many features of the present invention can be performed in, using, or with the assistance of hardware, software, firmware, or combinations thereof. The present invention may be conveniently implemented using one or more conventional general purpose or specialized digital computer, computing device, machine, or microprocessor, including one or more processors, memory and/or computer readable storage media programmed according to the teachings of the present disclosure. Features of the invention may also be implemented in hardware using, for example, hardware components such as application specific integrated circuits (ASICs) and programmable logic device. Implementation of the hardware state machine so as to perform the functions described herein will be apparent to persons skilled in the relevant art.
Features of the present invention can be incorporated in software and/or firmware for controlling the hardware of a processing system, and for enabling a processing system to interact with other mechanisms utilizing the results of the present invention. Such software or firmware may include, but is not limited to, application code, device drivers, operating systems and execution environments/containers. Appropriate software coding can readily be prepared by skilled programmers based on the teachings of the present disclosure, as will be apparent to those skilled in the software art.
In some embodiments, the present invention includes a computer program product which is a storage medium or computer readable medium (media) having instructions stored thereon/in which can be used to program a computer to perform any of the processes of the present invention. The storage medium or computer readable medium can include, but is not limited to, any type of disk including floppy disks, optical discs, DVD, CD-ROMs, microdrive, and magneto-optical disks, ROMs, RAMs, EPROMs, EEPROMs, DRAMs, VRAMs, flash memory devices, magnetic or optical cards, nanosystems (including molecular memory ICs), or any type of media or device suitable for storing instructions and/or data. In embodiments. The storage medium or computer readable medium can be non-transitory.
The foregoing description of the present invention has been provided for the purposes of illustration and description. It is not intended to be exhaustive or to limit the invention to the precise forms disclosed. Many modifications and variations will be apparent to the practitioner skilled in the art. The embodiments were chosen and described in order to best explain the principles of the invention and its practical application, thereby enabling others skilled in the art to understand the invention for various embodiments and with various modifications that are suited to the particular use contemplated. It is intended that the scope of the invention be defined by the following claims and their equivalents.
This application claims priority to U.S. Provisional Patent Application No. 62/048,096, entitled “SYSTEM AND METHOD FOR PROVIDING SECURE COMMUNICATION IN A MULTI-TENANT ENVIRONMENT” filed Sep. 9, 2014, which application is incorporated herein by reference. This application is related to the following patent application, which is hereby incorporated by reference in its entirety: U.S. patent application titled “SYSTEM AND METHOD FOR PROVIDING AN INTEGRATED FIREWALL FOR SECURE NETWORK COMMUNICATION IN A MULTI-TENANT ENVIRONMENT”, application Ser. No. ______, filed ______ (ORACL-05564US1).
Number | Date | Country | |
---|---|---|---|
62048096 | Sep 2014 | US |