-
-
Save seb54000/b6968b19915a9b1c2e42648faba4fa94 to your computer and use it in GitHub Desktop.
Basic Rundeck aclpolicy, allows access to one project for one group
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"description": "MyGroup allowed access to MyProject only", | |
"context": { | |
"application": "rundeck" | |
}, | |
"for": { | |
"project": [ | |
{ | |
"match": { | |
"name": "MyProject" | |
}, | |
"allow": [ | |
"read" | |
] | |
} | |
] | |
}, | |
"by": { | |
"group": "MyGroup" | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"description": "MyGroup access rules to MyProject.", | |
"context": { | |
"project": "MyProject" | |
}, | |
"for": { | |
"resource": [ | |
{ | |
"equals": { | |
"kind": "event" | |
}, | |
"allow": [ | |
"read" | |
] | |
} | |
], | |
"job": [ | |
{ | |
"allow": [ | |
"read" | |
] | |
}, | |
{ | |
"match": { | |
"group": "^mygroup($|/.*)" | |
}, | |
"allow": [ | |
"read", | |
"run" | |
] | |
} | |
], | |
"adhoc": [ | |
{ | |
"deny": "run" | |
} | |
], | |
"node": [ | |
{ | |
"contains": { | |
"tags": "mytag" | |
}, | |
"allow": [ | |
"read", | |
"run" | |
] | |
}, | |
{ | |
"equals": { | |
"rundeck_server": "true" | |
}, | |
"allow": [ | |
"read", | |
"run" | |
] | |
} | |
] | |
}, | |
"by": { | |
"group": "MyGroup" | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Application scope | |
description: MyGroup allowed access to MyProject only | |
context: | |
application: 'rundeck' | |
for: | |
project: | |
- match: | |
name: 'MyProject' | |
allow: [read] | |
by: | |
group: MyGroup | |
--- | |
# Project scope | |
description: MyGroup access rules to MyProject. | |
context: | |
project: 'MyProject' | |
for: | |
resource: | |
- equals: | |
kind: event | |
allow: [read] # allow read of all activity (jobs run by all users) | |
job: | |
- allow: [read] # allow read of all jobs | |
- match: | |
group: '^mygroup($|/.*)' | |
allow: [read,run] # allow run access for jobs within the "mygroup" top level group | |
adhoc: | |
- deny: run # don't allow adhoc execution | |
node: | |
- contains: | |
tags: mytag | |
allow: [read, run] # allow run on nodes with the tag 'mytag' | |
- equals: | |
rundeck_server: 'true' | |
allow: [read, run] # allow run on rundeck server node | |
by: | |
group: MyGroup |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment