Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use different certs per network #10

Merged
merged 2 commits into from
Oct 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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