You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Describe format of an object/user and object/user id #883
In OpenFGA, relations can only have alphanumeric characters, underscores and hyphens. We recommend using underscore (_) to separate words and removing prepositions. E.g.: "can create a document" can become "can_create_document" or "create_document" if you are into brevity.
It would be helpful if the same kind of restrictions would be clarified on the other elements, such as the object type and identifier.
For example, you cannot use a ':' or '#' in the identifier, but I figured this out by trial-and-error. What other restrictions/limitations are there?
That is a very important issue! We use OpenFGA in our new project. The worst experince was, when we figured out (by trial and error) that the only way to use the API is by string concatenation. That is not only a major inconvenience, but also a huge attack vector from security perspective that leaves the door wide open for string injection.
Also there is no guideance or real world examples on how to handle real input data that is more than hard coded example strings. Like: Can they be sanitized? What are the restrictions in characters, length, etc? Or whats the idea behind that?
Activity
Mario-Eis commentedon Jun 17, 2026
That is a very important issue! We use OpenFGA in our new project. The worst experince was, when we figured out (by trial and error) that the only way to use the API is by string concatenation. That is not only a major inconvenience, but also a huge attack vector from security perspective that leaves the door wide open for string injection.
Also there is no guideance or real world examples on how to handle real input data that is more than hard coded example strings. Like: Can they be sanitized? What are the restrictions in characters, length, etc? Or whats the idea behind that?
Mario-Eis commentedon Jun 17, 2026
Update: We figured out by trial and error, that
*,:and#seem to be illegal characters