Commit Graph

414 Commits

Author SHA1 Message Date
Peter Hamilton d600a47b3c Merge pull request #240 from OpenKMIP/bug/fix-cert-identity
Fixes a mismapped polymorphic identity for X509Certificate objects
2017-01-04 12:52:16 -05:00
Peter Hamilton 36f0583adf Fixes a mismapped polymorphic identity for X509Certificate objects
This change updates the polymorphic identity used by
X509Certificate objects. The original identity was already used by
the base Certificate object, causing sqlalchemy to raise a warning
when used. This change resolves the identity reassignment and
prevents the warning from being displayed.
2017-01-04 12:01:39 -05:00
Peter Hamilton bbc4c7060d Merge pull request #239 from OpenKMIP/bug/fix-server-mock-open
Fixes how open is mocked in the server test suite
2017-01-04 11:51:04 -05:00
Peter Hamilton 239ec7102d Fixes how open is mocked in the server test suite
This change updates how the built-in open function is mocked in
the PyKMIP server test suite. On some platforms the old approach
was insufficient. This change explicitly references the builtins
module for Python3+, removing the old module-based mock.
2017-01-04 11:29:30 -05:00
Peter Hamilton 6374f914a0 Merge pull request #236 from OpenKMIP/bug/fix-sqlite-backend-multithread
Fixing a bug with multithreading support with the SQLite backend
2016-12-17 15:22:25 -05:00
Peter Hamilton b1f73d811c Fixing a bug with multithreading support with the SQLite backend
This change fixes a bug that could occur when accessing the server
with multiple threads or processes. The SQLite backend by default
does not support multithreading. This change updates how the
SQLite backend is instantiated, preventing error generation when
using multiple clients simultaenously. The server unit test suite
has been updated to cover the change.
2016-12-17 14:57:38 -05:00
Peter Hamilton 3d3c162533 Merge pull request #235 from OpenKMIP/feat/prep-version-0.6.0
PyKMIP - Release 0.6.0
2016-12-14 15:07:11 -05:00
Peter Hamilton 0df3866837 PyKMIP - Release 0.6.0
This update includes new operations and features for the clients
and server, in addition to other minor updates and bug fixes:

* Add support for Python 3.5
* Add support for the State and OperationPolicyName attributes
* Add server support for the Activate and GetAttributes operations
* Add server support for certificate-based client authentication
* Add server support for object access control via operation policy
* Add server support for loading of user-defined operation policies
* Add client support for the GetAttributes operation
* Update clients to support operation policy names with objects
* Update ProxyKmipClient to support names when creating new objects
* Remove coveralls integration
* Fix bug with server termination on missing request credential
* Fix bug with closing the client while unconnected to a server
* Fix bug with default values overriding server conf file settings
* Fix bug with early server termination on bad client certificates
* Fix bug with deprecated usage of the bandit config file
* Fix bug with ProxyKmipClient registering unset object attributes
2016-12-14 14:55:58 -05:00
Peter Hamilton c3b66b1805 Merge pull request #232 from OpenKMIP/feat/enable-activate
Updating server to enable the Activate operation
2016-12-07 19:38:13 -05:00
Peter Hamilton 065cc0cec1 Updating server to enable the Activate operation
This change updates the PyKMIP server to enable the Activate
operation. Server unit tests are updated to account for this
change.
2016-12-07 19:27:05 -05:00
Peter Hamilton 131addf967 Merge pull request #231 from OpenKMIP/bug/handle-missing-object-attribute
Updating the server to handle errors during attribute lookup
2016-12-07 19:25:21 -05:00
Peter Hamilton f86c08ad3c Merge pull request #230 from OpenKMIP/feat/update-readme-for-0.6.0
Updating README in preparation for the 0.6.0 release
2016-12-07 15:04:45 -05:00
Peter Hamilton d6111093a2 Updating README in preparation for the 0.6.0 release 2016-12-07 14:35:11 -05:00
Peter Hamilton 49d0f366fc Merge pull request #229 from OpenKMIP/bug/fix-client-attribute-handling
Fixing a bug with attribute handling in ProxyKmipClient.register
2016-12-07 10:52:42 -05:00
Peter Hamilton 9738c2ba7f Fixing a bug with attribute handling in ProxyKmipClient.register
This change fixes a bug in the ProxyKmipClient, specifically in
the register method. The client would create attributes for the
object to register, regardless if those attributes were set on
the object. This could cause attribute value overwrites, deleting
valid default values with empty values. This change adds checks
to ensure these attributes are not created with the request if
they are not set on the object. The client unit tests have been
updated to reflect this change.
2016-12-07 09:57:57 -05:00
Peter Hamilton e2841f1ee5 Updating the server to handle errors during attribute lookup
This change updates the server to better handle exceptions thrown
while looking up the value of different attributes on managed
objects. Some managed objects in PyKMIP don't currently support
attributes they are supposed to. This can cause lookup errors
when using GetAttributes. This change suppresses any exceptions
and simply returns None for the missing attribute value. The
server unit tests have been updated to account for this change.
2016-12-07 09:13:38 -05:00
Peter Hamilton bd76dc280b Merge pull request #228 from OpenKMIP/feat/add-get-attributes-to-client
Adding GetAttributes support to the PyKMIP clients
2016-12-06 20:53:53 -05:00
Peter Hamilton fc0d95ebb9 Adding GetAttributes support to the PyKMIP clients
This change adds support for the GetAttributes operation to the
PyKMIP clients. Demo scripts showing how to use the new operation
will be included in a future update. Client test cases have been
added and updated to reflect the new operation.
2016-12-06 20:42:17 -05:00
Peter Hamilton ccd66c5062 Merge pull request #221 from OpenKMIP/feat/add-get-attributes-to-server
Adding server support for the GetAttributes operation
2016-12-06 20:36:52 -05:00
Peter Hamilton c59cfeeef9 Adding server support for the GetAttributes operation
This change adds server support for the GetAttributes operation.
The user can specify an object ID and an attribute list to get
the values of the attributes listed from the specified object.
The user can also omit either argument; the server will default
to using the ID placeholder and all viable attributes respectively.
Only a subset of the standard attributes are supported right now.
New tests have been added to cover the new feature.

