commit 81e4118be5dad1f4284c188c83826564d80296980ac0bc079e9d18df515c3d45 Author: Dirk Mueller Date: Mon Sep 2 12:27:39 2024 +0000 Accepting request 1198283 from home:bnavigator:branches:devel:languages:python - Fix build and runtime requirements OBS-URL: https://build.opensuse.org/request/show/1198283 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-hvac?expand=0&rev=37 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/hvac-2.3.0.tar.gz b/hvac-2.3.0.tar.gz new file mode 100644 index 0000000..2e67c25 --- /dev/null +++ b/hvac-2.3.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1b85e3320e8642dd82f234db63253cda169a817589e823713dc5fca83119b1e2 +size 332660 diff --git a/python-hvac.changes b/python-hvac.changes new file mode 100644 index 0000000..d2bdf50 --- /dev/null +++ b/python-hvac.changes @@ -0,0 +1,277 @@ +------------------------------------------------------------------- +Mon Sep 2 11:56:50 UTC 2024 - Ben Greiner + +- Fix build and runtime requirements + +------------------------------------------------------------------- +Wed Jun 19 08:48:24 UTC 2024 - Dirk Müller + +- update to 2.3.0: + * Implement the /sys/wrapping/wrap endpoint (GH-1172) + * add support for Vault Raft auto-snapshot endpoints. (GH-1169) + +------------------------------------------------------------------- +Tue May 7 21:05:23 UTC 2024 - Dirk Müller + +- update to 2.2.0: + * Add new exception types for HTTP status 405 and 412 (GH-1148) + * LDAP secrets engine enhancements (GH-1163) + * LDAP secret engine support + * Add new exception types for HTTP status 405 and 412 (GH-1148) + * Add sts_region parameter to auth.aws.configure (GH-1136) + * Adding namespace_in_state to jwt (GH-1144) + * Add associated_data to encrypt/decrypt transit endpoints + (GH-1108) + * aws auth - add support for `iam_metadata` and `ec2_metadata` + params (GH-1125) + +------------------------------------------------------------------- +Sun Jan 7 20:00:06 UTC 2024 - Dirk Müller + +- update to 2.1.0: + * Add support for sys/policies endpoint (GH-1100) + * add quota support to system backend (GH-1092) + * Add support to PKI class to perform CRUD on issuers (GH-1102) + * `Client.write_data` - remove potentially dangerous default + * :pencil: Add HTTP/2+ use case into the advanced usage section + * update the KV documentation (GH-1122) + * Add support for sys/policies endpoint (GH-1100) + * fix readthedocs (RTD) public docsite, modernize some of the + docs build/testing (GH-1119) + * Add support to PKI class to perform CRUD on issuers (GH-1102) + * Update GCP secrets engine documentation (GH-1099) + * fix readthedocs (RTD) public docsite, modernize some of the + docs build/testing (GH-1119) + * Revamp integration tests, run in parallel (GH-1105) + * Add Vault 1.15.x to integration tests (GH-1103) +- update to 2.0.0: + * This release makes a number of breaking changes. Most + notably, dropping support for Python 3.6 & 3.7, dropping + support for Vault versions 1.6.x through 1.10.x, and removing + previously deprecated methods and code paths. Most of the + other breaking changes are fairly minor or only affect + specific use cases, but please review all changes carefully. + * There are also several other deprecations and announcements + to be aware of. We hope to have a more rapid release schedule + going forward. + * In accordance with our supported Python version policy we + will continue to drop Python versions as they become end-of- + life. These may not be announced in advance, but will be done + in major versions. + * `Client.write` method breaking changes 2.0.0 (GH-1089) + * Drop support for Vault 1.6-1.10 (GH-1074) + * Changing default values for `sys.initialize` parameters + `secret_shares` and `secret_threshold` (GH-1063) + * Remove old deprecated `client` attributes (GH-1062) + * Remove MFA class (GH-1056) + * adapters: if `session` is user-supplied, do not overwrite + session options with `Client`/`Adapter` options (GH-1021) + * Make `pyhcl` optional again (GH-1060) + * Drop Python 3.6 & 3.7, Add Python 3.11, bump some + dependencies (GH-1048) + * Breaking changes coming to Adapters' use of custom sessions + * Breaking changes coming to `Client.write` method (GH-1034) + * The default value of `raise_on_deleted_version` will change + from `True` to `False` in `v3.0.0` (GH-955) + * The `certificate` parameter for `create_ca_certificate_role` + will stop accepting file paths in v3.0.0 (GH-914) + * Drop support for Vault 1.6-1.10 (GH-1074) + * Changing default values for `sys.initialize` parameters + `secret_shares` and `secret_threshold` (GH-1063) + * Fix typo in `safety_buffer` argument in AWS auth (GH-1068) + * Add support for Python 3.12 (GH-1073) + * Database Secrets Engine - add `rotate_static_credentials` + method, docs updates, unit tests (GH-1069) + * Make `plaintext` and `ciphertext` optional for batch + operations (GH-1049) + * Changing default values for `sys.initialize` parameters + `secret_shares` and `secret_threshold` (GH-1063) + * adapters: if `session` is user-supplied, do not overwrite + session options with `Client`/`Adapter` options (GH-1021) + +------------------------------------------------------------------- +Fri Dec 1 16:57:54 UTC 2023 - Dirk Müller + +- update to 1.2.1: + * This release fixes an inaccuracy in a warning message but + does not otherwise change functionality. + * Fix raise_on_deleted_version warning (GH-1045) + * ldap auth method - add missing `configure` params by vault + api names (GH-975) expand Vault CI matrix, announce + deprecation of Vault dynamic SSH keys (GH-1023) + * Breaking changes coming to `Client.write` method (GH-1034) + * Support for Python 3.6 & 3.7 will be dropped in `v2.0.0` + * Support for the Legacy MFA methods will be dropped from the + `MFA` class in `v2.0.0` (GH-1026) + * Breaking changes coming to Adapters' use of custom sessions + * ### 🚀 Features + * Add alias_name_source for Kubernetes Auth create_role + * add `Client.write_data` method (GH-1028) + * ldap auth method - add missing `configure` params by vault + api names (GH-975) + * Re-add arguments to create_or_update_role() from old API + (GH-842) + * Add new argument (conflicting_alias_ids_to_keep) to + merge_entities method (GH-968) + * Add impersonated account support to GCP secrets engine + (GH-1022) + * support "user_claim_json_pointer" in create_role() for + JWT/OIDC auth method (GH-1006) + * Add static account support to GCP secrets engine (GH-956) + * adding batch_input to transit.sign_data #988 (GH-990) + * Add a method to read static roles in the database engine + (GH-1009) + * feat: add support for `disable_local_ca_jwt` in the + Kubernetes auth method (GH-997) + * ### 🐛 Bug Fixes + * add `Client.write_data` method (GH-1028) + * Fix premature read on stream requests in the + `sys.take_raft_snapshot` method (GH-771) + * fix(`__getattr__`): non-existent attribute lookup (GH-982) + * ### 📚 Documentation + * docs(secrets-engines): Add database secrets engine docs + (GH-1036) + * docs: make OIDC Authorization URL Request example work again. + (GH-1010) + * ### 🧰 Miscellaneous + * add tests and docs to sdist, improve build testing (GH-1015) + * Bump certifi from 2022.9.14 to 2022.12.7 (GH-1013) + +------------------------------------------------------------------- +Fri Mar 10 12:10:52 UTC 2023 - pgajdos@suse.com + +- version update to 1.1.0 + * python-six is not required + * drop python 2 support + * lot of changes, see CHANGELOG.md or + https://github.com/hvac/hvac/blob/develop/CHANGELOG.md +- deleted patches + - remove-mock.patch (upstreamed) + +------------------------------------------------------------------- +Tue Aug 2 05:50:10 UTC 2022 - Steve Kowalik + +- Remove patch python-hvac-no-mock.patch +- Add patch remove-mock.patch, from upstream. +- Remove unneeded BuildRequires on mock + +------------------------------------------------------------------- +Mon May 2 17:28:37 UTC 2022 - pgajdos@suse.com + +- added patches + fix https://github.com/hvac/hvac/issues/582 + + python-hvac-no-mock.patch + +------------------------------------------------------------------- +Sat Oct 16 19:12:22 UTC 2021 - Dirk Müller + +- update to 0.11.2: + * Breakfix release to revert some unintended post-1.0 requirements changes. + * Revert `six` & `requests` Requirements Changes. GH-768 + +------------------------------------------------------------------- +Fri Jul 30 10:50:47 UTC 2021 - Markéta Machová + +- Update to 0.11.0 + * This is intended to by the last hvac release supporting Python 2.7. + * Userpass: Add use_token param on login(), Accept passthrough **kwargs on create user. + * Support CA-related Environment Variables. + * Allow Omission of Password Argument on Userpass create_or_update_user(). + * Add deprecation notices for some Client() methods. + +------------------------------------------------------------------- +Thu Jun 17 21:17:29 UTC 2021 - Dirk Müller + +- udpate to 0.10.14: + * Python 2.7: Drop Trailing Comma In `Cert.login()`. + * Refactor `Cert.login()` Conditional for Python 2.7 Syntax Support. + * Add default to `group_type` argument in `update_group` and `create_or_update_group_by_name`. + * Add Certificate Authentication Methods. + * Expand Transform class to include new(ish) tokenization methods. + * Add `delete_version_after` KvV2 Param - `configure()` / `update_metadata(). + +------------------------------------------------------------------- +Tue May 18 22:15:54 UTC 2021 - Dirk Müller + +- update to 0.10.10: + - AWS Secrets Engine: Add support for iam_tags when creating roles. GH-684 + - Add Active Directory generate credential capability. GH-657 + - Add `policies` Parameter to Userpass `create_or_update_user()` Method. GH-562 + - Add handling of unsupported HTTP methods inside adapter. GH-689 + - Add Convenience `read_secret()` Method for KVv2 Class. GH-686 + - Set daemon attribute instead of using setDaemon method that was deprecated in Python 3.10. GH-688 + - Send AppRole generate_secret_id Method Metadata Parameter as String GH-68 + +------------------------------------------------------------------- +Thu Apr 22 20:22:43 UTC 2021 - Dirk Müller + +- update to 0.10.8: + - K8s Auth: Allow wildcards for service account and namespace. GH-669 + - Add token_type support to create_kubernetes_role. GH-664 + - Support database secrets static roles. GH-662 + +------------------------------------------------------------------- +Mon Feb 1 18:05:31 UTC 2021 - Dirk Müller + +- update to 0.10.6: + - Enable response wrapping of PKI secrets. GH-649 + - Fix OIDC login and add working example. GH-638 + - Add rabbitmq vhost_topics parameter. GH-626 + - Expand auth_methods module to support AppRole. GH-637 + - Template "auth method not implemented" error message. GH-651 + - Fix health.py read_health_status GET method. GH-653 + - Fix transit constants for "generate_data_key". GH-632 + - Fix PUT method in secrets engine kv_v1 to use PUT instead of POST. GH-629 + - Remove Erroneous json() Calls In rabbitmq Class. GH-624 + +------------------------------------------------------------------- +Tue Aug 4 16:11:21 UTC 2020 - Dirk Mueller + +- update to 0.10.5: + - Add JWT/OIDC Authentication Method Classes. GH-613 + - Add Identity Tokens Methods and Documentation. GH-611 + - Add P-521 to list of allowed key types. GH-608 + - Add P-384 and RSA-3072 to list of allowed key types. GH-606 + - Options not read by tune_mount_configuration. GH-603 + - Add Autodoc Summaries. GH-612 + - Correct Return Type Docstrings Within Transit Class. GH-609 + - Transit engine docs for Encrypt Data now refer to encrypt_data. GH-601 + - Update Vault version test matrix / Oldest Support Vault Version. GH-610 + +------------------------------------------------------------------- +Fri Jul 17 07:27:39 UTC 2020 - Dirk Mueller + +- update to 0.10.4: + - Extract "renew_self_token" from "renew_token". GH-598 + - Add convenience step_down sys backend method. GH-597 + +------------------------------------------------------------------- +Mon Jun 8 13:37:14 UTC 2020 - Dirk Mueller + +- update to 0.10.3: + - Add Support For use_token_groups In LDAP Auth Method. GH-591 + - Add Raft System Backend Methods. GH-594 + +------------------------------------------------------------------- +Tue Jun 2 16:18:03 UTC 2020 - Dirk Mueller + +- update to 0.10.2: + - Create_role_secret_id: add token_bound_cidrs parameter. GH-585 + - Add vault rekey verification methods. GH-586 + - Add request data to exception objects. GH-583 + - Add marshaling_algorithm to sign/verify params. GH-584 + - Add issuer to kubernetes configuration. GH-575 + - Remove json() calls (unneeded following JSONAdapter addition) GH-589 + - Fix format errors in contributing for HTML docs. GH-577 + +------------------------------------------------------------------- +Wed Apr 8 07:29:06 UTC 2020 - Tomáš Chvátal + +- Update to 0.10.1: + * many various fixes all around + +------------------------------------------------------------------- +Wed Feb 6 16:56:58 UTC 2019 - Marcus Rueckert + +- initial package + diff --git a/python-hvac.spec b/python-hvac.spec new file mode 100644 index 0000000..1ab92cc --- /dev/null +++ b/python-hvac.spec @@ -0,0 +1,73 @@ +# +# spec file for package python-hvac +# +# Copyright (c) 2024 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +Name: python-hvac +Version: 2.3.0 +Release: 0 +Summary: HashiCorp Vault API client +License: BSD-3-Clause +URL: https://github.com/hvac/hvac +Source: https://github.com/hvac/hvac/releases/download/v%{version}/hvac-%{version}.tar.gz +BuildRequires: %{python_module Authlib} +BuildRequires: %{python_module Flask-SQLAlchemy} +BuildRequires: %{python_module Flask} +BuildRequires: %{python_module Werkzeug} +BuildRequires: %{python_module jwcrypto} +BuildRequires: %{python_module parameterized} +BuildRequires: %{python_module pip} +BuildRequires: %{python_module poetry-core >= 1} +BuildRequires: %{python_module pyhcl >= 0.4.4} +BuildRequires: %{python_module pytest-mock} +BuildRequires: %{python_module pytest-xdist} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module requests >= 2.21.0} +BuildRequires: %{python_module requests-mock} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Requires: python-requests >= 2.27.1 +Recommends: python-pyhcl >= 0.4.4 +BuildArch: noarch +%python_subpackages + +%description +HashiCorp Vault API client for Python 2/3 + +%prep +%autosetup -p1 -n hvac-%{version} +# doctests and ldap need set up ldap server and that is quite an effort +rm -r tests/doctest/ +rm tests/integration_tests/api/auth_methods/test_ldap.py +find hvac -name "*.py" -exec sed -i -e '/^#!\//, 1d' {} \; + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +%pytest + +%files %{python_files} +%doc README.* docs/changelog.rst +%license LICENSE.txt +%{python_sitelib}/hvac +%{python_sitelib}/hvac-%{version}.dist-info + +%changelog