incalculable-arm-99332
09/30/2024, 2:23 PMbrief-egg-61061
09/30/2024, 2:23 PMbrief-egg-61061
09/30/2024, 2:23 PM*
user ID is used to represent any user: json { "namespace": "videos", "object": "cats", "relation": "view", "subject_id": "*" }
In this example, the *
subject ID is granting view access to the "cats" video to all users. Remember, the application interacting with Keto (the Keto client) is responsible for interpreting the special *
user ID as any user. Ory Keto itself doesn't know anything about this special interpretation.incalculable-arm-99332
09/30/2024, 2:27 PMversion: v0.12.0
log:
level: debug
namespaces:
- name: roles
id: 1
- name: resources
id: 2
serve:
read:
host: 0.0.0.0
port: 4466
write:
host: 0.0.0.0
port: 4467
this is my keto config and below are my all relation tuples.
{
"relation_tuples": [
{
"namespace": "roles",
"object": "design_admin",
"relation": "member",
"subject_id": "<mailto:at@mt.com|at@mt.com>"
},
{
"namespace": "roles",
"object": "admin",
"relation": "member",
"subject_id": "<mailto:sd@mt.com|sd@mt.com>"
},
{
"namespace": "resources",
"object": "shop",
"relation": "access",
"subject_id": "*"
},
{
"namespace": "resources",
"object": "designer_portal",
"relation": "access",
"subject_set": {
"namespace": "roles",
"object": "admin",
"relation": "member"
}
},
{
"namespace": "resources",
"object": "admin_portal",
"relation": "access",
"subject_set": {
"namespace": "roles",
"object": "admin",
"relation": "member"
}
},
{
"namespace": "roles",
"object": "design_admin",
"relation": "member",
"subject_id": "<mailto:ab@mt.com|ab@mt.com>"
},
{
"namespace": "resources",
"object": "designer_portal",
"relation": "access",
"subject_set": {
"namespace": "roles",
"object": "design_admin",
"relation": "member"
}
},
{
"namespace": "resources",
"object": "shop",
"relation": "access",
"subject_set": {
"namespace": "roles",
"object": "admin",
"relation": "member"
}
},
{
"namespace": "roles",
"object": "admin",
"relation": "member",
"subject_id": "<mailto:dp@mt.com|dp@mt.com>"
},
{
"namespace": "resources",
"object": "shop",
"relation": "access",
"subject_set": {
"namespace": "roles",
"object": "design_admin",
"relation": "member"
}
}
],
"next_page_token": ""
}
but when I try to access the with subject_id as any_subject_id it returns false