Closes #185
Closes #211
Closes #218
2016-12-06 20:24:29 -05:00
Peter Hamilton c92579d50a Merge pull request #227 from OpenKMIP/maint/remove-coveralls
Removing coveralls integration
2016-12-06 20:23:50 -05:00
Peter Hamilton 264ef64e0b Merge pull request #226 from OpenKMIP/bug/fix-textstring-write-value
Removing TextString check to encode characters when writing bytes
2016-12-06 20:23:39 -05:00
Peter Hamilton 0308f258a3 Removing coveralls integration
This change removes coveralls integration from PyKMIP, specifically
the tox and TravisCI configuration files. codecov will be the
primary coverage tool used going forward.
2016-12-06 15:00:23 -05:00
Peter Hamilton 7ee336ad56 Merge pull request #225 from OpenKMIP/bug/fix-factory-support-for-object-type
Updating the attribute value factory to support ObjectType values
2016-12-06 14:41:09 -05:00
Peter Hamilton 843df7d2b1 Removing TextString check to encode characters when writing bytes
This change removes extraneous code in the TextString primitive
that would conditionally encode the individual string characters
depending upon the version of Python being used. This code caused
errors when using Unicode strings in Python 2.7 and below.
2016-12-06 14:32:22 -05:00
Peter Hamilton 27140daa78 Updating the attribute value factory to support ObjectType values
This change updates the attribute value factory to allow for the
creation of ObjectType attributes with values provided by the
caller. Unit tests have been added to cover this change.
2016-12-06 14:15:16 -05:00
Peter Hamilton c5da606b48 Merge pull request #224 from jseadragon/add_name_argument
Add optional 'name' argument to create and create_key_pair functions
2016-12-05 16:01:12 -05:00
Jonathan Seawright 10030cd173 Fix pep8 errors 2016-12-05 13:29:09 -06:00
Jonathan Seawright 7b25780a4e Created test suite for `attribute_factory`
Resolves CR changes for #208
2016-12-05 13:14:22 -06:00
Jonathan Seawright 9ba479e4d3 Add optional 'name' argument to create and create_key_pair functions
The ProxyKmipClient now allows you to optionally provide a name
when performing a `Create` or a `Create Key Pair`. If not specified,
the name is excluded from the request.

 * For `create`, users specify `name`
 * For `create_key_pair`, users specify `private_name` and `public_name`

