Skip to content
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

RBAC lab updates #3

Open
wants to merge 1 commit into
base: pipeline-policies-lab
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion bundle.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
apiVersion: "1"
version: "3"
version: "4"
id: "cloudbees-ci-workshop-controller"
description: "CloudBees CI configuration bundle for the CloudBees CI Workshop"
availabilityPattern: "cloudbees-ci-workshop/mqackermannc/controller"
Expand All @@ -11,3 +11,5 @@ catalog:
- "plugin-catalog.yaml"
items:
- "items.yaml"
rbac:
- "rbac.yaml"
6 changes: 3 additions & 3 deletions jenkins.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jenkins:
- key: "BUNDLE_ID"
value: "${CASC_BUNDLE_ID}"
quietPeriod: 0
systemMessage: 'Jenkins configured using CloudBees CI CasC - v3'
systemMessage: 'Jenkins configured using CloudBees CI CasC - v4'
globalCloudBeesPipelineTemplateCatalog:
catalogs:
- branchOrTag: "main"
Expand Down Expand Up @@ -53,7 +53,7 @@ unclassified:
durabilityHint: PERFORMANCE_OPTIMIZED
globallibraries:
libraries:
- defaultVersion: "main"
- defaultVersion: "module-2"
name: "pipeline-library"
retriever:
modernSCM:
Expand Down Expand Up @@ -94,7 +94,7 @@ kube:
- emptyDirVolume:
memory: false
mountPath: "/var/maven/"
yamlMergeStrategy: "override"
yamlMergeStrategy: "override"
credentials:
system:
domainCredentials:
Expand Down
54 changes: 54 additions & 0 deletions rbac.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
removeStrategy:
rbac: SYNC
roles:
- name: authenticated
filterable: 'true'
permissions:
- hudson.model.Hudson.Read
- hudson.model.Item.Read
- hudson.model.View.Read
- name: administrator
permissions:
- hudson.model.Hudson.Administer
- name: manager
filterable: 'true'
permissions:
- hudson.model.Hudson.Manage
- nectar.plugins.rbac.roles.Role.View
- hudson.model.Hudson.SystemRead
- com.cloudbees.plugins.credentials.CredentialsProvider.View
- com.cloudbees.jenkins.plugin.metrics.views.Alerter.View
- com.cloudbees.pipeline.governance.templates.catalog.TemplateCatalogAction.ViewCatalogs
- nectar.plugins.rbac.groups.Group.View
- name: user
filterable: 'true'
permissions:
- hudson.model.Item.Create
- hudson.model.Item.Configure
- hudson.model.Item.Read
- hudson.model.Item.Build
groups:
- name: Administrators
members:
users:
- admin
- team-admin
- ackermannc-admin
roles:
- name: administrator
grantedAt: current
- name: Managers
members:
users:
- ackermannc
roles:
- name: manager
grantedAt: current
- name: Users
members:
users:
- ackermannc
roles:
- name: user
grantedAt: child