Skip to content

Commit

Permalink
chore: add helm ui insecure option
Browse files Browse the repository at this point in the history
  • Loading branch information
martinsaporiti committed Jun 24, 2024
1 parent a594350 commit 63443c6
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion infrastructure/local/docker-compose-infra.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ services:
"--spider",
"--proxy",
"off",
"http://localhost:8200/v1/sys/health?standbyok=true",
"http://vault:8200/v1/sys/health?standbyok=true",
]
interval: 10s
timeout: 3s
Expand Down
4 changes: 3 additions & 1 deletion k8s/helm/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ export PRIVATE_KEY='YOUR PRIVATE KEY' # Private key of the wal
export PUBLIC_IP='YOUR PUBLIC IP' # Provide the PUBLIC IP if you have any otherwise leave this field.
export MAINNET=false # Specify if the network is main, if this value is false issuer node will use amoy
export UIPASSWORD="my ui password" # Password for user: ui-user. This password is used when the user visit the ui.
export UI_INSECURE=true # Set as true if the ui doesn't require basic auth. If this value true UIPASSWORD can be blank
export ISSUERNAME="My Issuer" # Issuer Name. This value is shown in the UI
export ISSUER_ETHERUM_URL="https://polygon-amoy.XXXX" # Blockchain RPC.
export INGRESS_ENABLED=true # If this value is false you must provide a STATIC_IP
Expand Down Expand Up @@ -61,7 +62,8 @@ helm install "$APP_INSTANCE_NAME" . \
--set vaultpwd="$VAULT_PWD" \
--set rhsMode="$RHS_MODE" \
--set rhsUrl="$RHS_URL" \
--set issuerCustomDidMethods="$ISSUER_CUSTOM_DID_METHODS"
--set-json issuerCustomDidMethods="$ISSUER_CUSTOM_DID_METHODS" \
--set issuerUiInsecure=$UI_INSECURE
```

In the code above, the PUBLIC_IP is not provided because is not needed when the ingress is enabled.
Expand Down
3 changes: 2 additions & 1 deletion k8s/helm/templates/issuer-node-ui-configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,5 @@ data:
ISSUER_API_UI_AUTH_PASSWORD: {{ .Values.uiIssuerNode.configMap.issuerApiUiAuthPassword }}
ISSUER_API_UI_ISSUER_NAME: {{ .Values.issuerName }}
ISSUER_UI_IPFS_GATEWAY_URL: {{ .Values.uiIssuerNode.configMap.issuerUiIpfsGatewayUrl }}
ISSUER_UI_SCHEMA_EXPLORER_AND_BUILDER_URL: {{ .Values.uiIssuerNode.configMap.issuerUiSchemaExplorerAndBuilderUrl }}
ISSUER_UI_SCHEMA_EXPLORER_AND_BUILDER_URL: {{ .Values.uiIssuerNode.configMap.issuerUiSchemaExplorerAndBuilderUrl }}
ISSUER_UI_INSECURE: {{ .Values.issuerUiInsecure | quote }}
1 change: 1 addition & 0 deletions k8s/helm/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -464,6 +464,7 @@ issuerEthereumUrl: https://polygon-amoy.g.alchemy.com/v2/
mainnet: false
publicIP: nil
uiPassword: password
issuerUiInsecure: false
issuerName: "My Issuer!"
ingressEnabled: false
privateKey: metamask private key
Expand Down

0 comments on commit 63443c6

Please sign in to comment.