Commit Graph

306 Commits

Author SHA1 Message Date
Peter Hamilton 77f1b1223c Merge pull request #155 from OpenKMIP/maint/add-server-deprecate
Adding a pending deprecation warning to old server
2016-04-04 15:58:54 -04:00
Peter Hamilton ef92ee8ff7 Merge pull request #154 from OpenKMIP/feat/link-session-engine
Integrating the KmipEngine with the KmipSession
2016-04-04 10:58:16 -04:00
Peter edf4e4dcc9 Integrating the KmipEngine with the KmipSession
This change adds KmipEngine support to the KmipSession. The session will
now pass on received requests for processing by the engine, handling any
results or errors that occur. The KmipSession test suite has been
updated to reflect this change.
2016-04-04 10:48:53 -04:00
Peter Hamilton 2b67689057 Merge pull request #153 from OpenKMIP/feat/link-server-logs
Linking the loggers for the different KmipServer components
2016-04-04 10:47:14 -04:00
Peter e01a9142e5 Linking the loggers for the different KmipServer components
This change renames the loggers for different KmipServer components,
ensuring that all server logs are processed by the same kmip.server
logger.
2016-04-04 10:39:06 -04:00
Peter Hamilton 6a3200f8c1 Merge pull request #152 from OpenKMIP/feat/add-kmip-server
Adding the KmipServer
2016-04-04 08:44:29 -04:00
Peter ab17f672ce Adding a pending deprecation warning to old server
This change adds a simple warning that is triggered whenever the
KMIPServer class is instantiated. It advises the user to use the newer
KmipServer class. The KMIPServer will be removed in a future version of
PyKMIP.
2016-03-31 10:47:11 -04:00
Peter 702ba77715 Adding the KmipServer
This change adds the KmipServer, the front-end of the KMIP software
server. The KmipServer is in charge of loading configuration settings,
creating all major server components, and serving and managing client
connections. A KmipServerConfig tool is included to handle configuration
settings. Test cases for all new code are included.
2016-03-30 16:55:44 -04:00
Peter Hamilton a3da0c6d46 Merge pull request #148 from OpenKMIP/feat/add-kmip-engine-create-key-pair
Adding KmipEngine support for CreateKeyPair
2016-03-29 08:26:44 -04:00
Peter 934fc7b93e Adding KmipEngine support for CreateKeyPair
This change adds support for the CreateKeyPair operation to the
KmipEngine. New exceptions and test cases are included.
2016-03-29 08:09:29 -04:00
Peter Hamilton 23b27590f8 Merge pull request #147 from OpenKMIP/feat/add-kmip-engine-create
Adding KmipEngine support for Create
2016-03-29 08:07:02 -04:00
Peter 22b8a84361 Adding KmipEngine support for Create
This change adds support for the Create operation to the KmipEngine. New
exceptions and test cases are included.
2016-03-29 07:57:18 -04:00
Peter Hamilton 8cc7c5f8e0 Merge pull request #149 from viktorTarasov/fix/session/session_name
fix: session: 'expected str instance, NoneType found'
2016-03-28 16:47:24 -04:00
Viktor Tarasov d996c268df fix session: 'expected str instance, NoneType found'
When KmipSession instantiated without session name there is error:
File ".../PyKMIP/kmip/services/server/session.py", line 57, in __init__
    self._logger = logging.getLogger('.'.join((__name__, name)))
