Jenkins安全 - 隐藏所有屏幕,除非用户登录 [英] Jenkins security - hide all screens unless user is logged in

查看:974
本文介绍了Jenkins安全 - 隐藏所有屏幕,除非用户登录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不知道为什么已登录的用户可以做任何事情意味着Jenkins会很高兴地允许未经身份验证的用户查看项目详细信息和访问工件...无论如何,我需要知道如何让Jenkins允许登录

I don't know why "logged in users can do anything" means Jenkins will happily allow non-authenticated users to view project details and access artifacts... Regardless, I need to know how to get Jenkins to allow logged in users to to anything AND hide EVERYTHING for users who AREN'T logged in. Help please?

推荐答案

这可以通过以下方式完成: 角色策略插件

This can be done with the Role-Strategy plugin.

安装插件,添加一个名为匿名的新组,并取消选中所有内容。然后,您要添加另一个名为authenticated的组并检查一切。将您现有的用户添加到此组。 Jenkins会立即提示您输入登录信息。

Install the plugin, add a new group called "Anonymous" and uncheck everything. Then you want to add another group called "authenticated" and check everything. Add your existing users to this group. Jenkins will immediately prompt you for a login this way.

这篇关于Jenkins安全 - 隐藏所有屏幕,除非用户登录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