Skip to content

Commit

Permalink
feat(quorum): update vault authentication path
Browse files Browse the repository at this point in the history
Changes:
- Update Quorum codebase to use the correct authPath.
- Update containers to start with 'sh' as the default shell.

These changes will facilitate the smooth deployment and reset of the Quorum network.

fixes #quick-fixes

Signed-off-by: saurabhkumarkardam <[email protected]>
  • Loading branch information
saurabhkumarkardam authored and suvajit-sarkar committed Jan 23, 2024
1 parent a7195d5 commit 67ca0c9
Show file tree
Hide file tree
Showing 10 changed files with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ spec:
value: "{{ $.Values.vault.tmprefix }}"
- name: VAULT_TYPE
value: "{{ $.Values.vault.type }}"
command: ["/bin/bash", "-c"]
command: ["/bin/sh", "-c"]
args:
- |-
#!/usr/bin/env bash
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ spec:
- name: tessera
image: {{ .Values.images.tessera }}
imagePullPolicy: IfNotPresent
command: ["/bin/bash", "-c"]
command: ["/bin/sh", "-c"]
args:
- |-
#!/usr/bin/env bash
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ spec:
- name: MOUNT_PATH
value: "/certcheck"
imagePullPolicy: {{ .Values.image.pullPolicy }}
command: ["/bin/bash", "-c"]
command: ["/bin/sh", "-c"]
args:
- |-
if [ -e ${MOUNT_PATH}/present.txt ]
Expand Down Expand Up @@ -194,7 +194,7 @@ spec:
value: "/certcheck"
- name: VAULT_TYPE
value: "{{ $.Values.vault.type }}"
command: ["/bin/bash", "-c"]
command: ["/bin/sh", "-c"]
args:
- |-
#!/usr/bin/env sh
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ spec:
vault:
address: {{ vault.url }}
role: vault-role
authpath: quorum{{ org_name }}
authpath: {{ network.env.type }}{{ org_name }}
serviceaccountname: vault-auth
certsecretprefix: {{ vault.secret_path | default('secretsv2') }}/data/{{ org.name | lower }}
retries: 30
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ spec:
vault:
address: {{ vault.url }}
role: vault-role
authpath: quorum{{ org_name }}
authpath: {{ network.env.type }}{{ org_name }}
serviceaccountname: vault-auth
certsecretprefix: {{ vault.secret_path | default('secretsv2') }}/data/{{ org.name | lower }}
retries: 30
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ spec:
vault:
address: {{ vault.url }}
role: vault-role
authpath: quorum{{ org_name }}
authpath: {{ network.env.type }}{{ org_name }}
serviceaccountname: vault-auth
certsecretprefix: {{ vault.secret_path | default('secretsv2') }}/data/{{ org.name | lower }}
retries: 30
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ spec:
vault:
address: {{ vault.url }}
secretengine: {{ vault.secret_path | default('secretsv2') }}
authpath: quorum{{ org_name }}
authpath: {{ network.env.type }}{{ org_name }}
keyprefix: {{ org_name }}/crypto
role: vault-role
serviceaccountname: vault-auth
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ spec:
keyname: quorum
tm_keyname: tm
role: vault-role
authpath: quorum{{ name }}
authpath: {{ network.env.type }}{{ name }}

{% if network.config.transaction_manager != "none" %}
tessera:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ spec:
serviceaccountname: vault-auth
keyname: quorum
role: vault-role
authpath: quorum{{ name }}
authpath: {{ network.env.type }}{{ name }}
type: {{ vault.type | default("hashicorp") }}
tessera:
dburl: "jdbc:mysql://{{ peer.name }}-tessera:3306/demodb"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ spec:
serviceaccountname: vault-auth
keyname: quorum
role: vault-role
authpath: quorum{{ name }}
authpath: {{ network.env.type }}{{ name }}
type: {{ vault.type | default("hashicorp") }}
genesis: {{ genesis }}
staticnodes: {{ staticnodes }}
Expand Down

0 comments on commit 67ca0c9

Please sign in to comment.