Skip to content

Commit

Permalink
CORE-19029 - restricted state types (#1470)
Browse files Browse the repository at this point in the history
Add restriction to corda.stateManager.json of which state types are acceptable
  • Loading branch information
conalsmith-r3 authored Jan 26, 2024
1 parent 754d0cd commit 131e2e3
Showing 1 changed file with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
"title": "Corda State Manager Configuration Schema",
"description": "Configuration schema for the State Manager section. This configures the interactions of the workers with the underlying persistent storage used by the out of process State Manager.",
"type": "object",
"propertyNames": {
"$ref": "#/$defs/validStateTypes"
},
"additionalProperties": {
"type": "object",
"$ref": "#/$defs/stateTypeConfig"
Expand Down Expand Up @@ -45,6 +48,16 @@
}
}
]
},
"validStateTypes": {
"enum": [
"flowCheckpoint",
"flowMapping",
"flowStatus",
"keyRotation",
"p2pSession",
"tokenPoolCache"
]
}
}
}

0 comments on commit 131e2e3

Please sign in to comment.