[#390] frostfs-cli: Pass bearer token to Tree srv
All checks were successful
ci/woodpecker/pr/pre-commit Pipeline was successful
ci/woodpecker/push/pre-commit Pipeline was successful

* Add --bearer flag for "tree" subcommand

Signed-off-by: Airat Arifullin a.arifullin@yadro.com
This commit is contained in:
Airat Arifullin 2023-06-05 18:54:59 +03:00
parent a770b89fd8
commit 189a367ef2
5 changed files with 11 additions and 4 deletions

View file

@ -71,7 +71,7 @@ func getByPath(cmd *cobra.Command, _ []string) {
Path: strings.Split(path, "/"),
LatestOnly: latestOnly,
AllAttributes: true,
BearerToken: nil, // TODO: #1891 add token handling
BearerToken: common.ReadBearerToken(cmd, bearerFlagKey).Marshal(),
}
commonCmd.ExitOnErr(cmd, "message signing: %w", tree.SignMessage(req, pk))