Skip to content

Instantly share code, notes, and snippets.

@lusis
Created January 13, 2017 15:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lusis/5631b2b84b6bc56185c126c3a19d93e0 to your computer and use it in GitHub Desktop.
Save lusis/5631b2b84b6bc56185c126c3a19d93e0 to your computer and use it in GitHub Desktop.
---
operations:
default: 'read'
paths:
- '[^/debug/pprof/trace.*]': 'none'
debug:
default: 'none'
paths:
- '(^/reload|^/debug/pprof/.*)': 'write'
api:
default: 'none'
paths:
- '^/ping.*$': 'read'
monitor:
default: 'none'
paths:
- '^(/_cat/.*|/ping|/status|/metrics)': 'read'
ops:
paths:
# list of posix regex:permission pairs
- '^/_cat/.*': 'read'
- '^/test_idx/.*$': 'write'
- '/test2_idx': 'read'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment