GithubHelp home page GithubHelp logo

Comments (3)

joel-coffman avatar joel-coffman commented on June 10, 2024

Yes, the Barbican tests were reaching into some of the PyKMIP internals -- see bug 1522856. There is a change request to remove those assertions in the stable/kilo branch: https://review.openstack.org/#/c/257523/. I'll see if I can push that change along...

I believe that the following 20dbad5 is a backwards incompatible change and should have bumped the major version

Yeah, we weren't expecting the Barbican unit tests to rely on PyKMIP's internal data structures, which are occasionally updated as new features are added.

from pykmip.

tbreeds avatar tbreeds commented on June 10, 2024

Thanks. I'm getting a different back trace and that patch you refer to doesn't fix it for me (with 0.4.1) I get:

Traceback (most recent call last):
File "barbican/tests/plugin/test_kmip.py", line 423, in test_store_private_key_secret_return_value
return_value = self.secret_store.store_secret(secret_dto)
File "barbican/plugin/kmip_secret_store.py", line 350, in store_secret
self._raise_secret_general_exception(result)
File "barbican/plugin/kmip_secret_store.py", line 589, in _raise_secret_general_exception
raise ss.SecretGeneralException(msg)
barbican.plugin.interface.secret_store.SecretGeneralException: Problem seen during crypto processing - Reason: Status: ResultStatus.SUCCESS, Reason: None, Message: None

FAIL: barbican.tests.plugin.test_kmip.WhenTestingKMIPSecretStore.test_store_symmetric_secret_return_value

Which seems to be because result.result_status.enum is <enum 'ResultStatus'> and not ResultStatus.SUCCESS as expected.

Anyway this is largely moot. Changing internal APIs is fine, the best fix IMO for Barbican in kilo is to limit pykmip which is being discussed here: https://review.openstack.org/#/c/260599/

We just need to work out the correct cap.
My suggestion is capping in <0.4.0 that way we're open to any critical security fixes in 0.3.X and we neatly do not overlap with the liberty requirements.

from pykmip.

joel-coffman avatar joel-coffman commented on June 10, 2024

Looks like https://review.openstack.org/#/c/260599/ is the correct path so I'm closing this issue.

from pykmip.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.