-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Support the gcp
option in cast wallet list
#8232
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't have strong feelings about this feature and idk if gcloud keys are even widely used, but I don't mind adding this
@@ -394,6 +401,34 @@ impl MultiWalletOpts { | |||
|
|||
Ok(None) | |||
} | |||
|
|||
// TODO: Support multiple keys | |||
pub async fn gcp_signers(&self) -> Result<Option<Vec<WalletSigner>>> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we add a few docs here that describe what this does?
crates/cast/bin/cmd/wallet/list.rs
Outdated
.aws(self.aws || self.all) | ||
.gcp(self.gcp || self.all) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this makes me realize that if --all is set, the command will always fail if the env vars are missing, same for aws, which is probably not great UX.
we could make gcp infallible if the env vars are missing, same for aws.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
315d8ea
to
1d971c9
Compare
1d971c9
to
e2f5814
Compare
@mattsse Could you take another look when you have time? 👀 |
@mattsse Can we merge this PR?? Also, Would it be possible to enable gcp feature in the precompile binaries?? |
Motivation
To list an account from GCP KMS as with the other options.
Related to this comment in the PR.
Solution
Adds a
gcp
flag to theMultiWallet
and to theListArgs
of thecask wallet
.NOTE: The current implementation only supports a single key, but multiple keys should be supported in the next step