Skip to content

Instantly share code, notes, and snippets.

@sscarduzio
Last active January 18, 2020 13:06
Show Gist options
  • Save sscarduzio/ca5374c0477c80a28054b7c932c09d5e to your computer and use it in GitHub Desktop.
Save sscarduzio/ca5374c0477c80a28054b7c932c09d5e to your computer and use it in GitHub Desktop.
ROR ACL Examples: document level security
readonlyrest:
access_control_rules:
- name: "Never return secret documents!"
filter: '{"bool":
{"must_not":
{"match": {"is_secret": true}}
}}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment