Skip to content

Instantly share code, notes, and snippets.

@sscarduzio
Created January 17, 2020 13:17
Show Gist options
  • Save sscarduzio/6b9f667d1382eab06462105986dbe116 to your computer and use it in GitHub Desktop.
Save sscarduzio/6b9f667d1382eab06462105986dbe116 to your computer and use it in GitHub Desktop.
ROR ACL Examples: document level security
readonlyrest:
access_control_rules:
- name: "Allow read catalogue from local"
indices: ["catalogue-*"]
filter: '{"bool": {"must_not": {"match": {"secret": true}}}}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment