Skip to content

Infrastructure for the Blockchain-based Tree Tracking Hyperledger Fabric-Network - #279

Open
imos64 wants to merge 11 commits into
Greenstand:masterfrom
imos64:master
Open

Infrastructure for the Blockchain-based Tree Tracking Hyperledger Fabric-Network#279
imos64 wants to merge 11 commits into
Greenstand:masterfrom
imos64:master

Conversation

@imos64

@imos64 imos64 commented Sep 17, 2025

Copy link
Copy Markdown
Member

Certificate Authority infrastructure for the Hyperledger Fabric network, including Root CA, Intermediate CAs, deployment scripts, and management tools.

@imos64

imos64 commented Sep 17, 2025

Copy link
Copy Markdown
Member Author

Hi @dadiorchen your approval is required for my Infrastructure for the Blockchain-based Tree Tracking Hyperledger Fabric-Network pull request

@mckornfield mckornfield left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this already deployed? jumping back in so mostly asking questions

#############################################################################

# URL of the Fabric-ca-server (default: http://localhost:7054)
url: https://verifier-ca.hlf-ca.svc.cluster.local:7054

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

will https work in the cluster?

- name: FABRIC_CA_SERVER_PORT
value: "{{ .Values.intermediateCA.port }}"
- name: FABRIC_CA_SERVER_PARENT_URL
value: "https://{{ .Values.intermediateCA.parentID }}:{{ .Values.intermediateCA.parentSecret }}@{{ .Values.intermediateCA.parentHost }}:7054"

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same q, but maybe we use the CA cert in some way with this setup that it works?

@@ -0,0 +1,63 @@
{{- if .Values.intermediateCA.enabled -}}

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

are these bkp* files ones that should be removed?

@@ -0,0 +1,6 @@
apiVersion: v2
name: greenstand-ca

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

probably should put fabric in the title here, just CA makes me think it's for certs in the whole cluster

@@ -0,0 +1,6 @@
apiVersion: v2
name: investor-ca

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

question: what is different between the two charts? Can it not be abstracted just with values?


tls:
enabled: true
secretName: verifier-ca-tls-cert

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

how are the secrets getting created? sealed secrets or?

TLS_KEY=$(find ${TLS_DIR}/keystore -name "*.pem" | head -n 1)

if [[ -f "$TLS_CA" && -f "$TLS_CERT" && -f "$TLS_KEY" ]]; then
kubectl create secret generic ${ICA}-tls-cert \

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess this answers my earlier question, so we are just kubectl create ing them?

chmod +x restore-ca.sh

# Basic restore back into hlf-ca
./restore-ca.sh --archive /path/to/fabric-ca-backup-2025-08-08_201755.tgz

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should this be an env var/ variable?

if [[ "$DRY_RUN" == "true" ]]; then
[[ -f "$ETC_TGZ" ]] && log "[DRY-RUN] kubectl -n $NS cp $ETC_TGZ $POD:/tmp/server-etc.tgz"
[[ -f "$DATA_TGZ" ]] && log "[DRY-RUN] kubectl -n $NS cp $DATA_TGZ $POD:/tmp/server-data.tgz"
log "[DRY-RUN] kubectl -n $NS exec $POD -- sh -lc 'set -e; [[ -f /tmp/server-etc.tgz ]] && tar -C / -xzf /tmp/server-etc.tgz; [[ -f /tmp/server-data.tgz ]] && tar -C / -xzf /tmp/server-data.tgz; rm -f /tmp/server-*.tgz'"

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oof some of these commands are a bit hard to read

@@ -0,0 +1,240 @@
# Enterprise Blockchain (Hyperledger Fabric) Integration with Greenstand Treetracker Platform

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we remove the spaces from the name of this file?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants