ape: Validate chain resource name #944

Merged
fyrchik merged 1 commit from acid-ant/frostfs-node:feature/937-validate-ape into master 2024-01-31 10:52:33 +00:00
Member

Close #937

Signed-off-by: Anton Nikiforov an.nikiforov@yadro.com

Close #937 Signed-off-by: Anton Nikiforov <an.nikiforov@yadro.com>
acid-ant requested review from storage-core-committers 2024-01-30 14:09:37 +00:00
acid-ant requested review from storage-core-developers 2024-01-30 14:09:45 +00:00
dstepanov-yadro requested changes 2024-01-30 15:48:07 +00:00
@ -0,0 +20,4 @@
// ValidateResourceName validates resource name components - container and object id, namespace.
// Also validates matching resource name to templates of policy engine's native scheme.
func ValidateResourceName(name string) error {

This function is too complex and must be separated to mane simple validators.

This function is too complex and must be separated to mane simple validators.
Author
Member

Separated on two independent, added a bit more comments.

Separated on two independent, added a bit more comments.
dstepanov-yadro marked this conversation as resolved
acid-ant force-pushed feature/937-validate-ape from 9347f2e5f5 to a467dc1afd 2024-01-31 07:09:00 +00:00 Compare
fyrchik approved these changes 2024-01-31 08:33:24 +00:00
acid-ant force-pushed feature/937-validate-ape from a467dc1afd to 483a67b170 2024-01-31 08:34:45 +00:00 Compare
dstepanov-yadro approved these changes 2024-01-31 09:55:58 +00:00
fyrchik merged commit 483a67b170 into master 2024-01-31 10:52:33 +00:00
Sign in to join this conversation.
No reviewers
TrueCloudLab/storage-core-developers
No milestone
No project
No assignees
3 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#944
No description provided.