You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: token/core/common/validator_auditing.go
+22Lines changed: 22 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -20,6 +20,23 @@ var (
20
20
)
21
21
22
22
// AuditingSignaturesValidate validates the auditor signatures in the token request.
23
+
//
24
+
// Auditor Signature Model:
25
+
//
26
+
// The current implementation follows a 1-of-N auditor signature policy:
27
+
//
28
+
// - If auditors are configured in the public parameters, at least one
29
+
// valid auditor signature must be present in the token request.
30
+
// - Multiple auditor public keys may be configured (e.g., during key rotation).
31
+
// - The validator verifies that each provided auditor signature corresponds
32
+
// to a configured auditor and that the signature is valid.
33
+
// - The validator does NOT enforce N-of-N semantics.
34
+
// - The validator does NOT enforce per-entity auditor checks.
35
+
// - All configured auditor public keys are treated as belonging to a
36
+
// single logical auditor entity.
37
+
//
38
+
// This behavior matches the semantics implemented by current token drivers.
39
+
23
40
funcAuditingSignaturesValidate[P driver.PublicParameters, T driver.Input, TA driver.TransferAction, IA driver.IssueAction, DS driver.Deserializer](c context.Context, ctx*Context[P, T, TA, IA, DS]) error {
24
41
iflen(ctx.PP.Auditors()) ==0 {
25
42
// enforce no auditor signatures are attached
@@ -35,6 +52,11 @@ func AuditingSignaturesValidate[P driver.PublicParameters, T driver.Input, TA dr
35
52
}
36
53
37
54
auditors:=ctx.PP.Auditors()
55
+
56
+
// Each provided auditor signature is independently verified.
57
+
// The presence of at least one valid signature is sufficient
58
+
// to satisfy the auditing requirement (1-of-N policy).
0 commit comments