Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/release/os/5.2' into mbrkic-r3/C…
Browse files Browse the repository at this point in the history
…ORE-18320/flow-timeout
  • Loading branch information
mbrkic-r3 committed Dec 20, 2023
2 parents 52b6a1b + 896bd2f commit ad4863b
Show file tree
Hide file tree
Showing 11 changed files with 152 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"type": "record",
"name": "DecryptRpcCommand",
"namespace": "net.corda.data.crypto.wire.ops.encryption.request",
"doc": "Request to decrypt the given byte array",
"fields": [
{
"name": "category",
"type": "string",
"doc": "The category of HSM e.g. ENCRYPTION_SECRET, TLS, etc."
},
{
"name": "alias",
"type": ["null", "string"],
"doc": "The symmetric key alias."
},
{
"name": "cipherBytes",
"type": "bytes",
"doc": "The data to decrypt."
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"type": "record",
"name": "EncryptRpcCommand",
"namespace": "net.corda.data.crypto.wire.ops.encryption.request",
"doc": "Request to encrypt the given byte array",
"fields": [
{
"name": "category",
"type": "string",
"doc": "The category of HSM e.g. ENCRYPTION_SECRET, TLS, etc."
},
{
"name": "alias",
"type": ["null", "string"],
"doc": "The symmetric key alias."
},
{
"name": "plainBytes",
"type": "bytes",
"doc": "The data to encrypt."
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"type": "record",
"name": "CryptoDecryptionResult",
"namespace": "net.corda.data.crypto.wire.ops.encryption.response",
"doc": "Decryption operation response",
"fields": [
{
"name": "plainBytes",
"type": "bytes",
"doc": "Decrypted byte array"
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"type": "record",
"name": "CryptoEncryptionResult",
"namespace": "net.corda.data.crypto.wire.ops.encryption.response",
"doc": "Encryption operation response",
"fields": [
{
"name": "cipherBytes",
"type": "bytes",
"doc": "Encrypted byte array"
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"type": "record",
"name": "DecryptionOpsResponse",
"namespace": "net.corda.data.crypto.wire.ops.encryption.response",
"doc": "Response for crypto's decryption operations envelope",
"fields": [
{
"name": "response",
"type": [
"net.corda.data.crypto.wire.ops.encryption.response.CryptoDecryptionResult",
"net.corda.data.crypto.wire.ops.encryption.response.EncryptionOpsError"
],
"doc": "Response's payload, depends on the requested operation"
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"type": "record",
"name": "EncryptionOpsError",
"namespace": "net.corda.data.crypto.wire.ops.encryption.response",
"doc": "Error result while performing encryption or decryption operation.",
"fields": [
{
"name": "errorMessage",
"type": "net.corda.data.ExceptionEnvelope"
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"type": "record",
"name": "EncryptionOpsResponse",
"namespace": "net.corda.data.crypto.wire.ops.encryption.response",
"doc": "Response for crypto's encryption operations envelope",
"fields": [
{
"name": "response",
"type": [
"net.corda.data.crypto.wire.ops.encryption.response.CryptoEncryptionResult",
"net.corda.data.crypto.wire.ops.encryption.response.EncryptionOpsError"
],
"doc": "Response's payload, depends on the requested operation"
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"type": "record",
"name": "SessionState",
"namespace": "net.corda.data.p2p.state",
"fields": [
{
"doc": "The message.",
"name": "message",
"type": "net.corda.data.p2p.LinkOutMessage"
},
{
"doc": "The encrypted session data.",
"name": "encryptedSessionData",
"type": "bytes"
}
]
}
2 changes: 0 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@ publicArtifactURL = https://download.corda.net/maven
org.gradle.jvmargs=-Dfile.encoding=UTF-8 -XX:MaxMetaspaceSize=2g
internalPluginVersion = 1.+

gradleEnterpriseVersion = 3.14.1
gradleDataPlugin = 1.8.2
org.gradle.caching = true
gradleEnterpriseUrl = https://gradle.dev.r3.com

Expand Down
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ cyclonedxVersion = "1.8.1"
dokkaVersion = "1.8.20"
detektVersion = "1.23.4"
dependencyCheckVersion = "0.46.0"
gradleDataVersion = "1.8.2"
gradleDataVersion = "1.12.1"
gradleEnterpriseVersion = "3.14.1"
grgitVersion = "5.2.1"
snykVersion = "0.4"
Expand Down
19 changes: 18 additions & 1 deletion settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,28 @@ pluginManagement {
}
gradlePluginPortal()
}
}

// Manually parse the Toml file to workaround issues with version catalog
// not supporting direct use in settings.gradle
def tomlFile = new File(rootDir, 'gradle/libs.versions.toml')
def tomlContent = tomlFile.text
def extractVersion = { String name ->
def pattern = java.util.regex.Pattern.compile("${name}\\s*=\\s*\"([^\"]+)\"")
def matcher = pattern.matcher(tomlContent)
if (matcher.find()) {
return matcher.group(1)
} else {
return null
}
}

def gradleEnterpriseVersion = extractVersion('gradleEnterpriseVersion')
def gradleDataPluginVersion = extractVersion('gradleDataVersion')

plugins {
id 'com.gradle.enterprise' version gradleEnterpriseVersion
id 'com.gradle.common-custom-user-data-gradle-plugin' version gradleDataPlugin
id 'com.gradle.common-custom-user-data-gradle-plugin' version gradleDataPluginVersion
}
}
plugins {
Expand Down

0 comments on commit ad4863b

Please sign in to comment.