Skip to content

Commit cb3e92f

Browse files
Revert "staging_with_rekorv2 uses embedded trust config"
This reverts commit d7ddd50.
1 parent 5127e81 commit cb3e92f

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

test/unit/conftest.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
from id import (
3232
detect_credential,
3333
)
34+
from sigstore_protobuf_specs.dev.sigstore.trustroot.v1 import Service
3435
from tuf.api.exceptions import DownloadHTTPError
3536
from tuf.ngclient import FetcherInterface, updater
3637

@@ -238,20 +239,19 @@ def signer():
238239

239240

240241
@pytest.fixture
241-
def staging_with_rekorv2(
242-
asset,
243-
) -> tuple[type[SigningContext], type[Verifier], IdentityToken]:
242+
def staging_with_rekorv2() -> tuple[
243+
type[SigningContext], type[Verifier], IdentityToken
244+
]:
244245
"""
245246
Returns a SigningContext, Verifier, and IdentityToken for the staging environment.
246247
The signingContext will use the Rekor V2 instance even if it is not yet enabled in
247248
staging signing config.
248249
"""
249250

250251
def signer():
251-
trust_config = ClientTrustConfig.from_json(
252-
asset(
253-
os.path.join("trust_config", "staging-but-sign-with-rekor-v2.json")
254-
).read_text()
252+
trust_config = ClientTrustConfig.staging()
253+
trust_config.signing_config._tlogs.append(
254+
Service("https://log2025-alpha1.rekor.sigstage.dev", 2)
255255
)
256256
return SigningContext.from_trust_config(trust_config)
257257

0 commit comments

Comments
 (0)