espresso-sequencer
espresso-sequencer copied to clipboard
refactor: improve robustness of genesis file loading
This PR:
- Ensures proper checking of
ESPRESSO_SEQUENCER_GENESIS_SECRETusing[[ -n "${ESPRESSO_SEQUENCER_GENESIS_SECRET:-}" ]]. - Wraps variable references in quotes to handle spaces and special characters correctly.
- Removes explicit error handling for
aws secretsmanager, relying onset -eto stop execution on failure. - Uses
exec /bin/sequencer "$@"to replace the shell process instead of spawning a new one.
Key places to review:
- The conditional check for
ESPRESSO_SEQUENCER_GENESIS_SECRET. - Handling of
aws secretsmanageroutput. - Replacement of
/bin/sequencer "$@"withexec /bin/sequencer "$@".