Skip to content

Testnet platform service for managing blockchain network configuration and the composition of channels and chaincodes

License

anoideaopen/hlf-control-plane

Repository files navigation

hlf-control-plane

Service for hlf fabric administration

TOC

Description

A utility service that provides simplified access to fabric administrative functions, such as creating channels, installing chaincodes, and updating channels.

Open API

The service provides OpenAPI (Swagger) functionality. The list of methods and request formats is available at the link.

Configuration

# Msp ID of your organization
mspId: testnetMSP
# Logging level
logLevel: debug
# Access token value
accessToken: "my_awesome_token"
# Path to the certificate and private key of your identity
identity:
  cert: certs/admin.pem
  key: certs/admin_key.pem
# or bccsp config of pkcs11
#  bccsp:
#    Default: PKCS11
#    PKCS11:
#      immutable: false
#      label: Org_Admin
#      library: /usr/lib/softhsm/libsofthsm2.so
#      pin: 123321
#      hash: SHA2
#      security: 256

# Tls credentials for mutual tls connection
tls:
  cert: cert.pem
  key: key.pem
  ca: ca.pem

# List of peers managed by organization
peers:
  - host: peer1.ideatestnet.io:7051
  - host: peer2.ideatestnet.io:7051

# ports configuration for grpc and http
listen:
  http: ":8080"
  grpc: ":8081"

Monitoring

The service includes a built-in healthcheck mechanism, available without authentication at the path /v1/healthz, returning information in the following format:

{
  "status": "SERVING"
}

Development

Utils

For the generation of tools needed for work, use

make build-tools

Tools and their dependencies are described in the tools module. The installation path is $(pwd)/bin by default.

Protobuf

  1. protodep - protobuf dependency management
  2. buf - generate and lint protobuf code

To download vendored protobuf dependencies:

bin/protodep up

Code generation

Use go generate in the root path to generate code from .proto and swagger client for tests:

go generate

License

Default license

Links

About

Testnet platform service for managing blockchain network configuration and the composition of channels and chaincodes

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages