Models
Common models shared between signing and verification.
TransparencyLogEntry(inner)
Represents a transparency log entry.
Creates a new TransparencyLogEntry from the given inner object.
@private
Source code in sigstore/models.py
87 88 89 90 91 92 93 94 | |
TimestampVerificationData(inner)
Represents a TimestampVerificationData structure.
@private
Init method.
Source code in sigstore/models.py
253 254 255 256 | |
rfc3161_timestamps
property
Returns a list of signed timestamp.
from_json(raw)
classmethod
Deserialize the given timestamp verification data.
Source code in sigstore/models.py
285 286 287 288 289 290 291 | |
VerificationMaterial(inner)
Represents a VerificationMaterial structure.
Init method.
Source code in sigstore/models.py
299 300 301 | |
timestamp_verification_data
property
Returns the Timestamp Verification Data, if present.
InvalidBundle
Bases: Error
Raised when the associated Bundle is invalid in some way.
diagnostics()
Returns diagnostics for the error.
Source code in sigstore/models.py
321 322 323 324 325 326 327 328 329 330 331 332 333 334 | |
IncompatibleEntry
Bases: InvalidBundle
Raised when the log entry within the Bundle has an incompatible KindVersion.
diagnostics()
Returns diagnostics for the error.
Source code in sigstore/models.py
342 343 344 345 346 347 348 349 350 351 352 353 | |
Bundle(inner)
Represents a Sigstore bundle.
Creates a new bundle. This is not a public API; use
from_json instead.
@private
Source code in sigstore/models.py
375 376 377 378 379 380 381 382 383 | |
signing_certificate
property
Returns the bundle's contained signing (i.e. leaf) certificate.
log_entry
property
Returns the bundle's log entry, containing an inclusion proof (with checkpoint) and an inclusion promise (if the latter is present).
signature
property
Returns the signature bytes of this bundle. Either from the DSSE Envelope or from the message itself.
verification_material
property
Returns the bundle's verification material.
BundleType
Bases: StrEnum
Known Sigstore bundle media types.
from_json(raw)
classmethod
Deserialize the given Sigstore bundle.
Source code in sigstore/models.py
548 549 550 551 552 553 554 555 556 557 | |
to_json()
Return a JSON encoding of this bundle.
Source code in sigstore/models.py
559 560 561 562 563 | |
from_parts(cert, sig, log_entry)
classmethod
Construct a Sigstore bundle (of hashedrekord type) from its
constituent parts.
Source code in sigstore/models.py
582 583 584 585 586 587 588 589 590 591 592 593 | |
SigningConfig(inner, tlog_version=None)
Signing configuration for a Sigstore instance.
Construct a new SigningConfig.
tlog_version is an optional argument that enforces that only specified versions of rekor are included in the transparency logs.
@api private
Source code in sigstore/models.py
660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 | |
SigningConfigType
Bases: StrEnum
Known Sigstore signing config media types.
from_file(path)
classmethod
Create a new signing config from file
Source code in sigstore/models.py
706 707 708 709 710 711 712 713 | |
get_tlogs()
Returns the rekor transparency log clients to sign with.
Source code in sigstore/models.py
762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 | |
get_fulcio()
Returns a Fulcio client to get a signing certificate from
Source code in sigstore/models.py
780 781 782 783 784 | |
get_oidc_url()
Returns url for the OIDC provider that client should use to interactively authenticate.
Source code in sigstore/models.py
786 787 788 789 790 791 792 793 | |
get_tsas()
Returns timestamp authority clients for urls configured in signing config.
Source code in sigstore/models.py
795 796 797 798 799 | |
TrustedRoot(inner)
The cryptographic root(s) of trust for a Sigstore instance.
Construct a new TrustedRoot.
@api private
Source code in sigstore/models.py
818 819 820 821 822 823 824 825 | |
TrustedRootType
Bases: StrEnum
Known Sigstore trusted root media types.
from_file(path)
classmethod
Create a new trust root from file
Source code in sigstore/models.py
839 840 841 842 843 844 845 846 | |
rekor_keyring(purpose)
Return keyring with keys for Rekor.
Source code in sigstore/models.py
864 865 866 867 868 869 870 871 872 | |
ct_keyring(purpose)
Return keyring with key for CTFE.
Source code in sigstore/models.py
874 875 876 877 878 879 880 881 | |
get_fulcio_certs()
Return the Fulcio certificates.
Source code in sigstore/models.py
883 884 885 886 887 888 889 890 891 892 893 894 895 896 | |
get_timestamp_authorities()
Return the TSA present in the trusted root.
This list may be empty and in this case, no timestamp verification can be performed.
Source code in sigstore/models.py
898 899 900 901 902 903 904 905 906 907 908 909 | |
ClientTrustConfig(inner)
Represents a Sigstore client's trust configuration, including a root of trust.
@api private
Source code in sigstore/models.py
988 989 990 991 992 993 994 995 | |
trusted_root
property
Return the interior root of trust, as a TrustedRoot.
signing_config
property
Return the interior root of trust, as a SigningConfig.
ClientTrustConfigType
Bases: StrEnum
Known Sigstore client trust config media types.
from_json(raw)
classmethod
Deserialize the given client trust config.
Source code in sigstore/models.py
928 929 930 931 932 933 934 | |
production(offline=False)
classmethod
Create new trust config from Sigstore production TUF repository.
If offline, will use data in local TUF cache. Otherwise will
update the data from remote TUF repository.
Source code in sigstore/models.py
936 937 938 939 940 941 942 943 944 945 946 | |
staging(offline=False)
classmethod
Create new trust config from Sigstore staging TUF repository.
If offline, will use data in local TUF cache. Otherwise will
update the data from remote TUF repository.
Source code in sigstore/models.py
948 949 950 951 952 953 954 955 956 957 958 | |
from_tuf(url, offline=False, bootstrap_root=None)
classmethod
Create a new trust config from a TUF repository.
If offline, will use data in local TUF cache. Otherwise will
update the trust config from remote TUF repository.
Source code in sigstore/models.py
960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 | |