Resolves #208
2016-12-03 21:37:35 -06:00
Peter Hamilton d1b01b75f9 Merge pull request #223 from OpenKMIP/maint/update-gitignore
Updating .gitignore to ignore build directories
2016-12-02 14:30:58 -05:00
Peter Hamilton cc3c224f54 Updating .gitignore to ignore build directories 2016-12-02 13:54:21 -05:00
Peter Hamilton 4ac272f3c1 Merge pull request #222 from OpenKMIP/maint/fix-bandit-error
Updating bandit usage with PyKMIP and removing bandit config
2016-12-02 13:51:44 -05:00
Peter Hamilton dcbddd8b82 Updating bandit usage with PyKMIP and removing bandit config
This change updates how bandit is used with PyKMIP, removing the
need for a bandit configuration file and instead opting for the
default bandit functionality. bandit is applied across the entire
project structure except for the tests directory.
2016-12-02 10:39:38 -05:00
Peter Hamilton 243d5aa9c3 Merge pull request #220 from OpenKMIP/bug/fix-server-failure-on-bad-cert
Fixes premature server shutdown on receiving invalid certificate
2016-12-01 15:02:39 -05:00
Peter Hamilton 94aacc1897 Fixes premature server shutdown on receiving invalid certificate
This change fixes a bug with the server where the server would
prematurely shutdown upon receiving a client connection using an
invalid certificate. The server will now withstand bad client
connections. The impacted server unit tests have been updated to
reflect the bug fix.
2016-12-01 14:40:30 -05:00
Peter Hamilton cba8757f63 Merge pull request #219 from OpenKMIP/bug/fix-server-config-override
Fixes configuration settings override by default script values
2016-12-01 12:34:36 -05:00
Peter Hamilton 38e7635fc7 Fixes configuration settings override by default script values
This change fixes a bug with parameter handling when invoking
the server's main routine. The default values provided for the
parameters would override any configuration file settings if
the main routine was used to run the server. To fix this, the
default values were removed, requiring the user to explicitly
specify parameter values if they want them to override the
configuration settings. The parameter doc strings have been
updated to match these changes.

Fixes #217
2016-12-01 11:44:43 -05:00
Peter Hamilton 5c50ec73fe Merge pull request #216 from OpenKMIP/feat/update-payload-factories
Updating payload factories to reflect new KMIP operations
2016-11-29 15:49:38 -05:00
Peter Hamilton 181b34b6cb Updating payload factories to reflect new KMIP operations
This change updates the payload factories, adding placeholder
support for operations added in KMIP 1.3. It also updates old
placeholders with now supported payloads. The corresponding
unit test suites have been updated to match the additions.
2016-11-29 15:42:05 -05:00
Peter Hamilton fa48509c95 Merge pull request #215 from OpenKMIP/bug/fix-conf-policy-path
Updating the server to allow optional policy_path values
2016-11-28 14:03:26 -05:00
Peter Hamilton 381e072bb7 Updating the server to allow optional policy_path values
This change updates the server, updating how it processes config
values and allowing it to handle optional or ommitted policy_path
values. This fixes a bug where users could not leave the
policy_path config file unset, in addition to a bug that forced
users to use '/etc/pykmip/policies' as their policy directory.

Fixes #210
2016-11-28 13:49:19 -05:00
Peter Hamilton 023bb8fd04 Merge pull request #214 from OpenKMIP/feat/add-get-attributes-payloads
Adding payloads for the GetAttributes operation
2016-11-27 21:05:59 -05:00
Peter Hamilton 0b69a0ac17 Adding payloads for the GetAttributes operation
This change adds the request and response payloads needed for the
GetAttributes operation. Test cases included.
2016-11-27 12:33:33 -05:00
Peter Hamilton ccf5c41e79 Merge pull request #213 from OpenKMIP/feat/update-attribute
Adding string utilites to the Attribute object
2016-11-27 12:30:34 -05:00
Peter Hamilton b36c730f22 Adding string utilites to the Attribute object
This change adds str and repr utilities to the Attribute object. A
new test suite for Attribute object tests is included, however only
the tests for the string utilities are included with this patch.
The remaining Attribute tests will be implemented in a later patch.
2016-11-27 12:21:11 -05:00
Peter Hamilton a97c9eb5ed Merge pull request #212 from OpenKMIP/feat/update-app-specific-info
Updating the ApplicationSpecificInformation attribute
2016-11-27 11:32:29 -05:00
Peter Hamilton a55310368f Updating the ApplicationSpecificInformation attribute
This change adds some utility methods, including equality operators
and string methods, to the ApplicationSpecificInformation attribute.
Unit tests covering the changes are included.
2016-11-27 11:23:11 -05:00
Peter Hamilton 194412a17f Merge pull request #206 from OpenKMIP/maint/add-examples-dir
Adding an examples directory with conf and policy example files
2016-11-17 16:13:06 -05:00
Peter Hamilton c907826614 Adding an examples directory with conf and policy example files
This change adds configuration and policy example files, to make
the setup and usage of the PyKMIP client and server easier for
users.
2016-11-17 15:56:27 -05:00