security: verify OC orders, fail-closed revoke, per-IP rate buckets, escaped guest email
ci/woodpecker/push/woodpecker Pipeline failed
ci/woodpecker/push/woodpecker Pipeline failed
This commit is contained in:
1 parent
5a0a3decbe
commit
c9726f4029
6 files changed
+264
-104
No files matched your search
@@ -69,7 +69,7 @@ def grant_once(email, amount, ref):
|
||||
|
||||
# --- reference building: per-order, non-empty, distinct per purchase ---
|
||||
check("reference keyed on the order id",
|
||||
credit_pack_reference("caseyg", {"idV2": "or_abc123"}), "oc:caseyg:or_abc123")
|
||||
credit_pack_reference("caseyg", {"idV2": "or_abc123"}), "oc:or_abc123")
|
||||
check("two purchases differ even from one member",
|
||||
credit_pack_reference("caseyg", {"idV2": "or_1"}) != credit_pack_reference("caseyg", {"idV2": "or_2"}),
|
||||
True)
|
||||
|
||||
Reference in new issue
Block a user