Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions static/schemas/Builder.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"type": "object",
"properties": {
"claim_version": {
"description": "The version of the claim. Defaults to 2.\n\nC2PA v1 claim signing (`Some(1)`) is deprecated as of 0.92.0 and will be\nremoved in 0.93.0, scheduled for mid-January 2027. Omit this field or set\nit to `Some(2)` to sign C2PA v2 claims instead. Reading and validating\nexisting C2PA v1 claims is unaffected.\nSee the [migration guide](https://github.com/contentauth/c2pa-rs/blob/main/docs/c2pa-v1-signing-migration.md).",
"description": "The version of the claim. Defaults to 2, the only version that can be signed.\n\nC2PA v1 claim signing was removed in 0.93.0: signing with `Some(1)` fails.\nReading and validating existing C2PA v1 claims is unaffected.\nSee the [migration guide](https://github.com/contentauth/c2pa-rs/blob/main/docs/c2pa-v1-signing-migration.md).",
"type": [
"integer",
"null"
Expand Down Expand Up @@ -53,7 +53,7 @@
"instance_id": {
"description": "Instance ID from `xmpMM:InstanceID` in XMP metadata.",
"type": "string",
"default": "xmp.iid:8c50efaf-02b4-46a7-ab47-5d6428607790"
"default": "xmp.iid:938b0784-8b60-4008-9cc6-a0f447f5861d"
},
"thumbnail": {
"description": "An optional ResourceRef to a thumbnail image that represents the asset that was signed.\nMust be available when the manifest is signed.",
Expand Down
4 changes: 2 additions & 2 deletions static/schemas/ManifestDefinition.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"type": "object",
"properties": {
"claim_version": {
"description": "The version of the claim. Defaults to 2.\n\nC2PA v1 claim signing (`Some(1)`) is deprecated as of 0.92.0 and will be\nremoved in 0.93.0, scheduled for mid-January 2027. Omit this field or set\nit to `Some(2)` to sign C2PA v2 claims instead. Reading and validating\nexisting C2PA v1 claims is unaffected.\nSee the [migration guide](https://github.com/contentauth/c2pa-rs/blob/main/docs/c2pa-v1-signing-migration.md).",
"description": "The version of the claim. Defaults to 2, the only version that can be signed.\n\nC2PA v1 claim signing was removed in 0.93.0: signing with `Some(1)` fails.\nReading and validating existing C2PA v1 claims is unaffected.\nSee the [migration guide](https://github.com/contentauth/c2pa-rs/blob/main/docs/c2pa-v1-signing-migration.md).",
"type": [
"integer",
"null"
Expand Down Expand Up @@ -53,7 +53,7 @@
"instance_id": {
"description": "Instance ID from `xmpMM:InstanceID` in XMP metadata.",
"type": "string",
"default": "xmp.iid:f31bf207-2df4-4c5d-9956-7366b53cf5e7"
"default": "xmp.iid:31c96da5-4757-4892-b419-2ac82611a731"
},
"thumbnail": {
"description": "An optional ResourceRef to a thumbnail image that represents the asset that was signed.\nMust be available when the manifest is signed.",
Expand Down
2 changes: 1 addition & 1 deletion static/schemas/Reader.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@
"instance_id": {
"description": "Instance ID from `xmpMM:InstanceID` in XMP metadata.",
"type": "string",
"default": "xmp.iid:645aa858-a88e-4818-9d7b-ef4bc8e3dfd7"
"default": "xmp.iid:110833c5-07ef-4bee-9863-7487556d47f4"
},
"thumbnail": {
"anyOf": [
Expand Down
4 changes: 2 additions & 2 deletions static/schemas/Settings.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@
"default": null
},
"use_default_ekus": {
"description": "Whether to accept the built-in set of extended key usage (EKU) OIDs defined\nby the C2PA specification in addition to those listed in [`Trust::trust_config`].\n\nWhen false, only the EKUs listed in [`Trust::trust_config`] (and any\n[`TrustAnchor::trust_config`]) are accepted for claim signing.\nFor legacy compatibility, `id-kp-emailProtection` is also accepted when\nno valid EKUs are loaded. `id-kp-timeStamping` and `id-kp-OCSPSigning`\nremain accepted by the general profile check; TSA and OCSP responder\nprofiles additionally require their respective EKU.\n\nThe default value is true.",
"description": "Whether to accept the built-in set of extended key usage (EKU) OIDs defined\nby the C2PA specification in addition to those listed in [`Trust::trust_config`].\n\nWhen false, only the EKUs listed in [`Trust::trust_config`] (and any\n[`TrustAnchor::trust_config`]) are accepted for claim signing.\nFor legacy compatibility, `id-kp-emailProtection` is also accepted when\nno valid EKUs are loaded. Claim signing always rejects `id-kp-timeStamping`\nand `id-kp-OCSPSigning`, including when explicitly configured. The shared\ncertificate profile still accepts these purposes for their own roles:\nTSA and delegated OCSP responder profiles require their respective EKU.\n\nThe default value is true.",
"type": "boolean",
"default": true
}
Expand Down Expand Up @@ -178,7 +178,7 @@
"default": "manifest"
},
"trust_config": {
"description": "List of allowed extended key usage (EKU) object identifiers (OID) that\ncertificates must have. This will overlay the default top level trust_config.\nIf the trust_kind is CAWG it will override the top level trust config\n\nWhen validating CAWG identity certificates.\n\nThe CAWG interim trust model (CAWG identity assertion spec §8.2.4.1)\nrequires the `id-kp-emailProtection` EKU (1.3.6.1.5.5.7.3.4) together with\none of the CA/Browser Forum S/MIME certificate-policy OIDs:\norganization-validated (2.23.140.1.5.2.2 / 2.23.140.1.5.2.3),\nsponsor-validated (2.23.140.1.5.3.2 / 2.23.140.1.5.3.3), or\nindividual-validated (2.23.140.1.5.4.2 / 2.23.140.1.5.4.3). Mailbox-validated\nand legacy certificate purposes are not accepted.\n\nThese six policy OIDs are enforced by CAWG X.509 validation, not parsed\nfrom this EKU-only setting. An emailProtection certificate is trusted\nunder the interim model only through 31 March 2027 (inclusive, UTC), or\nwhen a trusted, associated timestamp attests to issuance by that date.\nAssertion-local timestamps must be v2 (`sigTst2`). Manifest timestamps\nand timestamp assertions are accepted only after checking their binding\nto the containing claim's signature and this assertion's signed hash.\nTimestamp signature, imprint, TSA profile, and TSA trust are checked even\nif claim timestamp trust checking is disabled.\n\n`id-kp-documentSigning` is a separate, non-interim acceptance path. If\nthat purpose is accepted by the effective EKU policy, a certificate\ncontaining both documentSigning and emailProtection does not need an\ninterim S/MIME policy or cutoff check. Existing certificate-profile and\nconfigured CAWG trust-anchor/allowed-list checks still apply. Claim\nsigners, TSA certificates, and OCSP responders do not acquire these CAWG\ninterim restrictions.",
"description": "List of allowed extended key usage (EKU) object identifiers (OID) that\ncertificates must have. These add to the effective top-level EKUs for\nthis anchor set only; they do not enable a purpose for unrelated anchors.\nClaim signers cannot use timeStamping or OCSPSigning, even if listed.\n\nWhen validating CAWG identity certificates.\n\nThe CAWG interim trust model (CAWG identity assertion spec §8.2.4.1)\nrequires the `id-kp-emailProtection` EKU (1.3.6.1.5.5.7.3.4) together with\none of the CA/Browser Forum S/MIME certificate-policy OIDs:\norganization-validated (2.23.140.1.5.2.2 / 2.23.140.1.5.2.3),\nsponsor-validated (2.23.140.1.5.3.2 / 2.23.140.1.5.3.3), or\nindividual-validated (2.23.140.1.5.4.2 / 2.23.140.1.5.4.3). Mailbox-validated\nand legacy certificate purposes are not accepted.\n\nThese six policy OIDs are enforced by CAWG X.509 validation, not parsed\nfrom this EKU-only setting. An emailProtection certificate is trusted\nunder the interim model only through 31 March 2027 (inclusive, UTC), or\nwhen a trusted, associated timestamp attests to issuance by that date.\nAssertion-local timestamps must be v2 (`sigTst2`). Manifest timestamps\nand timestamp assertions are accepted only after checking their binding\nto the containing claim's signature and this assertion's signed hash.\nTimestamp signature, imprint, TSA profile, and TSA trust are checked even\nif claim timestamp trust checking is disabled.\n\n`id-kp-documentSigning` is a separate, non-interim acceptance path. If\nthat purpose is accepted by the effective EKU policy, a certificate\ncontaining both documentSigning and emailProtection does not need an\ninterim S/MIME policy or cutoff check. Existing certificate-profile and\nconfigured CAWG trust-anchor/allowed-list checks still apply. Claim\nsigners, TSA certificates, and OCSP responders do not acquire these CAWG\ninterim restrictions.",
"type": [
"string",
"null"
Expand Down
Loading