Uploaded image for project: 'Corda'
  1. CORDA-2703

RPC user security using Shiro docs have errant commas in example config

    Details

    • Type: Bug
    • Status: Done (View workflow)
    • Priority: Medium
    • Resolution: Done
    • Affects versions: Corda 4, Corda Enterprise 4 RC03
    • Fix versions: Corda 4.1
    • Components: None
    • Labels:
      None
    • Severity:
      Low
    • Feature Team:
      Select team
    • Sprint:

      Description

      Relating to this page: https://docs.corda.net/head/clientrpc.html#rpc-security-management

      There are two sections. The first is:

      security = {
          authService = {
              dataSource = {
                  type = "DB",
                  passwordEncryption = "SHIRO_1_CRYPT",
                  connection = {
                     jdbcUrl = "<jdbc connection string>"
                     username = "<db username>"
                     password = "<db user password>"
                     driverClassName = "<JDBC driver>"
                  }
              }
              options = {
                   cache = {
                      expireAfterSecs = 120
                      maxEntries = 10000
                   }
              }
          }
      }
      

      The commas after type and passwordEncryption make the build fail if you paste this into the build.gradle file for cordformation. Chatting to Anthony, we believe these should be comma less, even for the node.conf file.

      The next section also has these commas.

        Attachments

          Activity

            People

            • Assignee:
              chris.rankin Chris Rankin
              Reporter:
              bw Ben Wyeth
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: