-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This change adds an `import` subcommand that can store data exported from `engflow_auth export` read from stdin. Some usage/UX notes: * there is purposely no option to read the data from `argv`, to discourage accidental insecure use. To "work around" this, users could do something like `echo "TOKEN DATA" | engflow_auth import`. * since we have no way to list credentials (yet - we would need to upstream this in the libraries we use - doesn't look impossible) - aliases must either be set when exporting the credentials, or added to the payload afterward (i.e. with `jq`), though this latter way is not guaranteed to be supported forever. Bug: linear/CUS-367 Tested: Round-tripped payload through export and import: ``` bazel-bin/cmd/engflow_auth/engflow_auth_/engflow_auth \ export \ --alias kyanite.local.engflow.com:8982 \ kyanite.cluster.engflow.com \ | bazel-bin/cmd/engflow_auth/engflow_auth_/engflow_auth \ import ```
- Loading branch information
1 parent
ddfce52
commit 8995485
Showing
2 changed files
with
91 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters