-
Notifications
You must be signed in to change notification settings - Fork 164
ACL Revamp and Fixes #1737
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
+1,247
−32
Merged
ACL Revamp and Fixes #1737
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -9,6 +9,24 @@ order: 500 | |||||||||
|
|
||||||||||
| Assign a specific Rundeck Group access to run a single, named Job in a specified project. It will allow running that job against all nodes in the project. | ||||||||||
|
|
||||||||||
| ## What This User CAN Do | ||||||||||
| - View the specified job | ||||||||||
| - Run the specified job | ||||||||||
| - View execution history for the specified job | ||||||||||
| - View all nodes in the project | ||||||||||
| - Run the job on all nodes | ||||||||||
| - Read project-specific key storage entries | ||||||||||
|
|
||||||||||
| ## What This User CANNOT Do | ||||||||||
| - View or run any other jobs in the project | ||||||||||
| - Create, modify, or delete any jobs | ||||||||||
| - Run ad-hoc commands | ||||||||||
| - Create, update, or delete nodes | ||||||||||
| - Configure project settings | ||||||||||
| - Manage project ACLs | ||||||||||
| - Create or modify key storage entries | ||||||||||
| - Manage webhooks | ||||||||||
|
|
||||||||||
| ## Code Description | ||||||||||
| Find and replace these values with your own. | ||||||||||
| - Project Unique ID: `prj-sandbox` | ||||||||||
|
|
@@ -26,10 +44,13 @@ context: | |||||||||
| for: | ||||||||||
| resource: | ||||||||||
| - allow: [run,read] | ||||||||||
| - equals: | ||||||||||
| kind: event | ||||||||||
| allow: [read] | ||||||||||
| job: | ||||||||||
| - equals: | ||||||||||
| name: jname-sandbox | ||||||||||
| allow: [run,read] | ||||||||||
| allow: [run,read,view,view_history] | ||||||||||
| node: | ||||||||||
| - allow: [read,run] | ||||||||||
| by: | ||||||||||
|
|
@@ -48,12 +69,15 @@ for: | |||||||||
| by: | ||||||||||
| group: grp-sandbox-exec | ||||||||||
| --- | ||||||||||
| description: Allow [read] for key storage access at the project level. If accessing keys outside the project context, you'll need a comparable system-level rule. | ||||||||||
| description: Allow [read] for key storage access at the project level. | ||||||||||
| context: | ||||||||||
| project: prj-sandbox | ||||||||||
| application: rundeck | ||||||||||
| for: | ||||||||||
| storage: | ||||||||||
| - allow: [read] | ||||||||||
| - allow: | ||||||||||
| - read | ||||||||||
| match: | ||||||||||
| path: keys/project/prj-sandbox(/.*)? | ||||||||||
|
Comment on lines
+79
to
+80
|
||||||||||
| match: | |
| path: keys/project/prj-sandbox(/.*)? | |
| - match: | |
| path: keys/project/prj-sandbox(/.*)? |
This file contains hidden or 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
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,139 @@ | ||
| --- | ||
| title: "Group/Multiple Projects Execute Access" | ||
| order: 350 | ||
| --- | ||
|
|
||
| # Group/Multiple Projects Execute Access | ||
|
|
||
| ## Use Case Description | ||
|
|
||
| Assign a specific Rundeck Group access to run jobs across multiple projects with the same permissions. This is useful for teams that work across several projects or for applications that span multiple environments. | ||
|
|
||
| ## What This User CAN Do | ||
| - View all specified projects in their project list | ||
| - View and run all jobs in each specified project | ||
| - View execution history across all projects | ||
| - View nodes in all specified projects | ||
| - Run jobs on nodes in all specified projects | ||
| - Read project-specific key storage entries for each project | ||
|
|
||
| ## What This User CANNOT Do | ||
| - Create, modify, or delete jobs in any project | ||
| - Run ad-hoc commands | ||
| - Create, update, or delete nodes | ||
| - Configure any project settings | ||
| - Manage project ACLs | ||
| - Create or modify key storage entries | ||
| - Access projects not explicitly listed | ||
| - Manage webhooks | ||
|
|
||
| ## Code Description | ||
| Find and replace these values with your own. | ||
| - Project Unique IDs: `prj-dev`, `prj-test`, `prj-prod` | ||
| - Group: `grp-multiproject-exec` | ||
|
|
||
| You can modify the regex pattern to match your project naming convention. Examples: | ||
| - Three specific projects: `(prj-dev|prj-test|prj-prod)` | ||
| - All projects starting with "app-": `app-.*` | ||
| - All development projects: `.*-dev` | ||
|
|
||
| Steps to implement are covered in the [overview page](index.md). | ||
|
|
||
| ## ACL Code | ||
|
|
||
| ``` yaml | ||
| description: Application - Read access to multiple projects | ||
| context: | ||
| application: 'rundeck' | ||
| for: | ||
| project: | ||
| - match: | ||
| name: '(prj-dev|prj-test|prj-prod)' | ||
| allow: [read] | ||
| storage: | ||
| - allow: [read] | ||
| match: | ||
| path: keys/project/(prj-dev|prj-test|prj-prod)(/.*)? | ||
| by: | ||
| group: grp-multiproject-exec | ||
| --- | ||
| description: Project - Execute access to jobs in multiple projects | ||
| context: | ||
| project: '(prj-dev|prj-test|prj-prod)' | ||
| for: | ||
| job: | ||
| - allow: [read, view, view_history, run] | ||
| node: | ||
| - allow: [read, run] | ||
| resource: | ||
| - equals: | ||
| kind: event | ||
| allow: [read] | ||
| - equals: | ||
| kind: node | ||
| allow: [read] | ||
| by: | ||
| group: grp-multiproject-exec | ||
| ``` | ||
|
|
||
| ## Advanced: Different Permissions Per Project | ||
|
|
||
| If you need different permissions for different projects (e.g., read-only in production but full access in development), create separate policies for each project instead of using a single regex pattern. | ||
|
|
||
| **Example:** | ||
| ```yaml | ||
| # Full access to development | ||
| description: Application - Dev project access | ||
| context: | ||
| application: 'rundeck' | ||
| for: | ||
| project: | ||
| - equals: | ||
| name: prj-dev | ||
| allow: [read] | ||
| by: | ||
| group: grp-dev-team | ||
| --- | ||
| description: Project - Full job management in dev | ||
| context: | ||
| project: prj-dev | ||
| for: | ||
| resource: | ||
| - equals: | ||
| kind: job | ||
| allow: [create, delete] | ||
| job: | ||
| - allow: [read, view, update, run, kill] | ||
| node: | ||
| - allow: [read, run] | ||
| by: | ||
| group: grp-dev-team | ||
| --- | ||
| # Read-only access to production | ||
| description: Application - Prod project read access | ||
| context: | ||
| application: 'rundeck' | ||
| for: | ||
| project: | ||
| - equals: | ||
| name: prj-prod | ||
| allow: [read] | ||
| by: | ||
| group: grp-dev-team | ||
| --- | ||
| description: Project - Read-only in production | ||
| context: | ||
| project: prj-prod | ||
| for: | ||
| job: | ||
| - allow: [read, view, view_history] | ||
| node: | ||
| - allow: [read] | ||
| resource: | ||
| - equals: | ||
| kind: event | ||
| allow: [read] | ||
| by: | ||
| group: grp-dev-team | ||
| ``` | ||
|
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.