Skip to content

Commit 1630428

Browse files
SequeIjku
andauthored
feat(models): expose TrustedRoot, SigningConfig, ClientTrustConfig (#1496)
Promote TrustedRoot, SigningConfig, and ClientTrustConfig to the public API via sigstore.models Signed-off-by: SequeI <[email protected]> Co-authored-by: Jussi Kukkonen <[email protected]>
1 parent f3af0dd commit 1630428

File tree

10 files changed

+444
-433
lines changed

10 files changed

+444
-433
lines changed

CHANGELOG.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,13 @@ All versions prior to 0.9.0 are untracked.
5959
### Changed
6060

6161
* API:
62-
* ClientTrustConfig now provides methods `production()`, `staging()`and `from_tuf()`
62+
* `TrustedRoot`, `SigningConfig`, and `ClientTrustConfig` are now exposed in
63+
`sigstore.models`. [#1496](https://github.com/sigstore/sigstore-python/pull/1496)
64+
* `ClientTrustConfig` now provides methods `production()`, `staging()`and `from_tuf()`
6365
to get access to current client configuration (trusted keys & certificates,
6466
URLs and their validity periods). [#1363](https://github.com/sigstore/sigstore-python/pull/1363)
65-
* SigningConfig now has methods that return actual clients (like `RekorClient`) instead of
66-
just URLs. The returned clients are also filtered according to SigningConfig contents.
67+
* `SigningConfig` now has methods that return actual clients (like `RekorClient`) instead of
68+
just URLs. The returned clients are also filtered according to `SigningConfig` contents.
6769
[#1407](https://github.com/sigstore/sigstore-python/pull/1407)
6870
* `--trust-config` now requires a file with SigningConfig v0.2, and is able to fully
6971
configure the used Sigstore instance [#1358]/(https://github.com/sigstore/sigstore-python/pull/1358)

sigstore/_cli.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@
3838
from sigstore._internal.fulcio.client import ExpiredCertificate
3939
from sigstore._internal.rekor import _hashedrekord_from_parts
4040
from sigstore._internal.rekor.client import RekorClient
41-
from sigstore._internal.trust import ClientTrustConfig
4241
from sigstore._utils import sha256_digest
4342
from sigstore.dsse import StatementBuilder, Subject
4443
from sigstore.dsse._predicate import (
@@ -48,7 +47,7 @@
4847
)
4948
from sigstore.errors import CertValidationError, Error, VerificationError
5049
from sigstore.hashes import Hashed
51-
from sigstore.models import Bundle, InvalidBundle
50+
from sigstore.models import Bundle, ClientTrustConfig, InvalidBundle
5251
from sigstore.oidc import (
5352
ExpiredIdentity,
5453
IdentityToken,

0 commit comments

Comments
 (0)