@@ -49,13 +49,29 @@ var Default = Schema{
4949 WorkflowTriggerRateLimit : Rate (200 , 200 ),
5050 GatewayIncomingPayloadSizeLimit : Size (1 * config .MByte ),
5151
52+ // DANGER(cedric): Be extremely careful changing these vault limits as they act as a default value
53+ // used by the Vault OCR plugin -- changing these values could cause issues with the plugin during an image
54+ // upgrade as nodes apply the old and new values inconsistently. A safe upgrade path
55+ // must ensure that we are overriding the default in the onchain configuration for the contract.
56+ VaultCiphertextSizeLimit : Size (2 * config .KByte ),
57+ VaultIdentifierKeySizeLimit : Size (64 * config .Byte ),
58+ VaultIdentifierOwnerSizeLimit : Size (64 * config .Byte ),
59+ VaultIdentifierNamespaceSizeLimit : Size (64 * config .Byte ),
60+ VaultBatchSizeLimit : Int (20 ),
61+
5262 PerOrg : Orgs {
5363 WorkflowDeploymentRateLimit : Rate (rate .Every (time .Minute ), 1 ),
5464 ZeroBalancePruningTimeout : Duration (24 * time .Hour ),
5565 },
5666 PerOwner : Owners {
5767 WorkflowExecutionConcurrencyLimit : Int (5 ),
5868 WorkflowTriggerRateLimit : Rate (5 , 5 ),
69+
70+ // DANGER(cedric): Be extremely careful changing this vault limit as it acts as a default value
71+ // used by the Vault OCR plugin -- changing this value could cause issues with the plugin during an image
72+ // upgrade as nodes apply the old and new values inconsistently. A safe upgrade path
73+ // must ensure that we are overriding the default in the onchain configuration for the contract.
74+ VaultSecretsLimit : Int (100 ),
5975 },
6076 PerWorkflow : Workflows {
6177 TriggerRateLimit : Rate (rate .Every (30 * time .Second ), 3 ),
@@ -128,6 +144,12 @@ type Schema struct {
128144 WorkflowTriggerRateLimit Setting [config.Rate ]
129145 GatewayIncomingPayloadSizeLimit Setting [config.Size ]
130146
147+ VaultCiphertextSizeLimit Setting [config.Size ]
148+ VaultIdentifierKeySizeLimit Setting [config.Size ] `unit:"{byte}"`
149+ VaultIdentifierOwnerSizeLimit Setting [config.Size ] `unit:"{byte}"`
150+ VaultIdentifierNamespaceSizeLimit Setting [config.Size ] `unit:"{byte}"`
151+ VaultBatchSizeLimit Setting [int ] `unit:"{request}"`
152+
131153 PerOrg Orgs `scope:"org"`
132154 PerOwner Owners `scope:"owner"`
133155 PerWorkflow Workflows `scope:"workflow"`
@@ -142,6 +164,7 @@ type Owners struct {
142164 WorkflowExecutionConcurrencyLimit Setting [int ] `unit:"{workflow}"`
143165 // Deprecated
144166 WorkflowTriggerRateLimit Setting [config.Rate ]
167+ VaultSecretsLimit Setting [int ] `unit:"{secret}"`
145168}
146169
147170type Workflows struct {
0 commit comments