policy: Add method to listing chain keys for specific targes #105

Closed
opened 2024-08-21 14:51:10 +00:00 by dkirillov · 0 comments
Member

Currently we can only list all chains (as value). But in s3-gw and frostfs-node we use APE to check policies that accept "name" (ingress or s3) to filter desired chains by prefix. That's why it would be nice to see what keys are stored for specific target (to investigate bugs for example)

Describe the solution you'd like

Add new method ListChainNames

Describe alternatives you've considered

  • Don't add new method
  • Change existing method so it can return not only values but keys

Additional context

No

## Is your feature request related to a problem? Please describe. Currently we can only list all chains (as [value](https://git.frostfs.info/TrueCloudLab/frostfs-contract/src/commit/0befe361fe27d980210e23c18cf266663010d249/policy/policy_contract.go#L250)). But in s3-gw and frostfs-node we use APE to check policies that accept ["name"](https://git.frostfs.info/TrueCloudLab/policy-engine/src/commit/a1386f6d259a617739f5e0e3cab5db8dc9cf1061/pkg/engine/interface.go#L14) (`ingress` or `s3`) to filter desired chains by prefix. That's why it would be nice to see what keys are stored for specific target (to investigate bugs for example) ## Describe the solution you'd like Add new method `ListChainNames` ## Describe alternatives you've considered * Don't add new method * Change existing method so it can return not only values but keys ## Additional context No
dkirillov self-assigned this 2024-08-27 08:45:38 +00:00
fyrchik added this to the v0.20.0 milestone 2024-08-27 12:55:39 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
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-contract#105
No description provided.