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

Avoid echoing private key #133

Merged
merged 1 commit into from
Mar 6, 2024
Merged

Conversation

mdehoog
Copy link
Contributor

@mdehoog mdehoog commented Mar 6, 2024

No description provided.

@@ -3,4 +3,3 @@ BASE_CONTRACTS_COMMIT=fe492be3478134b2305c207a12b153eca04148c0

GUARDIAN=0xA9FF930151130fd19DA1F03E5077AFB7C78F8503
OPTIMISM_PORTAL_PROXY=0x49f53e41452C74589E85cA1677426Ba426459e85
GUARDIAN_PRIVATE_KEY= # TODO: Fill in when running script
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

avoid putting here because we don't want anybody to accidentally check this in

##
# Incident response commands
# Note that --ledger --hd-paths <PATH> can be replaced with --private-key $(PRIVATE_KEY)
# in any command when using a local key.
##

ifndef PORTAL_GUARDIAN_PRIVATE_KEY
$(error PORTAL_GUARDIAN_PRIVATE_KEY is undefined)
endif
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

signer can instead provide the key when calling make

# Pause OptimismPortal Commands

.PHONY: pause-portal-dryrun
pause-portal-dryrun:
@forge script --rpc-url $(L1_RPC_URL) \
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the @ prefix will avoid echoing the private key to stdout

@mdehoog mdehoog merged commit 6fb47e2 into main Mar 6, 2024
3 checks passed
@mdehoog mdehoog deleted the michael/avoid-printing-privatekey branch March 6, 2024 19:54
nadir-akhtar-coinbase pushed a commit that referenced this pull request Mar 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants