forked from TrueCloudLab/frostfs-node
[#390] frostfs-cli: Pass bearer token to Tree srv
* Add --bearer flag for "tree" subcommand Signed-off-by: Airat Arifullin a.arifullin@yadro.com
This commit is contained in:
parent
a770b89fd8
commit
189a367ef2
5 changed files with 11 additions and 4 deletions
|
@ -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))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue