hudson用户权限

http://www.cnblogs.com/halfacre/archive/2012/07/03/2575098.html


hudson用户权限

hudson 用户权限

(2011-12-01 13:02:36)
标签:

持续集成

杂谈

分类: 持续集成

                  

1.  选择系统管理   

启动安全

描述:为了hudson的资源,操作等安全问题,对hudson的用户的权限设置
 
主要配置:
  用户权限" alt="Help for feature: Hudson专有用户数据库" src="http://192.168.203.178:8081/hudson/static/47354877/images/16x16/help.gif" real_src="http://192.168.203.178:8081/hudson/static/47354877/images/16x16/help.gif">
  用户权限" alt="Help for feature: " src="http://192.168.203.178:8081/hudson/static/47354877/images/16x16/help.gif" real_src="http://192.168.203.178:8081/hudson/static/47354877/images/16x16/help.gif">
读取中...
    服务器 用户权限" alt="Help for feature: 服务器" src="http://192.168.203.178:8081/hudson/static/47354877/images/16x16/help.gif" real_src="http://192.168.203.178:8081/hudson/static/47354877/images/16x16/help.gif">
  
用户权限" alt="hudson 用户权限" src="http://192.168.203.178:8081/hudson/static/47354877/images/spinner.gif" real_src="http://192.168.203.178:8081/hudson/static/47354877/images/spinner.gif">
 
安全矩阵 用户权限" alt="Help for feature: 安全矩阵" src="http://192.168.203.178:8081/hudson/static/47354877/images/16x16/help.gif" real_src="http://192.168.203.178:8081/hudson/static/47354877/images/16x16/help.gif">
用户/组OverallSlaveJobRunViewSCM 
Administer ReadConfigureDeleteCreateDeleteConfigureReadBuild Workspace Delete UpdateCreateDeleteConfigure Tag
用户权限" alt="hudson 用户权限" src="http://192.168.203.178:8081/hudson/static/47354877/images/16x16/person.gif" real_src="http://192.168.203.178:8081/hudson/static/47354877/images/16x16/person.gif">admin用户权限" alt=remove src="http://192.168.203.178:8081/hudson/static/47354877/images/16x16/stop.gif" real_src="http://192.168.203.178:8081/hudson/static/47354877/images/16x16/stop.gif">
用户权限" alt="hudson 用户权限" src="http://192.168.203.178:8081/hudson/static/47354877/images/16x16/person.gif" real_src="http://192.168.203.178:8081/hudson/static/47354877/images/16x16/person.gif">user1用户权限" alt=remove src="http://192.168.203.178:8081/hudson/static/47354877/images/16x16/stop.gif" real_src="http://192.168.203.178:8081/hudson/static/47354877/images/16x16/stop.gif">
用户权限" alt="hudson 用户权限" src="http://192.168.203.178:8081/hudson/static/47354877/images/16x16/person.gif" real_src="http://192.168.203.178:8081/hudson/static/47354877/images/16x16/person.gif">user2用户权限" alt=remove src="http://192.168.203.178:8081/hudson/static/47354877/images/16x16/stop.gif" real_src="http://192.168.203.178:8081/hudson/static/47354877/images/16x16/stop.gif">
匿名用户 

恢复权限设置

以域/授权这样一种方式设置安全可能会产生意外从而导致您无法在重新配置 Hudson。

如果出现这种情况,您可以执行下列步骤修正它:

中断Hudson,文件系统中$ HUDSON_HOME环境变量对应的文件夹,然后找到 config.xml 文件。

在此文件中查找<useSecurity>true</useSecurity> 元素。

用false替换true。启动Hudson 。

Hudson又回归到无认证模式,任何人都能拥有该系统的全部权限
 

 

1.  选择系统管理   

启动安全

描述:为了hudson的资源,操作等安全问题,对hudson的用户的权限设置
 
主要配置:
  用户权限" alt="Help for feature: Hudson专有用户数据库" src="http://192.168.203.178:8081/hudson/static/47354877/images/16x16/help.gif" real_src="http://192.168.203.178:8081/hudson/static/47354877/images/16x16/help.gif">
  用户权限" alt="Help for feature: " src="http://192.168.203.178:8081/hudson/static/47354877/images/16x16/help.gif" real_src="http://192.168.203.178:8081/hudson/static/47354877/images/16x16/help.gif">
读取中...
    服务器 用户权限" alt="Help for feature: 服务器" src="http://192.168.203.178:8081/hudson/static/47354877/images/16x16/help.gif" real_src="http://192.168.203.178:8081/hudson/static/47354877/images/16x16/help.gif">
  
用户权限" alt="hudson 用户权限" src="http://192.168.203.178:8081/hudson/static/47354877/images/spinner.gif" real_src="http://192.168.203.178:8081/hudson/static/47354877/images/spinner.gif">
 
