github.com/true-sqn/fabric@v2.1.1+incompatible/discovery/support/config/testdata/configtx.yaml (about)

     1  # Copyright IBM Corp. All Rights Reserved.
     2  #
     3  # SPDX-License-Identifier: Apache-2.0
     4  #
     5  
     6  ---
     7  ################################################################################
     8  #
     9  #   Section: Organizations
    10  #
    11  #   - This section defines the different organizational identities which will
    12  #   be referenced later in the configuration.
    13  #
    14  ################################################################################
    15  Organizations:
    16  
    17      # SampleOrg defines an MSP using the sampleconfig.  It should never be used
    18      # in production but may be used as a template for other definitions
    19      - &OrdererOrg
    20          # DefaultOrg defines the organization which is used in the sampleconfig
    21          # of the fabric.git development environment
    22          Name: OrdererOrg
    23  
    24          # ID to load the MSP definition as
    25          ID: OrdererMSP
    26  
    27          # MSPDir is the filesystem path which contains the MSP configuration
    28          MSPDir: crypto-config/ordererOrganizations/example.com/msp
    29  
    30          # Policies defines the set of policies at this level of the config tree
    31          # For organization policies, their canonical path is usually
    32          #   /Channel/<Application|Orderer>/<OrgName>/<PolicyName>
    33          Policies:
    34              Readers:
    35                  Type: Signature
    36                  Rule: "OR('OrdererMSP.member')"
    37              Writers:
    38                  Type: Signature
    39                  Rule: "OR('OrdererMSP.member')"
    40              Admins:
    41                  Type: Signature
    42                  Rule: "OR('OrdererMSP.admin')"
    43  
    44      - &Org1
    45          # DefaultOrg defines the organization which is used in the sampleconfig
    46          # of the fabric.git development environment
    47          Name: Org1MSP
    48  
    49          # ID to load the MSP definition as
    50          ID: Org1MSP
    51  
    52          MSPDir: crypto-config/peerOrganizations/org1.example.com/msp
    53  
    54          # Policies defines the set of policies at this level of the config tree
    55          # For organization policies, their canonical path is usually
    56          #   /Channel/<Application|Orderer>/<OrgName>/<PolicyName>
    57          Policies:
    58              Readers:
    59                  Type: Signature
    60                  Rule: "OR('Org1MSP.admin', 'Org1MSP.peer', 'Org1MSP.client')"
    61              Writers:
    62                  Type: Signature
    63                  Rule: "OR('Org1MSP.admin', 'Org1MSP.client')"
    64              Admins:
    65                  Type: Signature
    66                  Rule: "OR('Org1MSP.admin')"
    67  
    68          AnchorPeers:
    69              # AnchorPeers defines the location of peers which can be used
    70              # for cross org gossip communication.  Note, this value is only
    71              # encoded in the genesis block in the Application section context
    72              - Host: peer0.org1.example.com
    73                Port: 7051
    74  
    75      - &Org2
    76          # DefaultOrg defines the organization which is used in the sampleconfig
    77          # of the fabric.git development environment
    78          Name: Org2MSP
    79  
    80          # ID to load the MSP definition as
    81          ID: Org2MSP
    82  
    83          MSPDir: crypto-config/peerOrganizations/org2.example.com/msp
    84  
    85          # Policies defines the set of policies at this level of the config tree
    86          # For organization policies, their canonical path is usually
    87          #   /Channel/<Application|Orderer>/<OrgName>/<PolicyName>
    88          Policies:
    89              Readers:
    90                  Type: Signature
    91                  Rule: "OR('Org2MSP.admin', 'Org2MSP.peer', 'Org2MSP.client')"
    92              Writers:
    93                  Type: Signature
    94                  Rule: "OR('Org2MSP.admin', 'Org2MSP.client')"
    95              Admins:
    96                  Type: Signature
    97                  Rule: "OR('Org2MSP.admin')"
    98  
    99          AnchorPeers:
   100              # AnchorPeers defines the location of peers which can be used
   101              # for cross org gossip communication.  Note, this value is only
   102              # encoded in the genesis block in the Application section context
   103              - Host: peer0.org2.example.com
   104                Port: 7051
   105  
   106      - &Org3
   107          # Name of the organization
   108          Name: Org3MSP
   109  
   110          # ID to load the MSP definition as
   111          ID: Org3MSP
   112  
   113          # Type of MSP - this org uses idemix for its MSP implementation
   114          MSPType: idemix
   115  
   116          MSPDir: crypto-config/idemix/idemix-config
   117  
   118          # Policies defines the set of policies at this level of the config tree
   119          # For organization policies, their canonical path is usually
   120          #   /Channel/<Application|Orderer>/<OrgName>/<PolicyName>
   121          Policies:
   122              Readers:
   123                  Type: Signature
   124                  Rule: "OR('Org3MSP.admin', 'Org3MSP.peer', 'Org3MSP.client')"
   125              Writers:
   126                  Type: Signature
   127                  Rule: "OR('Org3MSP.admin', 'Org3MSP.client')"
   128              Admins:
   129                  Type: Signature
   130                  Rule: "OR('Org3MSP.admin')"
   131  
   132          AnchorPeers:
   133              # AnchorPeers defines the location of peers which can be used
   134              # for cross org gossip communication.  Note, this value is only
   135              # encoded in the genesis block in the Application section context
   136              - Host: peer0.org3.example.com
   137                Port: 7051
   138  
   139  ################################################################################
   140  #
   141  #   SECTION: Capabilities
   142  #
   143  #   - This section defines the capabilities of fabric network. This is a new
   144  #   concept as of v1.1.0 and should not be utilized in mixed networks with
   145  #   v1.0.x peers and orderers.  Capabilities define features which must be
   146  #   present in a fabric binary for that binary to safely participate in the
   147  #   fabric network.  For instance, if a new MSP type is added, newer binaries
   148  #   might recognize and validate the signatures from this type, while older
   149  #   binaries without this support would be unable to validate those
   150  #   transactions.  This could lead to different versions of the fabric binaries
   151  #   having different world states.  Instead, defining a capability for a channel
   152  #   informs those binaries without this capability that they must cease
   153  #   processing transactions until they have been upgraded.  For v1.0.x if any
   154  #   capabilities are defined (including a map with all capabilities turned off)
   155  #   then the v1.0.x peer will deliberately crash.
   156  #
   157  ################################################################################
   158  Capabilities:
   159      # Channel capabilities apply to both the orderers and the peers and must be
   160      # supported by both.
   161      # Set the value of the capability to true to require it.
   162      Channel: &ChannelCapabilities
   163          # V1.3 for Channel is a catchall flag for behavior which has been
   164          # determined to be desired for all orderers and peers running at the v1.3.x
   165          # level, but which would be incompatible with orderers and peers from
   166          # prior releases.
   167          # Prior to enabling V1.3 channel capabilities, ensure that all
   168          # orderers and peers on a channel are at v1.3.0 or later.
   169          V1_3: true
   170  
   171      # Orderer capabilities apply only to the orderers, and may be safely
   172      # used with prior release peers.
   173      # Set the value of the capability to true to require it.
   174      Orderer: &OrdererCapabilities
   175          # V1.1 for Orderer is a catchall flag for behavior which has been
   176          # determined to be desired for all orderers running at the v1.1.x
   177          # level, but which would be incompatible with orderers from prior releases.
   178          # Prior to enabling V1.1 orderer capabilities, ensure that all
   179          # orderers on a channel are at v1.1.0 or later.
   180          V1_1: true
   181  
   182      # Application capabilities apply only to the peer network, and may be safely
   183      # used with prior release orderers.
   184      # Set the value of the capability to true to require it.
   185      Application: &ApplicationCapabilities
   186          # V1.3 for Application enables the new non-backwards compatible
   187          # features and fixes of fabric v1.3.
   188          V1_3: true
   189          # V1.2 for Application enables the new non-backwards compatible
   190          # features and fixes of fabric v1.2 (note, this need not be set if
   191          # later version capabilities are set)
   192          V1_2: false
   193          # V1.1 for Application enables the new non-backwards compatible
   194          # features and fixes of fabric v1.1 (note, this need not be set if
   195          # later version capabilities are set).
   196          V1_1: false
   197  
   198  ################################################################################
   199  #
   200  #   SECTION: Application
   201  #
   202  #   - This section defines the values to encode into a config transaction or
   203  #   genesis block for application related parameters
   204  #
   205  ################################################################################
   206  Application: &ApplicationDefaults
   207  
   208      # Organizations is the list of orgs which are defined as participants on
   209      # the application side of the network
   210      Organizations:
   211  
   212      # Policies defines the set of policies at this level of the config tree
   213      # For Application policies, their canonical path is
   214      #   /Channel/Application/<PolicyName>
   215      Policies:
   216          Readers:
   217              Type: ImplicitMeta
   218              Rule: "ANY Readers"
   219          Writers:
   220              Type: ImplicitMeta
   221              Rule: "ANY Writers"
   222          Admins:
   223              Type: ImplicitMeta
   224              Rule: "MAJORITY Admins"
   225  
   226      # Capabilities describes the application level capabilities, see the
   227      # dedicated Capabilities section elsewhere in this file for a full
   228      # description
   229      Capabilities:
   230          <<: *ApplicationCapabilities
   231  
   232  ################################################################################
   233  #
   234  #   SECTION: Orderer
   235  #
   236  #   - This section defines the values to encode into a config transaction or
   237  #   genesis block for orderer related parameters
   238  #
   239  ################################################################################
   240  Orderer: &OrdererDefaults
   241  
   242      # Orderer Type: The orderer implementation to start
   243      # Available types are "solo" and "kafka"
   244      OrdererType: kafka
   245  
   246      Addresses:
   247          - orderer.example.com:7050
   248  
   249      # Batch Timeout: The amount of time to wait before creating a batch
   250      BatchTimeout: 2s
   251  
   252      # Batch Size: Controls the number of messages batched into a block
   253      BatchSize:
   254  
   255          # Max Message Count: The maximum number of messages to permit in a batch
   256          MaxMessageCount: 10
   257  
   258          # Absolute Max Bytes: The absolute maximum number of bytes allowed for
   259          # the serialized messages in a batch.
   260          AbsoluteMaxBytes: 98 MB
   261  
   262          # Preferred Max Bytes: The preferred maximum number of bytes allowed for
   263          # the serialized messages in a batch. A message larger than the preferred
   264          # max bytes will result in a batch larger than preferred max bytes.
   265          PreferredMaxBytes: 512 KB
   266  
   267      Kafka:
   268          # Brokers: A list of Kafka brokers to which the orderer connects. Edit
   269          # this list to identify the brokers of the ordering service.
   270          # NOTE: Use IP:port notation.
   271          Brokers:
   272              - kafka0:9092
   273              - kafka1:9092
   274              - kafka2:9092
   275              - kafka3:9092
   276  
   277      # Organizations is the list of orgs which are defined as participants on
   278      # the orderer side of the network
   279      Organizations:
   280  
   281      # Policies defines the set of policies at this level of the config tree
   282      # For Orderer policies, their canonical path is
   283      #   /Channel/Orderer/<PolicyName>
   284      Policies:
   285          Readers:
   286              Type: ImplicitMeta
   287              Rule: "ANY Readers"
   288          Writers:
   289              Type: ImplicitMeta
   290              Rule: "ANY Writers"
   291          Admins:
   292              Type: ImplicitMeta
   293              Rule: "MAJORITY Admins"
   294          # BlockValidation specifies what signatures must be included in the block
   295          # from the orderer for the peer to validate it.
   296          BlockValidation:
   297              Type: ImplicitMeta
   298              Rule: "ANY Writers"
   299  
   300      # Capabilities describes the orderer level capabilities, see the
   301      # dedicated Capabilities section elsewhere in this file for a full
   302      # description
   303      Capabilities:
   304          <<: *OrdererCapabilities
   305  
   306  ################################################################################
   307  #
   308  #   CHANNEL
   309  #
   310  #   This section defines the values to encode into a config transaction or
   311  #   genesis block for channel related parameters.
   312  #
   313  ################################################################################
   314  Channel: &ChannelDefaults
   315      # Policies defines the set of policies at this level of the config tree
   316      # For Channel policies, their canonical path is
   317      #   /Channel/<PolicyName>
   318      Policies:
   319          # Who may invoke the 'Deliver' API
   320          Readers:
   321              Type: ImplicitMeta
   322              Rule: "ANY Readers"
   323          # Who may invoke the 'Broadcast' API
   324          Writers:
   325              Type: ImplicitMeta
   326              Rule: "ANY Writers"
   327          # By default, who may modify elements at this config level
   328          Admins:
   329              Type: ImplicitMeta
   330              Rule: "MAJORITY Admins"
   331  
   332  
   333      # Capabilities describes the channel level capabilities, see the
   334      # dedicated Capabilities section elsewhere in this file for a full
   335      # description
   336      Capabilities:
   337          <<: *ChannelCapabilities
   338  
   339  ################################################################################
   340  #
   341  #   Profile
   342  #
   343  #   - Different configuration profiles may be encoded here to be specified
   344  #   as parameters to the configtxgen tool
   345  #
   346  ################################################################################
   347  Profiles:
   348  
   349      TwoOrgsOrdererGenesis:
   350          <<: *ChannelDefaults
   351          Orderer:
   352              <<: *OrdererDefaults
   353              Organizations:
   354                  - *OrdererOrg
   355          Consortiums:
   356              SampleConsortium:
   357                  Organizations:
   358                      - *Org1
   359                      - *Org2
   360                      - *Org3
   361      TwoOrgsChannel:
   362          <<: *ChannelDefaults
   363          Consortium: SampleConsortium
   364          Application:
   365              <<: *ApplicationDefaults
   366              Organizations:
   367                  - *Org1
   368                  - *Org2
   369                  - *Org3