keystone
keystone copied to clipboard
Access control in a field does not affect filtering by it
I have a list which has no defined access control but one of their fields has a denied all access policy like the following but I am able to query ListKey filtered based on fieldName so I can’t really see that value but I could do brute-force and guess it. Is this something expected or this can be a security hole?
ListKey: list({
fields: {
fieldName: text({
access: {
read: ({ session, context, listKey, fieldKey, operation, item }) => false,
create: ({ session, context, listKey, fieldKey, operation, inputData }) => false,
update: ({ session, context, listKey, fieldKey, operation, inputData, item }) => false,
},
}),
},
}),