-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pepr Store Keys Need Sanitization #915
Comments
This would be a pretty big value add for uds-core. We started to go down the route of figuring out our own sanitization but were struggling with:
If pepr handled this in a way that we could just set and keys and be guaranteed that set/get calls would succeed and not retrieve the wrong value that would be great for our use case. |
In researching other edge-cases, size does not seem to be a limitation. let longString = 'a'.repeat(253);
const longerString = longString.repeat(1000);
Store.setItem(longerString, longString); |
Moving to the next milestone since we need to plan with UDS Core how to roll this out to prod users |
Describe what should be investigated or refactored
Certain keys are not making it into the store, the patch operation is returning
422
.We need a way to sanitize the key so that the patch operation succeeds and users of the store can get their data in a consistent manner.
Reproduce:
Definition of done:
https://google.com-${po.Raw.metadata!.name}
, the store sanitizes them before the pack, and they can get them back out by the same key (the store sanitizes the Store.getItem).Links to any relevant code
/src/lib/controller/store.ts
Additional context
Add any other context or screenshots about the technical debt here.
The text was updated successfully, but these errors were encountered: