tree: Allow reading requests signed by keys from allow list #458

Merged
fyrchik merged 1 commit from acid-ant/frostfs-node:feature/449-tree-allowed-keys into master 2023-07-26 21:07:59 +00:00

View file

@ -71,7 +71,9 @@ func getByPath(cmd *cobra.Command, _ []string) {
Path: strings.Split(path, "/"),
LatestOnly: latestOnly,
AllAttributes: true,
BearerToken: common.ReadBearerToken(cmd, bearerFlagKey).Marshal(),
}
if btok := common.ReadBearerToken(cmd, bearerFlagKey); btok != nil {
req.Body.BearerToken = btok.Marshal()
}
commonCmd.ExitOnErr(cmd, "message signing: %w", tree.SignMessage(req, pk))