-
Notifications
You must be signed in to change notification settings - Fork 5
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
feat: New --private-key-file flag when creating a resource instance #670
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.
This is great, thank you for the command update, as well as the upgrade to the meroxa resources create
docs! ✨
SSL bool `long:"ssl" short:"" usage:"use SSL"` | ||
SSHURL string `long:"ssh-url" short:"" usage:"SSH tunneling address"` | ||
SSHPrivateKey string `long:"ssh-private-key" short:"" usage:"SSH tunneling private key"` | ||
PrivateKeyFile string `long:"private-key-file" short:"" usage:"path to private key file"` |
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.
That's neat and as you already said, super helpful with creating snowflake resources in particular!
@@ -358,3 +366,103 @@ Sign up for the Beta here: https://share.hsforms.com/1Uq6UYoL8Q6eV5QzSiyIQkAc2sm | |||
t.Fatalf("expected output:\n%s\ngot:\n%s", wantError, gotError) | |||
} | |||
} | |||
|
|||
func TestCreateResourceExecutionPrivateKeyFlags(t *testing.T) { |
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.
Nice test coverage as always! ✨
Co-authored-by: Jessy Jordan <[email protected]>
Description of change
There are security concerns and UX hiccups around providing the value of a key at the command line rather than the filepath. This adds the file path flag option, and eventually we will deprecate the key value flag.
Also made resource create examples more complete in terms of missing resource types.
Fixes #381
Type of change
How was this tested?
Demo
Additional flag in docs:
Additional references
Documentation updated