diff --git a/CHANGELOG.md b/CHANGELOG.md index 77b923f9..dc8f7205 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,20 @@ # Okta Python SDK Changelog +# 3.4.7 + +## Fixed +* Fixed a `ValidationError` crash in `list_network_zones()` and `get_network_zone()` for `DYNAMIC` and `DYNAMIC_V2` zones with `asns` or `locations` values, including empty arrays. The `allOf` wrappers on these array fields in `openapi/api.yaml` generated empty object models instead of lists; the fields now generate as `List[str]` and `List[NetworkZoneLocation]`, aligned with the upstream spec. The six empty wrapper models (`DynamicNetworkZoneAllOf{Asns,Locations}` and `EnhancedDynamicNetworkZoneAllOf{Asns,Locations}{Include,Exclude}`) are removed; use the plain lists instead. Network Zone `asns`, `locations` and `ipServiceCategories` lists are now limited to 75 entries. PR [#601](https://github.com/okta/okta-sdk-python/pull/601) + +## Security +* Resolved Dependabot security alerts by upgrading runtime dependencies: `aiohttp` 3.14.4 ([#603](https://github.com/okta/okta-sdk-python/pull/603)) and `PyJWT` 2.15.1 ([#599](https://github.com/okta/okta-sdk-python/pull/599)). +* Upgraded `jwcrypto` to 1.6.1 ([#591](https://github.com/okta/okta-sdk-python/pull/591)) and the `urllib3` minimum to 2.8.0 ([#585](https://github.com/okta/okta-sdk-python/pull/585)) to pick up upstream security releases. +* Added a `virtualenv` >= 21.14.9 development dependency to resolve Dependabot security alerts for the version pulled in transitively by `tox`. + +## Dependencies +* Bumped runtime dependencies: `pydantic` 2.14.0 ([#604](https://github.com/okta/okta-sdk-python/pull/604)), `pydash` 8.1.0 ([#595](https://github.com/okta/okta-sdk-python/pull/595)), and `typing-extensions` >= 4.16.0 ([#586](https://github.com/okta/okta-sdk-python/pull/586)). +* Bumped development and testing dependencies: `flake8` 7.4.1 ([#588](https://github.com/okta/okta-sdk-python/pull/588)), `mypy` 2.4.0 ([#598](https://github.com/okta/okta-sdk-python/pull/598)), `pytest` 9.1.1 ([#589](https://github.com/okta/okta-sdk-python/pull/589)), `pytest-mock` 3.16.0 ([#597](https://github.com/okta/okta-sdk-python/pull/597)), `pytest-randomly` >= 5.0.0 ([#592](https://github.com/okta/okta-sdk-python/pull/592)), `pytest-recording` 0.14.0 ([#596](https://github.com/okta/okta-sdk-python/pull/596)), `tox` 4.65.0 ([#605](https://github.com/okta/okta-sdk-python/pull/605)), `types-python-dateutil` >= 2.9.0.20260807 ([#593](https://github.com/okta/okta-sdk-python/pull/593)), and `virtualenv` >= 21.14.9. +* Updated OpenAPI Generator mustache templates (`requirements.mustache`, `setup.mustache`, `pyproject.mustache`, `test-requirements.mustache`) to reflect the new dependency versions for consistent future code generation. + # 3.4.6 ## Fixed diff --git a/README.md b/README.md index bbd4efd2..356ca9f1 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,7 @@ This repository contains the Okta management SDK for Python. This SDK can be use This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: -- Package version: 3.4.6 +- Package version: 3.4.7 - OpenAPI JAR Generator version: 7.7.0 - Build package: org.openapitools.codegen.languages.PythonClientCodegen For more information, please visit [https://developer.okta.com/](https://developer.okta.com/) diff --git a/okta/__init__.py b/okta/__init__.py index 388ec4be..1bfb464e 100644 --- a/okta/__init__.py +++ b/okta/__init__.py @@ -21,7 +21,7 @@ """ # noqa: E501 -__version__ = "3.4.6" +__version__ = "3.4.7" import importlib as _importlib import threading as _threading diff --git a/okta/oauth.py b/okta/oauth.py index 741ee9d8..3c6c2d8c 100644 --- a/okta/oauth.py +++ b/okta/oauth.py @@ -79,7 +79,7 @@ def __init__(self, request_executor: Any, config: Dict[str, Any]) -> None: ) raise ValueError( "DPoP requires 'pycryptodomex' and 'jwcrypto' libraries. " - "Install with: pip install pycryptodomex>=3.23.0 jwcrypto>=1.5.8" + "Install with: pip install pycryptodomex>=3.23.0 jwcrypto>=1.6.1" ) from error try: diff --git a/openapi/config.yaml b/openapi/config.yaml index 321951d6..6bd9898f 100644 --- a/openapi/config.yaml +++ b/openapi/config.yaml @@ -1,7 +1,7 @@ templateDir: ./templates outputDir: .. packageName: okta -packageVersion: 3.4.6 +packageVersion: 3.4.7 useOneOfDiscriminatorLookup: true files: okta/okta_configuration.mustache: diff --git a/openapi/templates/README_onlypackage.mustache b/openapi/templates/README_onlypackage.mustache index ae547b1e..9bf5982e 100644 --- a/openapi/templates/README_onlypackage.mustache +++ b/openapi/templates/README_onlypackage.mustache @@ -26,7 +26,7 @@ This python library package is generated without supporting files like setup.py To be able to use it, you will need these dependencies in your own package that uses this library: -* urllib3 >= 1.25.3 +* urllib3 >= 2.8.0 * python-dateutil {{#asyncio}} * aiohttp diff --git a/openapi/templates/okta/oauth.mustache b/openapi/templates/okta/oauth.mustache index 741ee9d8..3c6c2d8c 100644 --- a/openapi/templates/okta/oauth.mustache +++ b/openapi/templates/okta/oauth.mustache @@ -79,7 +79,7 @@ class OAuth: ) raise ValueError( "DPoP requires 'pycryptodomex' and 'jwcrypto' libraries. " - "Install with: pip install pycryptodomex>=3.23.0 jwcrypto>=1.5.8" + "Install with: pip install pycryptodomex>=3.23.0 jwcrypto>=1.6.1" ) from error try: diff --git a/openapi/templates/pyproject.mustache b/openapi/templates/pyproject.mustache index b3d8121e..1ed74c3b 100644 --- a/openapi/templates/pyproject.mustache +++ b/openapi/templates/pyproject.mustache @@ -12,10 +12,10 @@ include = ["{{packageName}}/py.typed"] [tool.poetry.dependencies] python = "^3.9" -urllib3 = ">= 1.25.3" +urllib3 = ">= 2.8.0" python-dateutil = ">=2.9.0.post0" {{#asyncio}} -aiohttp = ">= 3.14.3" +aiohttp = ">= 3.14.4" aiohttp-retry = ">= 2.8.3" {{/asyncio}} {{#tornado}} @@ -25,15 +25,16 @@ tornado = ">=4.2,<5" pem = ">= 19.3.0" pycryptodome = ">= 3.9.0" {{/hasHttpSignatureMethods}} -pydantic = ">=2.11.3" -typing-extensions = ">=4.7.1" +pydantic = ">=2.14.0" +typing-extensions = ">=4.16.0" [tool.poetry.dev-dependencies] -pytest = ">=9.0.3" -tox = ">=4.30.3" -flake8 = ">=7.3.0" -types-python-dateutil = ">=2.8.19" -mypy = "1.4.1" +pytest = ">=9.1.1" +tox = ">=4.65.0" +flake8 = ">=7.4.1" +types-python-dateutil = ">=2.9.0.20260807" +mypy = "2.4.0" +virtualenv = ">=21.14.9" [build-system] diff --git a/openapi/templates/requirements.mustache b/openapi/templates/requirements.mustache index 62b0ba52..fb5893fb 100644 --- a/openapi/templates/requirements.mustache +++ b/openapi/templates/requirements.mustache @@ -1,22 +1,22 @@ aenum==3.1.17 -aiohttp==3.14.3 +aiohttp==3.14.4 blinker==1.9.0 -jwcrypto==1.5.8 +jwcrypto==1.6.1 pycryptodomex==3.23.0 -pydantic==2.11.3 -pydash==8.0.6 -PyJWT==2.13.0 +pydantic==2.14.0 +pydash==8.1.0 +PyJWT==2.15.1 python-dateutil==2.9.0.post0 PyYAML==6.0.3 requests==2.34.2 xmltodict==1.0.4 # Development & Testing Tools -flake8==7.3.0 +flake8==7.4.1 pyfakefs==6.2.0 -pytest==9.0.3 +pytest==9.1.1 pytest-asyncio==1.4.0 -pytest-mock==3.15.1 -pytest-recording==0.13.4 -tox==4.30.3 +pytest-mock==3.16.0 +pytest-recording==0.14.0 +tox==4.65.0 twine==7.0.0 diff --git a/openapi/templates/setup.mustache b/openapi/templates/setup.mustache index 1f0b7479..63a30cf4 100644 --- a/openapi/templates/setup.mustache +++ b/openapi/templates/setup.mustache @@ -34,13 +34,13 @@ NAME = "okta" PYTHON_REQUIRES = ">=3.10" REQUIRES = [ "aenum >= 3.1.17", - "aiohttp >= 3.14.3", + "aiohttp >= 3.14.4", "blinker >= 1.9.0", - 'jwcrypto >= 1.5.8', + 'jwcrypto >= 1.6.1', "pycryptodomex >= 3.23.0", - "pydantic >= 2.11.3", - "pydash >= 8.0.6", - "PyJWT >= 2.13.0", + "pydantic >= 2.14.0", + "pydash >= 8.1.0", + "PyJWT >= 2.15.1", "python-dateutil >= 2.9.0.post0", "PyYAML >= 6.0.3", "requests >= 2.34.2", @@ -70,7 +70,7 @@ setup( "Topic :: Software Development :: Libraries :: Python Modules", ], name=NAME, - version="3.4.6", + version="3.4.7", description="Python SDK for the Okta Management API", author="Okta, Inc.", author_email="developer-community-products@okta.com", diff --git a/openapi/templates/test-requirements.mustache b/openapi/templates/test-requirements.mustache index 344fbab6..ffa5bb41 100644 --- a/openapi/templates/test-requirements.mustache +++ b/openapi/templates/test-requirements.mustache @@ -1,5 +1,5 @@ -pytest~=9.0.3 +pytest~=9.1.1 pytest-cov>=7.1.0 -pytest-randomly>=4.1.0 -mypy>=1.4.1 -types-python-dateutil>=2.8.19 +pytest-randomly>=5.0.0 +mypy>=2.4.0 +types-python-dateutil>=2.9.0.20260807 diff --git a/pyproject.toml b/pyproject.toml index 45102b4b..94bbca54 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "okta" -version = "3.4.6" +version = "3.4.7" description = "Okta Admin Management" authors = ["Okta Developer Team "] license = "Apache-2.0" @@ -12,17 +12,18 @@ include = ["okta/py.typed"] [tool.poetry.dependencies] python = "^3.10" -urllib3 = ">= 1.25.3" +urllib3 = ">= 2.8.0" python-dateutil = ">=2.9.0.post0" -pydantic = ">=2.11.3" -typing-extensions = ">=4.7.1" +pydantic = ">=2.14.0" +typing-extensions = ">=4.16.0" [tool.poetry.dev-dependencies] -pytest = ">=9.0.3" -tox = ">=4.30.3" -flake8 = ">=7.3.0" -types-python-dateutil = ">=2.8.19" -mypy = "1.4.1" +pytest = ">=9.1.1" +tox = ">=4.65.0" +flake8 = ">=7.4.1" +types-python-dateutil = ">=2.9.0.20260807" +mypy = "2.4.0" +virtualenv = ">=21.14.9" [build-system] diff --git a/requirements.txt b/requirements.txt index efcf0a22..853f2d77 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,22 +1,22 @@ aenum==3.1.17 -aiohttp==3.14.3 +aiohttp==3.14.4 blinker==1.9.0 -jwcrypto==1.5.8 +jwcrypto==1.6.1 pycryptodomex==3.23.0 -pydantic==2.11.3 -pydash==8.0.6 -PyJWT==2.13.0 +pydantic==2.14.0 +pydash==8.1.0 +PyJWT==2.15.1 python-dateutil==2.9.0.post0 PyYAML==6.0.3 requests==2.34.2 xmltodict==1.0.4 # Development & Testing Tools -flake8==7.3.0 +flake8==7.4.1 pyfakefs==6.2.0 -pytest==9.0.3 +pytest==9.1.1 pytest-asyncio==1.4.0 -pytest-mock==3.15.1 -pytest-recording==0.13.4 -tox==4.30.3 +pytest-mock==3.16.0 +pytest-recording==0.14.0 +tox==4.65.0 twine==6.2.0 diff --git a/setup.py b/setup.py index 1f0b7479..63a30cf4 100644 --- a/setup.py +++ b/setup.py @@ -34,13 +34,13 @@ PYTHON_REQUIRES = ">=3.10" REQUIRES = [ "aenum >= 3.1.17", - "aiohttp >= 3.14.3", + "aiohttp >= 3.14.4", "blinker >= 1.9.0", - 'jwcrypto >= 1.5.8', + 'jwcrypto >= 1.6.1', "pycryptodomex >= 3.23.0", - "pydantic >= 2.11.3", - "pydash >= 8.0.6", - "PyJWT >= 2.13.0", + "pydantic >= 2.14.0", + "pydash >= 8.1.0", + "PyJWT >= 2.15.1", "python-dateutil >= 2.9.0.post0", "PyYAML >= 6.0.3", "requests >= 2.34.2", @@ -70,7 +70,7 @@ def get_version(): "Topic :: Software Development :: Libraries :: Python Modules", ], name=NAME, - version="3.4.6", + version="3.4.7", description="Python SDK for the Okta Management API", author="Okta, Inc.", author_email="developer-community-products@okta.com", diff --git a/test-requirements.txt b/test-requirements.txt index 344fbab6..ffa5bb41 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -1,5 +1,5 @@ -pytest~=9.0.3 +pytest~=9.1.1 pytest-cov>=7.1.0 -pytest-randomly>=4.1.0 -mypy>=1.4.1 -types-python-dateutil>=2.8.19 +pytest-randomly>=5.0.0 +mypy>=2.4.0 +types-python-dateutil>=2.9.0.20260807