Skip to content

Commit 8f6bf23

Browse files
authored
Merge pull request #198 from Sojamann/tls-verification
fix: method signature to allow custom CA-Bundles
2 parents 9e29e24 + 76327d9 commit 8f6bf23

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ and **Merged pull requests**. Critical items to know are:
1414
The versions coincide with releases on pip. Only major versions will be released as tags on Github.
1515

1616
## [0.0.x](https://github.com/oras-project/oras-py/tree/main) (0.0.x)
17+
- fix 'Provider' method signature to allow custom CA-Bundles (0.2.32)
1718
- initialize headers variable in do_request (0.2.31)
1819
- Make reproducible targz without mimetype (0.2.30)
1920
- don't include Content-Length header in upload_manifest (0.2.29)

oras/provider.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def __init__(
4848
self,
4949
hostname: Optional[str] = None,
5050
insecure: bool = False,
51-
tls_verify: bool = True,
51+
tls_verify: Union[bool, str] = True,
5252
auth_backend: str = "token",
5353
):
5454
"""
@@ -58,10 +58,12 @@ def __init__(
5858
5959
:param hostname: the hostname of the registry to ping
6060
:type hostname: str
61-
:param registry: if provided, use this custom provider instead of default
62-
:type registry: oras.provider.Registry or None
6361
:param insecure: use http instead of https
6462
:type insecure: bool
63+
:param tls_verify: enable/disable tls verification or use a custom CA-Bundle
64+
:type tls_verify: bool
65+
:param auth_backend: name of the auth backend to use
66+
:type auth_backend: str
6567
"""
6668
self.hostname: Optional[str] = hostname
6769
self.headers: dict = {}

oras/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
__copyright__ = "Copyright The ORAS Authors."
33
__license__ = "Apache-2.0"
44

5-
__version__ = "0.2.31"
5+
__version__ = "0.2.32"
66
AUTHOR = "Vanessa Sochat"
77
EMAIL = "vsoch@users.noreply.github.com"
88
NAME = "oras"

0 commit comments

Comments
 (0)