Commit Graph

375 Commits

Author SHA1 Message Date
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
Viktor Tarasov 8fe44e0e92 utils: log symmetric key 2016-02-17 17:40:50 +01:00
Viktor Tarasov 2b9d19c35f service/server: fix Locate.Payload member name 2016-02-17 17:26:10 +01:00
Nathan Reller e7a383cace Added SQLAlchemy Code to OpaqueData
Added the ORM code to be able to persist OpaqueData in a database.
This added the code to the base class ManagedObject as well. Unit
tests are added to demonstrate the code is working correctly.
2016-02-16 14:53:45 -05:00
Peter Hamilton 52c7103681 Merge pull request #123 from OpenKMIP/feat/add-kmip-session
Adding KmipSession
2016-02-15 09:25:14 -05:00
Peter Hamilton 92c7358237 Merge pull request #122 from OpenKMIP/feat/add-auth-suites
Adding KMIP authentication suites
2016-02-15 09:20:46 -05:00
Peter d316d29b60 Adding KmipSession
This change adds a KmipSession class that manages individual
client/server connections in a thread of execution separate from the
main thread. A test suite is included.
2016-02-09 18:05:57 -05:00
Peter Hamilton a0423352ab Merge pull request #115 from hadesto/dev/hadi/unit_tests/kmip_client/server_failover_release
Server Failover Unit Tests
2016-02-09 15:09:19 -05:00
Hadi Esiely bd9ac1c521 Server Failover Unit Tests
This pull request adds some unit tests for the server failover code that was recently merged.

Signed-off-by: Hadi Esiely <hadi.esiely-barrera@jhuapl.edu>
2016-02-09 14:13:22 -05:00
Peter a1fa021af3 Adding KMIP authentication suites
This change adds KMIP authentication suites, which define the TLS
protocols and cipher suites to use for establishing secure network
connections compliant with the KMIP specification. Test suites are
included.
2016-02-05 13:29:05 -05:00
Peter Hamilton 542fa16f1f Merge pull request #121 from OpenKMIP/feat/add-cryptography-engine
Adding the CryptographyEngine
2016-02-05 12:47:15 -05:00
Peter 53d6b1776e Adding the CryptographyEngine
This changes adds the CryptographyEngine, which uses pyca/cryptography
to create symmetric and asymmetric keys. A test suite is included.
2016-01-29 13:29:36 -05:00
Peter Hamilton 9d02201178 Merge pull request #120 from OpenKMIP/dev/add-cryptographic-engine-api
Adding server.crypto package and initial API
2016-01-29 13:27:14 -05:00
Peter Hamilton 180ed2ecd1 Merge pull request #114 from hadesto/dev/hadi/sphinx/release
Addition of Sphinx documentation engine
2016-01-29 13:26:52 -05:00
Hadi Esiely a69477f2fd Addition of Sphinx documentation engine
This feature adds support for Sphinx automatic documentation. It can now be used as part of the tox environment.

Signed-off-by: Hadi Esiely <hadi.esiely-barrera@jhuapl.edu>
2016-01-25 17:57:53 -05:00
Peter Hamilton 4c12eb65c6 Merge pull request #118 from OpenKMIP/maint/add-py26-deprecation-warning
Adding pending deprecation warning for Python2.6
2016-01-22 11:19:53 -05:00
Peter 54b446f2d5 Adding server.crypto package and initial API
This changes adds the kmip.services.server.crypto package and the
initial API for the CryptographicEngine hierarchy.
2016-01-18 16:36:52 -05:00
Peter faf5634cc0 Merge branch 'maint/add-py26-deprecation-warning' of https://github.com/OpenKMIP/PyKMIP into maint/add-py26-deprecation-warning
Conflicts:
	kmip/__init__.py
2016-01-14 16:42:10 -05:00
Peter b7add2179d Adding pending deprecation warning for Python2.6
This change add a simple warning that is triggered whenever Python
2.6 is used with PyKMIP. It simply advises the user to use a newer
version of Python. For now, Python 2.6 can still be used with
PyKMIP.
2016-01-14 16:39:52 -05:00
Peter 8ca3d59e37 Adding pending deprecation warning for Python2.6
This change add a simple warning that is triggered whenever Python
2.6 is used with PyKMIP. It simply advises the user to use a newer
version of Python. For now, Python 2.6 can still be used with
PyKMIP.
2016-01-14 10:52:06 -05:00
Peter Hamilton 44f5b1978b Merge pull request #119 from OpenKMIP/bug/fix-binary-operator-line-break
Fixing line break style error
2016-01-14 10:50:43 -05:00
Peter fee1157ee7 Fixing line break style error
This change fixes a minor style error where a line break was used
before a binary operator in an if-statement.
2016-01-14 10:44:08 -05:00
Peter Hamilton b07008c396 Merge pull request #109 from viktorTarasov/bug/integration-tests-fix-path-to-server-module
test/integration: fix path to 'kmip_server' module
2015-12-11 13:06:43 -05:00
Viktor Tarasov d83e0a3416 test/integration: fix path to 'kmip_server' module 2015-12-11 16:40:31 +01:00
Peter Hamilton 2e56e2ef5b Merge pull request #108 from spencerjackson/bug/fix-BatchErrorContinuationOption-enum
Fix BatchErrorContinuation message initialization
2015-12-10 14:06:30 -05:00
Spencer Jackson 1ae87789ef Fix BatchErrorContinuation message initialization 2015-12-10 12:40:37 -05:00
Peter Hamilton a7a3b958d0 Merge pull request #106 from OpenKMIP/ver/prep-release-0-4-1
PyKMIP - Release 0.4.1
2015-12-03 09:52:17 -05:00
Peter Hamilton 4fe8e282c1 Merge pull request #104 from OpenKMIP/bug/fix-integration-test-enums
Fixing broken GetAttributeList integration test
2015-12-02 15:37:02 -05:00
Peter Hamilton edb215311b PyKMIP - Release 0.4.1
This update includes several new features:
* Add support for the GetAttributeList operation
* Add integration with Travis CI, Codecov/Coveralls, and Bandit
* Add client/server failover support using multiple IP addresses
* Add additional attribute unit tests
* Update implementations of KMIP primitives
* Reorganize server code to prepare for refactoring
* Remove use of exec when handling library version numbers
* Remove broken server script
2015-12-02 12:49:59 -05:00
Peter Hamilton 9092a30777 Merge pull request #105 from OpenKMIP/maint/add-bandit-to-default-tox
Adding bandit to the default tox routine
2015-12-02 12:27:17 -05:00
Peter Hamilton 5396e9098b Adding bandit to the default tox routine 2015-12-02 12:20:42 -05:00
Peter Hamilton ad6ec69848 Fixing broken GetAttributeList integration test 2015-12-02 12:08:47 -05:00