TypeError: sequence item 1: expected str instance, NoneType found
2016-03-28 22:01:28 +02:00
Peter Hamilton 995d458654 Merge pull request #146 from OpenKMIP/feat/add-kmip-engine-register
Adding KmipEngine support for Register
2016-03-25 09:40:29 -04:00
Peter Hamilton 840aed7107 Merge pull request #145 from OpenKMIP/feat/add-attribute-policy
Adding an AttributePolicy system
2016-03-23 07:59:59 -04:00
Peter 89cba73821 Adding KmipEngine support for Register
This change adds support for the Register operation to the KmipEngine.
New exceptions and test cases are included.
2016-03-21 11:22:47 -04:00
Peter 0a499b7b12 Adding an AttributePolicy system
This change adds a policy system that will be used by the KmipEngine to
track and organize rules for individual KMIP attributes. Comparison
operators for the Integer primitive and ProtocolVersion struct are added
to support the AttributePolicy. Tests for all new changes are included.
2016-03-21 11:22:07 -04:00
Peter 07a63c07c8 Adding an AttributePolicy system
This change adds a policy system that will be used by the KmipEngine to
track and organize rules for individual KMIP attributes. Comparison
operators for the Integer primitive and ProtocolVersion struct are added
to support the AttributePolicy. Tests for all new changes are included.
2016-03-21 11:11:46 -04:00
Peter Hamilton 9e074da553 Merge pull request #133 from viktorTarasov/feature/attributes/eq-for-name
attributes: 'eq' and 'repr' methods for Name attr.
2016-03-18 12:55:56 -04:00
Peter Hamilton abd11c6327 Merge pull request #110 from viktorTarasov/feature/services-server-use-EOF
services/server: use EOF exception
2016-03-18 12:54:33 -04:00
Peter Hamilton 20f078a6d8 Merge pull request #144 from OpenKMIP/feat/add-kmip-engine-get
Adding KmipEngine support for Get
2016-03-18 12:48:01 -04:00
Peter 6ecbe7bdda Adding KmipEngine support for Get
This change adds support for the Get operation to the KmipEngine. New
exceptions and test cases are included.
2016-03-15 16:15:35 -04:00
Peter Hamilton 9059172a08 Merge pull request #143 from OpenKMIP/feat/add-kmip-engine-destroy
Adding KmipEngine support for Destroy
2016-03-15 16:14:13 -04:00
Peter 27befcb85c Adding KmipEngine support for Destroy
This change adds support for the Destroy operation to the KmipEngine.
New exceptions and test cases are included.
2016-03-14 08:21:27 -04:00
Peter Hamilton 81222e23f1 Merge pull request #142 from OpenKMIP/dev/add-kmip-engine
Adding the KmipEngine
2016-03-14 08:18:45 -04:00
Peter 55113a70f8 Adding the KmipEngine
This change adds the KmipEngine, the core processing component of the
KmipServer. The KmipEngine contains the KMIP application logic and
handles process request messages by batch. The engine handles logging
and error handling throughout the processing stack.
    
New server exceptions are added to handle new error cases. A test suite
is included.
2016-03-08 15:15:17 -05:00
Peter Hamilton 0a7b0262a6 Merge pull request #98 from hadesto/dev/hadi/tests/objects-attribute
Add Attribute class unit tests
2016-03-03 10:20:51 -05:00
Hadi Esiely a7c41c758b Add Attribute class unit tests
This pull request:

- Adds the comparison operators to the following classes:

 -- Attribute.AttributeName class

- Fixes bug in the "_create_cryptographic_parameters" function when "None" type parameters are used

- Adds read, write, and comparator unit tests for the Attribute class in the /kmip/core/objects.py file

Signed-off-by: Hadi Esiely <hadi.esiely-barrera@jhuapl.edu>
2016-03-01 10:53:29 -05:00
Viktor Tarasov c8d928d95a attributes: 'eq' and 'repr' methods for Name attr.
'eq', 'repr' and 'str' method are added to
Name, NameValue and NameType classes
2016-02-24 10:33:17 +01:00
Peter Hamilton 79696e3ef5 Merge pull request #129 from viktorTarasov/feature/discover-versions/demos
'protocol-versions' option for 'discover-versions' demo
2016-02-23 15:57:05 -05:00
Viktor Tarasov 8b877fd4d2 services/server: use EOF exception ...
... to gently indicate the end of request processing

Introduce 'RequestLengthMismatch' exception  dedicated for the
unexpected result of 'read' request operation

