Skip to content

Instantly share code, notes, and snippets.

@MattMencel
Created January 19, 2016 17:37
Show Gist options
  • Save MattMencel/64e2945c1defb593af77 to your computer and use it in GitHub Desktop.
Save MattMencel/64e2945c1defb593af77 to your computer and use it in GitHub Desktop.
---
description: Limited RUN access to Web Services Group
context:
project: 'Support'
for:
event:
- equals:
group: 'Web Services'
name: 'Restart OCE'
allow: [read]
job:
- equals:
group: 'Web Services'
name: 'Restart OCE'
allow: [read,run]
node:
- allow: '*'
by:
username: ['myusername']
@danieleva
Copy link

This will allow the Web services group to read events, but I'm not sure if you can restrict it only to the 'Restart OCE' job events


---

for:
  resource:
  - allow: read
    equals:
      kind: event
description: Allows myuser to read events
context:
  project: Support
by:
  username: myuser

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment