Commit Graph

927 Commits

Author SHA1 Message Date
justin-h-loi 0fd1e1f275 Remove old installs and attempt at doc test fix 2023-08-29 16:33:43 -04:00
justin-h-loi 66e7b331c1 test reduction 2023-08-29 16:33:43 -04:00
justin-h-loi 11db2e5b85 test number conditions 2023-08-29 16:33:43 -04:00
justin-h-loi f7043f7a72 test number conditions 2023-08-29 16:33:43 -04:00
justin-h-loi 19c57b257c Reformat test number conditions 2023-08-29 16:33:43 -04:00
justin-h-loi 5fbf13fd45 Adding test number conditions 2023-08-29 16:33:43 -04:00
justin-h-loi 8f681ba457 Changing python versions 2023-08-29 16:33:43 -04:00
justin-h-loi 77620f34be Changing ubuntu image versions 2023-08-29 16:33:43 -04:00
justin-h-loi ec5f138c43 code reduction 2023-08-29 16:33:43 -04:00
justin-h-loi 8692e346cd Remove setup.py in .travis setup 2023-08-29 16:33:43 -04:00
justin-h-loi 4041e77693 Folder permissions for run.sh in .travis.yml action 2023-08-29 16:33:43 -04:00
justin-h-loi 7339254e52 File permissions for run.sh in .travis.yml action 2023-08-29 16:33:43 -04:00
justin-h-loi 01b3e54c50 Backtrack to try using sudo instead for setup in .travis.yml action 2023-08-29 16:33:43 -04:00
justin-h-loi 059e8c4fb1 Add missing virtualenv install for builds in .travis.yml action 2023-08-29 16:33:43 -04:00
justin-h-loi fd25dda1b8 Setup virtualenv inside builds in .travis.yml action 2023-08-29 16:33:43 -04:00
justin-h-loi 2eb3f784c8 Permissions fix in .travis.yml action 2023-08-29 16:33:43 -04:00
justin-h-loi a7d035e985 Directory fix in .travis.yml action 2023-08-29 16:33:43 -04:00
justin-h-loi 46986498f9 .travis.yml build fix 2023-08-29 16:33:43 -04:00
justin-h-loi 142ee4f0d0 Added converted git action version of travis.yml 2023-08-29 16:33:43 -04:00
justin-h-loi 4c65eb8326 Changing file path of .travis workflow 2023-08-29 16:33:43 -04:00
justin-h-loi 111f1e5361 Run travis.yml workflow 2023-08-29 16:33:43 -04:00
arp102 0b63de97ee Fix test_mac_with_cryptographic_failure unit test.
This test is meant to intentionally trigger an exception in the cryptography library
by creating a CMAC with a non-block cipher algorithm, IDEA.
That doesn't work any more because IDEA is now treated as a block cipher algorithm.
To fix this, we now use the ARC4 algorithm instead,
which does trigger the expected exception.
2023-08-11 18:36:27 -04:00
Litao Xia f0a44b26ce Fix pykmip client error with server_correlation_value issue 2023-08-01 14:34:13 -04:00
Zsolt Parragi 5f34baee0d Do not leak database connections 2023-08-01 14:33:22 -04:00
locula 1a0f63af61 add original 2023-08-01 14:29:45 -04:00
Kevin Albertson fc5917365b check if shared_ciphers() is None before logging 2023-08-01 14:28:49 -04:00
Konstantin Trushin 263cb34662 Fix source code style to comply with PEP8 2023-03-27 11:16:46 -04:00
dsmith-qlik 155c05069f Update attribute_values.py 2023-02-07 17:51:52 -05:00
dsmith-qlik a339b97add Update enums.py 2023-02-07 17:51:52 -05:00
Daniel Garcia Moreno 652d5cab67 Add cryptography >= 39.0.0 support
The cryptography release 39.0.0 added a new parameter to the
backend.load_pem_private_key and backend.load_der_private_key
that's required. This patch uses the serialization method to load keys
because there the new parameter is optional.

https://cryptography.io/en/latest/changelog/#v39-0-0

This patch fixes the tests test_encrypt_decrypt_asymmetric
2023-01-30 15:16:30 -05:00
Grace Lombardi 0a3e39143f Updated app specific info to be a list of dictionaries, removed unneeded sudo in run.sh, updated server.conf to remove db, updated tests and comments to reflect app specific info being a list 2022-07-25 10:12:56 -04:00
Grace Lombardi 6bf55b98f5 Added app_specific_info to init comments 2022-07-25 10:12:56 -04:00
Grace Lombardi 5920dca210 Removed uneeded important and code cleanup 2022-07-25 10:12:56 -04:00
Grace Lombardi 124f7db5cb Updated test for App Specific Info for Symmetric Key and added test for App Specific Info for SecretData 2022-07-25 10:12:56 -04:00
Grace Lombardi 1773fba67c Updated client integration tests, Added test for Application Specific Information 2022-07-25 10:12:56 -04:00
gracelombardi 20f20b0e29 Code consistency updated 2022-07-25 10:12:56 -04:00
Pranathi Locula 95b54707f7 add app_specific_info 2022-07-25 10:12:56 -04:00
Pranathi Locula 19a901d0be add custom attribute support 2022-07-25 10:12:56 -04:00
Pranathi Locula 8a2289c9bd custom attributes for SymmetricKey 2022-07-25 10:12:56 -04:00
Satya Kommula a7a5f37755 Bump codeql action v1 tov2 2022-06-15 14:27:57 -04:00
Tim Burke b7814959a4 Copy README.rst to long_description
This should provide a useful project description on PyPI the next time
we publish a release.
2022-05-17 13:18:56 -04:00
Konstantin Trushin 4d1e9c633c Repair some demos
Pass the required argument to the `build_cli_parser` function where
it was missed. Pass the missed argument in the `objects.SecretData`
initialization.
2022-05-17 13:12:48 -04:00
arp102 69b127c24d Add a Subject Alternative Name to the example server cert.
This is often required for hostname verification.
2022-03-22 14:17:12 -04:00
Karthikeyan Singaravelan b38b805bf0 Use assertEqual instead of assertEquals for Python 3.11 compatibility. 2022-03-16 14:14:33 -04:00
Tim Burke c0c9803956 Fix tests to pass with SQLAlchemy>=1.4.0
I'm not *entirely* sure what's going on here, but it seems that when we
do something like

    obj = OpaqueObject(...)
    Session = sessionmaker(...)
    session = Session()
    ...
    session.add(obj)
    session.commit()

the primary key (and maybe some foreign relations?) aren't automatically
populated on `obj` following the commit, and will attempt to lazy-load
on next reference. Since expire_on_commit defaults to True, the session
attached to `obj` (which is no longer the `session` in locals!) is closed
out when we later do

    session = Session()
    get_obj = session.query(OpaqueObject).filter(
        ManagedObject.unique_identifier == obj.unique_identifier).one()

leading to a DetachedInstanceError.

There seem to be a few different ways we can fix this:

* Set expire_on_commit=False so the old session is still useful for the
  lazy-loading.
* Re-use the same session instead of creating a new one.
* Explicitly refresh added objects post-commit.

Generally prefer the first one; there's some prior art to follow in
services/server/test_engine.py. Curiously, that same file runs into
trouble despite already setting expire_on_commit=False -- so do the
explicit refresh, on the assumption that there was a reason we went to
the trouble of creating a fresh session.

Closes #649
2021-09-23 13:43:04 -04:00
locula 6c2bc6b3d5 Update client.py 2021-08-03 10:33:15 -04:00
Pranathi Locula a9d15eb253 create SecretData objects with custom attributes 2021-08-03 10:33:15 -04:00
Peter Hamilton 9403ff3d2a
Create codeql-analysis.yml
Add automated Python security scanning using CodeQL as recommended and provided by GitHub.
2021-03-31 13:15:47 -04:00
Joel Capitao 645cbf2ae9 Set the except clause as a parenthesized tuple 2020-09-15 10:24:17 -04:00
Peter Hamilton fe60ecf02d Bump the library version to 0.11.0dev1 2020-03-09 11:57:45 -04:00