安全矩阵 用户权限" alt="Help for feature: 安全矩阵" src="http://192.168.203.178:8081/hudson/static/47354877/images/16x16/help.gif" real_src="http://192.168.203.178:8081/hudson/static/47354877/images/16x16/help.gif">
用户/组OverallSlaveJobRunViewSCM 
Administer ReadConfigureDeleteCreateDeleteConfigureReadBuild Workspace Delete UpdateCreateDeleteConfigure Tag
用户权限" alt="hudson 用户权限" src="http://192.168.203.178:8081/hudson/static/47354877/images/16x16/person.gif" real_src="http://192.168.203.178:8081/hudson/static/47354877/images/16x16/person.gif">admin用户权限" alt=remove src="http://192.168.203.178:8081/hudson/static/47354877/images/16x16/stop.gif" real_src="http://192.168.203.178:8081/hudson/static/47354877/images/16x16/stop.gif">
用户权限" alt="hudson 用户权限" src="http://192.168.203.178:8081/hudson/static/47354877/images/16x16/person.gif" real_src="http://192.168.203.178:8081/hudson/static/47354877/images/16x16/person.gif">user1用户权限" alt=remove src="http://192.168.203.178:8081/hudson/static/47354877/images/16x16/stop.gif" real_src="http://192.168.203.178:8081/hudson/static/47354877/images/16x16/stop.gif">
用户权限" alt="hudson 用户权限" src="http://192.168.203.178:8081/hudson/static/47354877/images/16x16/person.gif" real_src="http://192.168.203.178:8081/hudson/static/47354877/images/16x16/person.gif">user2用户权限" alt=remove src="http://192.168.203.178:8081/hudson/static/47354877/images/16x16/stop.gif" real_src="http://192.168.203.178:8081/hudson/static/47354877/images/16x16/stop.gif">
匿名用户 

恢复权限设置

以域/授权这样一种方式设置安全可能会产生意外从而导致您无法在重新配置 Hudson。

如果出现这种情况,您可以执行下列步骤修正它:

中断Hudson,文件系统中$ HUDSON_HOME环境变量对应的文件夹,然后找到 config.xml 文件。

在此文件中查找<useSecurity>true</useSecurity> 元素。

用false替换true。启动Hudson 。

Hudson又回归到无认证模式,任何人都能拥有该系统的全部权限
 

转自:http://blog.sina.com.cn/s/blog_92b2237e0100wq2e.html

### Jenkins 用户权限管理配置指南与最佳实践 #### 权限管理概述 Jenkins 的用户权限管理是一个重要的功能模块,用于确保系统的安全性以及资源的有效分配。它支持多种方式来定义和应用权限规则,从而满足不同的团队协作需求。 #### 方法一:通过内置的角色基础权限(Role-Based Access Control, RBAC) Jenkins 支持基于角色的访问控制 (RBAC),允许管理员创建多个角色并将这些角色分配给特定用户或组。此方法可以通过安装 **Role-based Authorization Strategy Plugin** 插件实现[^1]。 - 创建全局角色:适用于整个 Jenkins 实例的操作权限。 - 创建项目角色:针对具体项目的读写权限设置。 - 定义 IP 地址限制:可进一步增强安全性,仅允许来自指定网络的请求访问某些资源。 #### 方法二:利用 LDAP 或 Active Directory 进行集中认证 如果企业内部已经存在成熟的目录服务解决方案,则可以直接集成到 Jenkins 中作为外部身份提供者。这样不仅可以简化新员工入职流程中的账户建立工作量,而且能够统一管理和同步离职后的注销处理过程[^3]。 #### 方法三:脚本化配置——借助 Configuration as Code(CaC) 插件自动化部署 对于大规模生产环境下的持续交付流水线来说,手动调整各项参数既耗时又容易出错。因此推荐采用 “Configuration As Code”(CaC) 方式来进行初始化设定或者周期性的更新迭代 。这种方法不仅提高了效率还增强了版本追踪能力[^2]。 以下是使用 Groovy 脚本来批量导入 CSV 文件内的用户名单及其对应初始密码的例子: ```groovy import jenkins.model.* def instance = Jenkins.getInstance() new File("/path/to/users.csv").eachLine { line -> def fields = line.split(",") String username = fields[0].trim() String password = fields[1].trim() User user = User.get(username , true ) user.addProperty(new hudson.tasks.Mailer.UserProperty(password)) } instance.save() ``` 上述代码片段展示了如何从本地存储路径加载包含两列数据(分别为登录名及临时口令字符串形式表示的新成员清单),并通过循环逐一注册至目标实例上。 #### 性能优化提示 为了使 Ansible Playbooks 更加高效,在实际操作过程中应该注意以下几点: - 尽可能减少重复执行相同逻辑的部分; - 对于只需要部分机器参与的任务序列,请显式声明 hosts 参数限定范围; - 合理规划任务之间的依赖关系以便充分利用多核处理器带来的优势完成并发计算。 ### 结论 综上所述,合理运用以上提到的各种技术和工具可以帮助我们构建起一套完善而灵活适应变化需求的企业级 CI/CD 平台架构体系结构图解说明文档链接如下所示[^1].
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值