Skip to content

Commit

Permalink
Implement certificates per network
Browse files Browse the repository at this point in the history
  • Loading branch information
pablomendezroyo committed Oct 17, 2024
1 parent 5d5a19c commit 7145de1
Show file tree
Hide file tree
Showing 9 changed files with 7 additions and 2 deletions.
6 changes: 4 additions & 2 deletions validator/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ ARG STAKER_SCRIPTS_VERSION

USER root

ENV TLS_CERT_PATH=/tls/cert
# Modify TLS_CERT_PATH to include the NETWORK arg value
ENV TLS_CERT_PATH=/tls/cert/${NETWORK}

ENV DATA_DIR=/opt/teku/data \
NETWORK=${NETWORK} \
Expand All @@ -18,7 +19,7 @@ ENV DATA_DIR=/opt/teku/data \
STAKER_SCRIPTS_URL=https://github.com/dappnode/staker-package-scripts/releases/download/${STAKER_SCRIPTS_VERSION}

COPY /security/validator-api-bearer ${VALIDATOR_API_TOKEN_PATH}
COPY /security/cert ${TLS_CERT_PATH}
COPY /security/cert/${NETWORK} ${TLS_CERT_PATH}
COPY entrypoint.sh /usr/local/bin/entrypoint.sh

ADD ${STAKER_SCRIPTS_URL}/consensus_tools.sh /etc/profile.d/
Expand All @@ -31,3 +32,4 @@ RUN apt-get update && apt-get install ca-certificates --yes --no-install-recomme
ENV NETWORK=${NETWORK}

ENTRYPOINT [ "/usr/local/bin/entrypoint.sh" ]

Binary file not shown.
1 change: 1 addition & 0 deletions validator/security/cert/holesky/teku_keystore_password.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
dappnode
Binary file not shown.
1 change: 1 addition & 0 deletions validator/security/cert/lukso/teku_keystore_password.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
dappnode
Binary file not shown.
1 change: 1 addition & 0 deletions validator/security/cert/mainnet/teku_keystore_password.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
dappnode

0 comments on commit 7145de1

Please sign in to comment.