Skip to content

Commit de92a56

Browse files
Update default Fabric CA version to 1.5.17
Signed-off-by: Mark S. Lewis <Mark.S.Lewis@outlook.com>
1 parent 9540c44 commit de92a56

File tree

10 files changed

+32
-20
lines changed

10 files changed

+32
-20
lines changed

.github/actions/fsat-setup/action.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,16 @@ inputs:
66
default: "lts/*"
77
just-version:
88
description: Just Version
9-
default: "1.43.0"
9+
default: "1.46.0"
1010
k9s-version:
1111
description: k9s Version
12-
default: v0.50.15
12+
default: v0.50.18
1313
fabric-version:
1414
description: Version of Hyperledger Fabric
1515
default: "2.5.14"
1616
ca-version:
1717
description: Version of Hyperledger Fabric CA
18-
default: "1.5.15"
18+
default: "1.5.17"
1919

2020
runs:
2121
using: "composite"

.github/actions/test-network-setup/action.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ inputs:
1515
default: 2.5.14
1616
ca-version:
1717
description: Version of Hyperledger Fabric CA
18-
default: 1.5.15
18+
default: 1.5.17
1919

2020
runs:
2121
using: "composite"

full-stack-asset-transfer-guide/contracts/asset-transfer-typescript/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ RUN npm install
1212
RUN npm run build && npm shrinkwrap
1313

1414

15-
FROM node:lts as prod-builder
15+
FROM node:lts AS prod-builder
1616
WORKDIR /usr/src/app
1717
COPY --chown=node:node --from=builder /usr/src/app/dist ./dist
1818
COPY --chown=node:node --from=builder /usr/src/app/package.json ./

full-stack-asset-transfer-guide/contracts/asset-transfer-typescript/tsconfig.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@
88
"declarationMap": true,
99
"sourceMap": true,
1010
"outDir": "dist",
11-
"strict": true,
1211
"noUnusedLocals": true,
1312
"noImplicitReturns": true,
14-
"forceConsistentCasingInFileNames": true
13+
"forceConsistentCasingInFileNames": true,
14+
"isolatedModules": true
1515
},
1616
"include": ["src/"]
1717
}

full-stack-asset-transfer-guide/infrastructure/kind_with_nginx.sh

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ set -eo pipefail
2121
set -x
2222

2323
KIND_CLUSTER_NAME=kind
24-
KIND_CLUSTER_IMAGE=${KIND_CLUSTER_IMAGE:-kindest/node:v1.28.0} # Important! k8s v1.25.0 brings breaking changes.
24+
KIND_CLUSTER_IMAGE=${KIND_CLUSTER_IMAGE:-kindest/node:v1.35.1} # Important! k8s v1.25.0 brings breaking changes.
2525
KIND_API_SERVER_ADDRESS=${KIND_API_SERVER_ADDRESS:-127.0.0.1}
2626
KIND_API_SERVER_PORT=${KIND_API_SERVER_PORT:-8888}
2727
CONTAINER_REGISTRY_NAME=${CONTAINER_REGISTRY_NAME:-kind-registry}
@@ -78,10 +78,22 @@ networking:
7878
# create a cluster with the local registry enabled in containerd
7979
containerdConfigPatches:
8080
- |-
81-
[plugins."io.containerd.grpc.v1.cri".registry.mirrors."localhost:${CONTAINER_REGISTRY_PORT}"]
82-
endpoint = ["http://${CONTAINER_REGISTRY_NAME}:${CONTAINER_REGISTRY_PORT}"]
81+
[[plugins."io.containerd.grpc.v1.cri".registry]
82+
config_path = "/etc/containerd/certs.d"
8383
EOF
8484

85+
# Configure registry for containerd 2.x using config_path mode
86+
for node in $(kind get nodes);
87+
do
88+
docker exec "$node" mkdir -p "/etc/containerd/certs.d/localhost:${CONTAINER_REGISTRY_PORT}"
89+
docker exec "$node" sh -c "cat > /etc/containerd/certs.d/localhost:${CONTAINER_REGISTRY_PORT}/hosts.toml <<EOT
90+
server = \"http://localhost:${CONTAINER_REGISTRY_PORT}\"
91+
92+
[host.\"http://${CONTAINER_REGISTRY_NAME}:${CONTAINER_REGISTRY_PORT}\"]
93+
capabilities = [\"pull\", \"resolve\", \"push\"]
94+
EOT"
95+
done
96+
8597
#
8698
# Work around a bug in KIND where DNS is not always resolved correctly on machines with IPv6
8799
#

full-stack-asset-transfer-guide/infrastructure/sample-network/network

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ function context() {
3434
}
3535

3636
context FABRIC_VERSION 2.5.14
37-
context FABRIC_CA_VERSION 1.5.15
37+
context FABRIC_CA_VERSION 1.5.17
3838

3939
context CLUSTER_RUNTIME kind # or k3s for Rancher
4040
context CONTAINER_CLI docker # or nerdctl for containerd
@@ -78,7 +78,7 @@ context CA_IMAGE_LABEL ${FABRIC_CA_VERSION}
7878
#context PEER_IMAGE ${FABRIC_CONTAINER_REGISTRY}/fabric-peer
7979
#context PEER_IMAGE_LABEL ${FABRIC_VERSION}
8080
context PEER_IMAGE ghcr.io/hyperledger-labs/fabric-builder-k8s/k8s-fabric-peer
81-
context PEER_IMAGE_LABEL 0.11.0 # When using k8s-fabric-peer in Fabric v2.5+, 0.11.0+ should be specified
81+
context PEER_IMAGE_LABEL 0.15.1 # When using k8s-fabric-peer in Fabric v2.5+, 0.11.0+ should be specified
8282
context ORDERER_IMAGE ${FABRIC_CONTAINER_REGISTRY}/fabric-orderer
8383
context ORDERER_IMAGE_LABEL ${FABRIC_VERSION}
8484
context OPERATOR_IMAGE ghcr.io/hyperledger-labs/fabric-operator
@@ -91,7 +91,7 @@ context COUCHDB_IMAGE couchdb
9191
context COUCHDB_IMAGE_LABEL 3.4.2
9292
context CONSOLE_IMAGE ghcr.io/hyperledger-labs/fabric-console
9393
context CONSOLE_IMAGE_LABEL latest
94-
context DEPLOYER_IMAGE ghcr.io/ibm-blockchain/fabric-deployer
94+
context DEPLOYER_IMAGE ghcr.io/hyperledger-labs/fabric-deployer
9595
context DEPLOYER_IMAGE_LABEL latest-amd64
9696

9797
export FABRIC_OPERATOR_IMAGE=${OPERATOR_IMAGE}:${OPERATOR_IMAGE_LABEL}

full-stack-asset-transfer-guide/tests/20-cloud-e2e.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -332,12 +332,12 @@ fabric-ca-client register \
332332
--id.name $USERNAME \
333333
--id.secret $PASSWORD \
334334
--id.type client \
335-
--url https://$WORKSHOP_NAMESPACE-$ORG-ca-ca.$WORKSHOP_INGRESS_DOMAIN \
335+
--url https://$WORKSHOP_NAMESPACE-$ORG-ca-ca.$WORKSHOP_INGRESS_DOMAIN:443 \
336336
--tls.certfiles $WORKSHOP_CRYPTO/cas/$ORG-ca/tls-cert.pem \
337337
--mspdir $WORKSHOP_CRYPTO/enrollments/$ORG/users/rcaadmin/msp
338338

339339
fabric-ca-client enroll \
340-
--url https://$USERNAME:$PASSWORD@$WORKSHOP_NAMESPACE-$ORG-ca-ca.$WORKSHOP_INGRESS_DOMAIN \
340+
--url https://$USERNAME:$PASSWORD@$WORKSHOP_NAMESPACE-$ORG-ca-ca.$WORKSHOP_INGRESS_DOMAIN:443 \
341341
--tls.certfiles $WORKSHOP_CRYPTO/cas/$ORG-ca/tls-cert.pem \
342342
--mspdir $WORKSHOP_CRYPTO/enrollments/$ORG/users/$USERNAME/msp
343343

test-network-k8s/docs/BFT_ORDERERS.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ First, run the following command to verify that the environment variables are co
3939
```shell
4040
$ ./network
4141

42-
Fabric image versions: Peer (3.1.1), CA (1.5.15)
43-
Fabric binary versions: Peer (3.1.1), CA (1.5.15)
42+
Fabric image versions: Peer (3.1.1), CA (1.5.17)
43+
Fabric binary versions: Peer (3.1.1), CA (1.5.17)
4444

4545
--- Fabric Information
4646
Fabric Version : 3.1

test-network/network.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# default image tag, example: "2.5.13". "default" will download the latest. (-i)
22
IMAGETAG="default"
33

4-
# default ca image tag, example: "1.5.15". "default" will download the latest. (-cai)
4+
# default ca image tag, example: "1.5.17". "default" will download the latest. (-cai)
55
CA_IMAGETAG="default"
66

77
# Using crpto vs CA. default is cryptogen

test-network/scripts/utils.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ function printHelp() {
1818
println " Flags:"
1919
println " Used with \033[0;32mnetwork.sh prereq\033[0m:"
2020
println " -i FabricVersion (default: '2.5.14')"
21-
println " -cai Fabric CA Version (default: '1.5.15')"
21+
println " -cai Fabric CA Version (default: '1.5.17')"
2222
println
2323
elif [ "$USAGE" == "up" ]; then
2424
println "Usage: "
@@ -160,7 +160,7 @@ function printHelp() {
160160
println " Flags:"
161161
println " Used with \033[0;32mnetwork.sh prereq\033[0m"
162162
println " -i FabricVersion (default: '2.5.14')"
163-
println " -cai Fabric CA Version (default: '1.5.15')"
163+
println " -cai Fabric CA Version (default: '1.5.17')"
164164
println
165165
println " Used with \033[0;32mnetwork.sh up\033[0m, \033[0;32mnetwork.sh createChannel\033[0m:"
166166
println " -ca - Use Certificate Authorities to generate network crypto material"

0 commit comments

Comments
 (0)