Skip to content

Commit

Permalink
Merge pull request #10 from dappnode/pablo/add-missing-certs-from-net…
Browse files Browse the repository at this point in the history
…works

Use different certs per network
  • Loading branch information
pablomendezroyo authored Oct 17, 2024
2 parents 5d5a19c + c41fb45 commit 582a327
Show file tree
Hide file tree
Showing 11 changed files with 9 additions and 2 deletions.
1 change: 1 addition & 0 deletions beacon-chain/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ FLAGS="--network=$NETWORK \
--ee-endpoint=$ENGINE_URL \
--ee-jwt-secret-file=$JWT_FILE_PATH \
--p2p-port=$P2P_PORT \
--beacon-liveness-tracking-enabled=true \
--rest-api-cors-origins=* \
--rest-api-interface=0.0.0.0 \
--rest-api-port=3500 \
Expand Down
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" ]

1 change: 1 addition & 0 deletions validator/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ FLAGS="--log-destination=CONSOLE \
--metrics-interface=0.0.0.0 \
--metrics-port=8008 \
--metrics-host-allowlist=* \
--doppelganger-detection-enabled=true \
--validator-api-enabled=true \
--validator-api-interface=0.0.0.0 \
--validator-api-port=$VALIDATOR_PORT \
Expand Down
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 582a327

Please sign in to comment.