Check uniqueness of required fields in controller caches by Indexer
instead of Store
#5425
Open
1 of 4 tasks
Labels
Milestone
Is there an existing issue for this?
Problem Statement
For some of the resources, there is a uniqueness restraint on certain fields, like username of
KongConsumer
or prefix ofKongVault
.To avoid conflicting resources be stored into cache, we can use
Indexer
instead ofStore
to store the objects and define the indexer to extract the unique fields, and reject the update to cache if the field is duplicate.Proposed Solution
Indexer
to storeKongConsumer
,KongVault
and other objects requires some fields to be uniqueIndexFunc
to extract fields with uniqueness restraint as indices and reject object with dupe fieldsstatus
of the object if it is rejected by the reason of dupe fieldAdditional information
No response
Acceptance Criteria
Indexer
to storeKongConsumer
,KongVault
and other objects having requirement of uniqueness on certain fieldsThe text was updated successfully, but these errors were encountered: