"enabled" in web UI is a fake attribute, it's actual effect
<https://github.com/jenkinsci/jenkins/blob/22aa2e6e766074d11249893e3f35e0b99e20d3d0/core/src/main/java/hudson/security/GlobalSecurityConfiguration.java#L120>
is to invoke disableSecurity
<https://github.com/jenkinsci/jenkins/blob/22aa2e6e76/core/src/main/java/jenkins/model/Jenkins.java#L2526>()
which is actually equivalent to yaml config setting  securityRealm : None and
authorizationStrategy : Unsecured

That being said,
very bad idea to run jenkins unsecured. Think twice. At your own risks.
Don't do that. Don't

https://www.youtube.com/watch?v=aJo8N77FOAk

Le mar. 27 nov. 2018 à 09:21, Emir Özbir <[email protected]> a
écrit :

> I want disable security with Configuration as a code Plugin . So that I've
> created a yaml file shown as below .
> security:
>   enabled: false
>
> jenkins:
>   cloud:
>      /*** Others Configs ***/
>
>
> I've got a error  shown as below up the Jenkins instance .
>
> org.jenkinsci.plugins.casc.ConfiguratorException: Invalid configuration
> elements for type class jenkins.model.GlobalConfigurationCategory$Security
> : enabled err
>
> Which attribute is for disable security at Jenkins in CaasC plugin .
>
> Please Help .
>
> Best Regards .
>
> --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/edbfe25f-4269-484b-a48d-dd00b12f6c74%40googlegroups.com
> <https://groups.google.com/d/msgid/jenkinsci-users/edbfe25f-4269-484b-a48d-dd00b12f6c74%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>


-- 
Nicolas De Loof

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CANMVJzmr3JgF17Dow3zTJFaVG68GAUyurm9R%2BSZCoodBY7wwgg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to