Add validating util for target names #26

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

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
Collaborator

Should we also add the similar check for s3 resources?

Should we also add the similar check for s3 resources?
Poster
Collaborator

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.
There is no content yet.