当前位置:网站首页>Jenkins 用户权限管理
Jenkins 用户权限管理
2022-07-07 18:11:00 【云计算-Security】
Jenkins 版本:2.332.3
一、安装插件
1.1 安装
在 Jenkins 的管理插件中进行插件安装
输入 Role 即可找到,如下图我已经安装过了。
1.2 配置
点击 Configure Global Security 进入配置
1、在 Jenkins 设置中找到如下图标
2、选择刚安装的插件来作为我的用户权限
二、创建角色
2.1 插件功能
在 Jenkins 设置下找到 Manage and Assign Roles
并点击进入
主要功能:
2.2 角色管理
1、点击上图 Manage Roles
进入角色管理
2、创建全局角色
创建一个名为 base 的全局角色,该角色可作为所有用户的基本权限,也就是所有普通用户都具备的基本权限,并赋予角色 Overall 下的 Read
权限。
3、创建项目角色
创建一个名为 shop 的项目角色,Pattern 为过滤或匹配正则表达项,cms.*
表示以 cms 开头的项目都会被匹配到,设置完之后,为该项目角色赋予对应的权限。
Pattern 可以匹配作业(job)、代理(agents)、文件夹(folders)等项目关键字及类型。
格式为:jobs, agents, folders, etc
如有多个的话,用英文状态下的逗号","分开即可。
4、创建节点角色
节点角色主要是用于主从 Jenkins 部署时,进行节点权限配置。
2.3 角色分配
1、创建用户
2、点击 Assign Roles
为用户分配权限
按照上面配置的项目角色权限,ops 用户只能匹配到以 cms 开头的项目,其他项目他是无法看到的,接下来进行验证。
3、ops 用户登录验证
至此,Jenkins 用户权限设置完毕!
边栏推荐
- Opencv learning notes high dynamic range (HDR) imaging
- 841. String hash
- TS quick start - Generic
- YoloV6:YoloV6+Win10---训练自己得数据集
- mock. JS returns an array from the optional data in the object array
- [solution] package 'XXXX' is not in goroot
- CSDN语法说明
- Machine learning notes - explore object detection datasets using streamlit
- Oracle 存储过程之遍历
- AIRIOT助力城市管廊工程,智慧物联守护城市生命线
猜你喜欢
vulnhub之tre1
模拟实现string类
About cv2 dnn. Readnetfromonnx (path) reports error during processing node with 3 inputs and 1 outputs [exclusive release]
ASP.NET学习& asp‘s one word
Force buckle 2319 Judge whether the matrix is an X matrix
一键部署Redis任意版本
LeetCode_ 7_ five
【mysql篇-基础篇】事务
九章云极DataCanvas公司摘获「第五届数字金融创新大赛」最高荣誉!
mysql 的一些重要知识
随机推荐
【解决】package ‘xxxx‘ is not in GOROOT
Solve the problem of incomplete display around LCD display of rk3128 projector
LeetCode_ 7_ five
MIT科技评论文章:围绕Gato等模型的AGI炒作可能使人们忽视真正重要的问题
Implement secondary index with Gaussian redis
Data island is the first danger encountered by enterprises in their digital transformation
Flink并行度和Slot详解
Sword finger offer II 013 Sum of two-dimensional submatrix
MSE API learning
TS quick start - Generic
[philosophy and practice] the way of program design
力扣 459. 重复的子字符串
With st7008, the Bluetooth test is completely grasped
Force buckle 459 Duplicate substring
Force buckle 912 Sort array
LeetCode力扣(剑指offer 36-39)36. 二叉搜索树与双向链表37. 序列化二叉树38. 字符串的排列39. 数组中出现次数超过一半的数字
Semantic SLAM源码解析
Force buckle 2315 Statistical asterisk
力扣 599. 两个列表的最小索引总和
openEuler 资源利用率提升之道 01:概论