Add validating util for target names #26

Closed
opened 2023-12-06 11:32:16 +00:00 by aarifullin · 2 comments
Member

It would be very useful if a target name was checked for pattern matching.

Let's consider a target name native:object//LxGyWyLAezAkMi/* (means ResourceFormatRootContainerObjects) - it would be correct to check if the name is valid before adding it to local override storage

It would be very useful if a target name was checked for [pattern](https://git.frostfs.info/TrueCloudLab/policy-engine/src/branch/master/schema/native/consts.go#L12-L28) matching. Let's consider a target name `native:object//LxGyWyLAezAkMi/*` (means `ResourceFormatRootContainerObjects`) - it would be correct to check if the name is valid before adding it to local override storage
aarifullin added the
enhancement
discussion
labels 2023-12-06 11:32:16 +00:00
Member

Should we also add the similar check for s3 resources?

Should we also add the similar check for s3 resources?
Author
Member

Should we also add the similar check for s3 resources?

I think - yes, we should but this can be perfomed optionally. We rather need to check the pattern matching before adding local overrides to local db in ffs-node

> Should we also add the similar check for s3 resources? I think - yes, we should but this can be perfomed optionally. We rather need to check the pattern matching before adding local overrides to local db in ffs-node
Sign in to join this conversation.
No milestone
No project
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/policy-engine#26
No description provided.