Improve tree service support in CLI #390

Closed
opened 2023-05-25 09:47:04 +00:00 by alexvanin · 2 comments

FrostFS CLI supports tree service operations, see tree section. It does not implement some API features, which can be quite useful.

Describe the solution you'd like

Support bearer token

Gateways access tree service of private containers by using bearer token, to replace deny rules of extended ACL table with allow rules. CLI does not allow to attach bearer token.

Cover all protocol methods in the CLI

Current CLI implementation allows to invoke:

  • Add
  • AddByPath
  • GetByPath
  • TreeList

There are a couple more methods client can use:

  • Remove
  • Move
  • GetSubTree
  • Healthcheck

There are two more which are not used by the clients, so reconsider adding them in the CLI.

  • Apply
  • GetOpLog

Describe alternatives you've considered

None.

Additional context

None.

## Is your feature request related to a problem? Please describe. FrostFS CLI supports tree service operations, see `tree` section. It does not implement some API features, which can be quite useful. ## Describe the solution you'd like #### Support bearer token Gateways access tree service of private containers by using bearer token, to replace deny rules of extended ACL table with allow rules. CLI does not allow to attach bearer token. #### Cover all protocol methods in the CLI Current CLI implementation allows to invoke: - Add - AddByPath - GetByPath - TreeList There are a couple more methods client can use: - [ ] Remove - [ ] Move - [ ] GetSubTree - [ ] Healthcheck There are two more which are not used by the clients, so reconsider adding them in the CLI. - [ ] Apply - [ ] GetOpLog ## Describe alternatives you've considered None. ## Additional context None.
alexvanin added the
enhancement
frostfs-cli
triage
labels 2023-05-25 09:47:04 +00:00
Poster
Owner

I think we wanted to do (1) back in the days, according to this code:
a1823423cf/cmd/frostfs-cli/modules/tree/get_by_path.go (L74)

	req.Body = &tree.GetNodeByPathRequest_Body{
		...
		BearerToken:   nil, // TODO: #1891 add token handling
	}
I think we wanted to do (1) back in the days, according to this code: https://git.frostfs.info/TrueCloudLab/frostfs-node/src/commit/a1823423cf238d9c8634111fd9203e8c1f8aa940/cmd/frostfs-cli/modules/tree/get_by_path.go#L74 ```go req.Body = &tree.GetNodeByPathRequest_Body{ ... BearerToken: nil, // TODO: #1891 add token handling } ```
fyrchik added this to the v0.38.0 milestone 2023-05-29 17:30:01 +00:00
aarifullin self-assigned this 2023-06-01 11:14:21 +00:00

Closed via #488.

Closed via #488.
Sign in to join this conversation.
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: TrueCloudLab/frostfs-node#390
There is no content yet.