From fe8baf4b17070cf765f7cef59b7bcd5c603d1a0c Mon Sep 17 00:00:00 2001 From: Ramzi El-Yafi Date: Fri, 19 Feb 2021 17:05:23 +0000 Subject: [PATCH] NAAS-49 Flag notary/extraConfig block as sensitive (#6880) --- .github/workflows/check-pr-title.yml | 2 +- .../net/corda/node/services/config/schema/v1/ConfigSections.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/check-pr-title.yml b/.github/workflows/check-pr-title.yml index ce097eb02a..a27b6c02e4 100644 --- a/.github/workflows/check-pr-title.yml +++ b/.github/workflows/check-pr-title.yml @@ -9,6 +9,6 @@ jobs: steps: - uses: morrisoncole/pr-lint-action@v1.4.1 with: - title-regex: '^((CORDA|AG|EG|ENT|INFRA)-\d+|NOTICK)(.*)' + title-regex: '^((CORDA|AG|EG|ENT|INFRA|NAAS)-\d+|NOTICK)(.*)' on-failed-regex-comment: "PR title failed to match regex -> `%regex%`" repo-token: "${{ secrets.GITHUB_TOKEN }}" diff --git a/node/src/main/kotlin/net/corda/node/services/config/schema/v1/ConfigSections.kt b/node/src/main/kotlin/net/corda/node/services/config/schema/v1/ConfigSections.kt index c68c9a2378..eb06334901 100644 --- a/node/src/main/kotlin/net/corda/node/services/config/schema/v1/ConfigSections.kt +++ b/node/src/main/kotlin/net/corda/node/services/config/schema/v1/ConfigSections.kt @@ -205,7 +205,7 @@ internal object NotaryConfigSpec : Configuration.Specification("No private val serviceLegalName by string().mapValid(::toCordaX500Name).optional() private val className by string().optional() private val etaMessageThresholdSeconds by int().optional().withDefaultValue(NotaryServiceFlow.defaultEstimatedWaitTime.seconds.toInt()) - private val extraConfig by nestedObject().map(ConfigObject::toConfig).optional() + private val extraConfig by nestedObject(sensitive = true).map(ConfigObject::toConfig).optional() private val raft by nested(RaftConfigSpec).optional() private val bftSMaRt by nested(BFTSmartConfigSpec).optional() private val enableOverridableFlows by boolean().optional()