hasura / hasura/graphql-engine
Prompt for admin-secret
- Dominant language
- TypeScript
- Stars
- 32.1k
- Forks
- 3k
- PR merge metrics
- PR metrics pending
Description
### Is your proposal related to a problem?
Including `--admin-secret some-long-and-random-string` in CLI commands will automatically add the secret to the user's shell history. It can be removed there, but it'd be better to avoid that altogether. Since that admin secret is so powerful, it should be guarded.
### Describe the solution you'd like
Including `--admin-secret` with *no* value will prompt the user for the secret on the next line.
### Describe alternatives you've considered
You could have distinct a `--prompt-admin-secret` option, if that makes things simpler.
### If the feature is approved, would you be willing to submit a PR?
No thanks
Contributor guide
Assessment
This issue has not been assessed yet.