Unit tests for kmip-protocol
2016-02-23 12:51:40 +01:00
Viktor Tarasov ecca9552d3 demos: 'versions' argument for 'discover-versions' demo 2016-02-23 11:57:28 +01:00
Peter Hamilton 7b472b752b Merge pull request #132 from viktorTarasov/fix/request-payload/missing-argument-for-read-call
payload/locate: missing argument in 'read' calls
2016-02-22 10:49:55 -05:00
Peter Hamilton cfb85190fa Merge pull request #128 from viktorTarasov/feature/discover-versions/server
server: implement 'discover-versions'
2016-02-22 10:46:41 -05:00
Peter Hamilton c4625f586e Merge pull request #139 from OpenKMIP/feat/sqlalchemy-cert
Added SQLAlchemy Code for X509 Certificates
2016-02-22 10:43:50 -05:00
Nathan Reller 043553c0e0 Added SQLAlchemy Code for X509 Certificates
The code for persisting X509 certificates in a database has been added
along with the corresponding unit tests.
2016-02-19 14:05:00 -05:00
Peter Hamilton 3a4de2121d Merge pull request #137 from OpenKMIP/feat/sqlalchemy-cert
Added Class Type to Managed Object
2016-02-19 13:58:14 -05:00
Nathan Reller 771aea7b80 Added Class Type to Managed Object
SQLAlchemy requires a unique identifier for classes when using the
join table inheritence strategy. Previous commits were reusing the
object_type attribute of ManagedObject, but this strategy does not
work for classes that are subclasses of an object. This will be the
case for the Certificate object type because one such subclass will be
X509Certificate.
2016-02-19 11:50:08 -05:00
Peter Hamilton e967bb056d Merge pull request #136 from OpenKMIP/feat/sqlalchemy-secret
Added SQLAlchemy Code for Secret Data
2016-02-19 11:36:06 -05:00
Peter Hamilton 81bb1f5adb Merge pull request #135 from OpenKMIP/feat/sqlalchemy-asymmetric
feat/sqlalchemy asymmetric
2016-02-19 11:02:12 -05:00
Nathan Reller c3680f7609 Added SQLAlchemy Code for Asymmetric Keys
The code for persisting public and private keys in a database has been
added along with the corresponding unit tests.
2016-02-19 10:38:24 -05:00
Nathan Reller 8d6575fa36 Added SQLAlchemy Code for Secret Data
The SecretData class has the SQLAlchemy code in it to allow it be
stored in the database using the library.
2016-02-19 10:33:36 -05:00
Peter Hamilton 5e52f9d943 Merge pull request #127 from OpenKMIP/feat/sqlalchemy-key
feat/sqlalchemy key
2016-02-19 10:26:34 -05:00
Nathan Reller c21f07634b Added SQLAlchemy Code for Symmetric Key
The code for persisting symmetric keys in a database has been added
along with the corresponding unit tests.

The usage mask list for cryptographic objects is stored as an integer bitmask.
The conversion takes place with a new SQLAlchemy type.

Switched ManagedObject value type to VARBINARY. This prevents errors from
occuring when trying to convert to a string.
2016-02-19 09:23:51 -05:00
Viktor Tarasov c9df034e48 server: implement 'discover-versions' 2016-02-18 14:35:30 +01:00
Peter Hamilton 4d6caf1de7 Merge pull request #130 from viktorTarasov/fix/payload-storage-mask
service/server: fix Locate.Payload member name
2016-02-17 14:16:05 -05:00
Peter Hamilton 5eb1625a23 Merge pull request #131 from viktorTarasov/feature/utils/log-skey
utils: log symmetric key
2016-02-17 13:00:53 -05:00
Peter Hamilton b94bdedacf Merge pull request #126 from OpenKMIP/feat/sqlalchemy-secretdata
Added SQLAlchemy Code to OpaqueData
2016-02-17 12:59:47 -05:00
Viktor Tarasov e0ea25a2c6 payload/locate: missing argument in 'read' calls
missing 'object_group_member' in request payload
2016-02-17 17:54:25 +01:00