Skip to content

Commit

Permalink
#687 WIP to help with the Issue discussion
Browse files Browse the repository at this point in the history
  • Loading branch information
Budlee committed Dec 17, 2024
1 parent 94dcc45 commit 6863005
Show file tree
Hide file tree
Showing 5 changed files with 107 additions and 1 deletion.
4 changes: 4 additions & 0 deletions calm/domains-example/pattern/instantiation.json
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,10 @@
{
"control-requirement-url": "https://raw.githubusercontent.com/finos/architecture-as-code/main/calm/domains-example/security/schema/permitted-connection.json",
"control-config-url": "https://raw.githubusercontent.com/finos/architecture-as-code/main/calm/domains-example/security/cluster-internal-mtls.json"
},
{
"control-requirement-url": "https://raw.githubusercontent.com/finos/architecture-as-code/main/calm/domains-example/security/schema/encryption-in-transit.json",
"control-config-url": "https://raw.githubusercontent.com/finos/architecture-as-code/main/calm/domains-example/security/"
}
]
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"$schema": "https://raw.githubusercontent.com/finos/architecture-as-code/main/calm/domains-example/security/policies/policy-encryption-in-transit.json",
"control-id": "policy-001",
"name": "Encryption in transit",
"description": "Point to point communication must be encrypted",
"statement": "You MUST encrypt all data in transit with an approved protocol using an approved secure cryptographic protocol",
"protocol": "mTLS"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://raw.githubusercontent.com/finos/architecture-as-code/main/calm/domains-example/security/policies/encryption-in-transit.json",
"title": "Encryption in Transit policy",
"type": "object",
"allOf": [
{
"$ref": "https://raw.githubusercontent.com/finos/architecture-as-code/main/calm/domains-example/security/schema/policy.json"
}
],
"properties": {
"control-id": {
"const": "Policy-01"
},
"name": {
"const": "Encryption in transit"
},
"description": {
"const": "Point to point communication must be encrypted"
},
"statement": {
"const": "You MUST encrypt all data in transit with an approved protocol using an approved secure cryptographic protocol"
},
"protocol": {
"$ref": "#/defs/protocol"
}

},
"required": [
"control-id",
"name",
"description",
"statement",
"protocol"
],
"defs": {
"protocol": {
"enum": [
"TLS",
"mTLS",
"ssh",
"smpt"
]
}
}
}

36 changes: 36 additions & 0 deletions calm/domains-example/security/schema/policy.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://raw.githubusercontent.com/finos/architecture-as-code/main/calm/domains-example/security/schema/policy.json",
"title": "Policy",
"type": "object",
"allOf": [
{
"$ref": "https://raw.githubusercontent.com/finos/architecture-as-code/main/calm/draft/2024-08/meta/control-requirement.json"
}
],
"properties": {
"control-id": {
"type": "string",
"description": "Unique id of the control"
},
"name": {
"type": "string",
"description": "Name of the policy"
},
"description": {
"type": "string",
"description": "Layman's explanation of the policy"
},
"statement": {
"type": "string",
"description": "The policy statement that the Policy adheres to e.g. YOU MUST ENABLE END TO END ENCRYPTION"
}
},
"required": [
"control-id",
"name",
"description",
"statement"
]
}

Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,17 @@
"direction": "destination-to-source"
}
],
"controls": {
"controls": [{
"security": {
"description": "Encryption in transit control",
"requirements": [
{
"control-requirement-url": "https://calm.finos.org/samples/traderx/controls/flow-sla-control-requirement.json",
"control-config": "https://calm.finos.org/samples/traderx/flows/submit-trade-ticket/submit-trade-ticket-control-configuration.json"
}
]
},
},{
"submit-trade-ticket-sla": {
"description": "Control requirement for flow SLA",
"requirements": [
Expand All @@ -54,4 +64,5 @@
]
}
}
]
}

0 comments on commit 6863005

Please sign in to comment.