Special characters not accepting in relationship tuple while writing #129
Replies: 3 comments 2 replies
|
👋🏽 Hey @Akash-Adkute At the moment, In the meantime you can escape those characters before calling OpenFGA Will update you if we end up doing that though! |
|
@Akash-Adkute I converted this to an "Idea" as it's something we should explore how to do in the product in a better way. |
|
I think this issue is not only inconvenient, but also a major security risk. String concatenation to a :-notation leaves the door wide open for string injection. And there is absolutely no documentation regarding how to handle real world data that is not a hard coded example string that just always works. It least nothing I could find. And i tried pretty hard, because right now we are in a situation where this issue could become a potential problem for our project. This is also the first place I could read something official about that. Both workarounds have major downsides. Escaping means a dirty data set that probably can not be repaired easily in the future. And also leaving the CLI tool useless from now on. Because (I would think) it does not support escape routines? |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Hi,
I am beginner in openFga, i wanted to store URL as object in relationship tuples but it is not allowing special characters and
giving invalid 'object' field format
eg.
{ "writes": { "tuple_keys": [ { "user": "users:UUID", "relation": "have_user_endpoint_mapping", **"object": "endpoint:https://amazon.com/loc/mum"** } ] }, "authorization_model_id": "ID" }All reactions