The following spec defines what each project's doc/source directory is supposed to look like: https://specs.openstack.org/openstack/docs-specs/specs/pike/os-manuals-migration.html I had not yet moved existing content to follow this design. This patch does that, moving the devref to the 'contributor' directory. It also moves the CLI related documentation into the 'cli' directory. I have updated the autodoc generation to now create the api documentation in 'doc/source/contributor/api'. This patch also creates a template for future documentation contribution. I have created all of the directories recommended by the spec and have included documentation as to what should go in each directory. The index file is updated to point at the new locations for existing content. 'doc/.gitignore' is updated so that it won't complain about the automatically generated 'doc/contributor/api' directory. Change-Id: I55c50fa0b7c1d06c91e40dbcfd11b1c8e8378aa6
8.0 KiB
Authentication and Authorization
The cinder.api.middleware.auth
Module
cinder.api.middleware.auth
The cinder.quota
Module
cinder.quota
Tests
The middleware.test_auth
Module
cinder.tests.unit.api.middleware.test_auth
The test_quota
Module
cinder.tests.unit.test_quota
The test_quota_utils
Module
cinder.tests.unit.test_quota_utils
Legacy Docs
Cinder provides RBAC (Role-based access control) of the AWS-type APIs. We define the following roles:
Roles-Based Access Control of AWS-style APIs using SAML Assertions “Achieving FIPS 199 Moderate certification of a hybrid cloud environment using CloudAudit and declarative C.I.A. classifications”
Introduction
We will investigate one method for integrating an AWS-style API with US eAuthentication-compatible federated authentication systems, to achieve access controls and limits based on traditional operational roles. Additionally, we will look at how combining this approach, with an implementation of the CloudAudit APIs, will allow us to achieve a certification under FIPS 199 Moderate classification for a hybrid cloud environment.
Relationship of US eAuth to RBAC
Typical implementations of US eAuth authentication systems are structured as follows:
[ MS Active Directory or other federated LDAP user store ]
--> backends to…
[ SUN Identity Manager or other SAML Policy Controller ]
--> maps URLs to groups…
[ Apache Policy Agent in front of eAuth-secured Web Application ]
In more ideal implementations, the remainder of the application-specific account information is stored either in extended schema on the LDAP server itself, via the use of a translucent LDAP proxy, or in an independent datastore keyed off of the UID provided via SAML assertion.
Roles
AWS API calls are traditionally secured via Access and Secret Keys, which are used to sign API calls, along with traditional timestamps to prevent replay attacks. The APIs can be logically grouped into sets that align with five typical roles:
- Base User
- System Administrator/Developer (currently have the same permissions)
- Network Administrator
- Project Manager
- Cloud Administrator/IT-Security (currently have the same permissions)
There is an additional, conceptual end-user that may or may not have API access:
- (EXTERNAL) End-user / Third-party User
Basic operations are available to any :
- Describe Instances
- Describe Images
- Describe Volumes
- Describe Keypairs
- Create Keypair
- Delete Keypair
- Create, Upload, Delete: Buckets and Keys (Object Store)
System Administrators/Developers/Project Manager:
- Create, Attach, Delete Volume (Block Store)
- Launch, Reboot, Terminate Instance
- Register/Unregister Machine Image (project-wide)
- Request / Review CloudAudit Scans
Project Manager:
- Add and remove other users (currently no api)
- Set roles (currently no api)
Network Administrator:
- Change Machine Image properties (public / private)
- Change Firewall Rules, define Security Groups
- Allocate, Associate, Deassociate Public IP addresses
Cloud Administrator/IT-Security:
- All permissions
Enhancements
- SAML Token passing
- REST interfaces
- SOAP interfaces
Wrapping the SAML token into the API calls. Then store the UID (fetched via backchannel) into the instance metadata, providing end-to-end auditability of ownership and responsibility, without PII.
CloudAudit APIs
- Request formats
- Response formats
- Stateless asynchronous queries
CloudAudit queries may spawn long-running processes (similar to launching instances, etc.) They need to return a ReservationId in the same fashion, which can be returned in further queries for updates. RBAC of CloudAudit API calls is critical, since detailed system information is a system vulnerability.
Type declarations
- Data declarations – Volumes and Objects
- System declarations – Instances
Existing API calls to launch instances specific a single, combined “type” flag. We propose to extend this with three additional type declarations, mapping to the “Confidentiality, Integrity, Availability” classifications of FIPS 199. An example API call would look like:
RunInstances type=m1.large number=1 secgroup=default key=mykey confidentiality=low integrity=low availability=low
These additional parameters would also apply to creation of block storage volumes (along with the existing parameter of ‘size’), and creation of object storage ‘buckets’. (C.I.A. classifications on a bucket would be inherited by the keys within this bucket.)
Request Brokering
- Cloud Interop
- IMF Registration / PubSub
- Digital C&A
Establishing declarative semantics for individual API calls will allow the cloud environment to seamlessly proxy these API calls to external, third-party vendors – when the requested CIA levels match.
See related work within the Infrastructure 2.0 working group for more information on how the IMF Metadata specification could be utilized to manage registration of these vendors and their C&A credentials.
Dirty Cloud - Hybrid Data Centers
- CloudAudit bridge interfaces
- Anything in the ARP table
A hybrid cloud environment provides dedicated, potentially co-located physical hardware with a network interconnect to the project or users’ cloud virtual network.
This interconnect is typically a bridged VPN connection. Any machines that can be bridged into a hybrid environment in this fashion (at Layer 2) must implement a minimum version of the CloudAudit spec, such that they can be queried to provide a complete picture of the IT-sec runtime environment.
Network discovery protocols (ARP, CDP) can be applied in this case, and existing protocols (SNMP location data, DNS LOC records) overloaded to provide CloudAudit information.
The Details
- Preliminary Roles Definitions
- Categorization of available API calls
- SAML assertion vocabulary
System limits
The following limits need to be defined and enforced:
- Total number of instances allowed (user / project)
- Total number of instances, per instance type (user / project)
- Total number of volumes (user / project)
- Maximum size of volume
- Cumulative size of all volumes
- Total use of object storage (GB)
- Total number of Public IPs
Further Challenges
- Prioritization of users / jobs in shared computing environments
- Incident response planning
- Limit launch of instances to specific security groups based on AMI
- Store AMIs in LDAP for added property control