hasura / hasura/graphql-engine

Prompt for admin-secret

Open
#7,779 4 comments 0 reactions 1 assignee Claimed by @scriptonist View on GitHub
c/cli k/enhancement t/product-platform
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.