Uploaded image for project: 'Indy Node'
  1. Indy Node
  2. INDY-1967

ANYONE_CAN_WRITE = True breaks roles validation

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Complete
    • Priority: High
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 1.9.0
    • Component/s: None
    • Labels:
      None
    • Documentation Impact:
      Unset
    • Sprint:
      Ev-Node 19.12

      Description

      Environment:
      indy-node 1.6.772

      Steps to Reproduce: 
      1. Set ANYONE_CAN_WRITE = True in node configs, restart the pool.
      2. Run acceptance batch https://github.com/hyperledger/indy-node/blob/master/acceptance/indy-cli-batches/AS-03-01-identity-owner-anyone-can-write.batch
      3. Compare actual and expected results.

      Actual Results:
      Identity Owner can blacklist Trustee, create Steward etc.

      Expected Results:
      ANYONE_CAN_WRITE = True should not break roles validation for NYM txn.

      Additional Information:

      • This issue is actual not only for Identity Owner. For example, Steward can create Trustee:
        pool(p4):wallet(AS-03-wallet-owner):did(Ahq...xCn):indy> ledger get-nym did=CbPwHxKEibPhV4pgXWpu26
        Following NYM has been received.
        Metadata:
        +------------------------+-----------------+---------------------+---------------------+
        | Identifier             | Sequence Number | Request ID          | Transaction time    |
        +------------------------+-----------------+---------------------+---------------------+
        | AhqUV2zHYdNaWLFCCe7xCn | 27              | 1548685898206190160 | 2019-01-28 14:13:16 |
        +------------------------+-----------------+---------------------+---------------------+
        Data:
        +------------------------+------------------------+-------------------------+---------+
        | Identifier             | Dest                   | Verkey                  | Role    |
        +------------------------+------------------------+-------------------------+---------+
        | LBbKEeczA9iL21p4Kgxcuf | CbPwHxKEibPhV4pgXWpu26 | ~MviYa49QADQXAM68WSiLPD | STEWARD |
        +------------------------+------------------------+-------------------------+---------+
        pool(p4):wallet(AS-03-wallet-owner):did(Ahq...xCn):indy> did use CbPwHxKEibPhV4pgXWpu26
        Did "CbPwHxKEibPhV4pgXWpu26" has been set as active
        pool(p4):wallet(AS-03-wallet-owner):did(CbP...u26):indy> ledger nym did=CbPwHxKEibPhV4pgXWpu11 role=TRUSTEE
        Nym request has been sent to Ledger.
        Metadata:
        +------------------------+-----------------+---------------------+---------------------+
        | From                   | Sequence Number | Request ID          | Transaction time    |
        +------------------------+-----------------+---------------------+---------------------+
        | CbPwHxKEibPhV4pgXWpu26 | 44              | 1548685914743831922 | 2019-01-28 14:31:54 |
        +------------------------+-----------------+---------------------+---------------------+
        Data:
        +------------------------+---------+
        | Did                    | Role    |
        +------------------------+---------+
        | CbPwHxKEibPhV4pgXWpu11 | TRUSTEE |
        +------------------------+---------+
        
      • This issue is actual only for NYM txns, pool restart and get-validator-info works well.
      • Note that attached expected result accords to previous version of batch, so some cases absent there.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              ozheregelya Olga Zheregelya
              Watchers:
              Alexander Shcherbakov, Olga Zheregelya
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: