jenkinsci / helm-charts

Jenkins helm charts
https://artifacthub.io/packages/helm/jenkinsci/jenkins
Apache License 2.0
561 stars 889 forks source link

Can't disable Jenkins login page #1107

Closed abdmabrouk closed 2 months ago

abdmabrouk commented 4 months ago

Describe the bug

I am trying to disable the login page of Jenkins, i did the configurations as below, but it's not working, Jenkins keep showing the login page,

jenkins: controller: JCasC: securityRealm: |- local: allowsSignup: false enableCaptcha: false authorizationStrategy: |- loggedInUsersCanDoAnything: allowAnonymousRead: true

when I check jenkins-jenkins-jcasc-config config map, the configuration is the same, and the changes I have made on the helm values, not getting affect on the config map configurations.

Version of Helm and Kubernetes

- Helm: v3.14.3
- Kubernetes: EKS 1.27

Chart version

latest

What happened?

1.
2.
3.
...

What you expected to happen?

When i apply above mentioned configuration, i can reach Jenkins home page without login

How to reproduce it

No response

Anything else we need to know?

No response

jesrig commented 2 months ago

@abdmabrouk Do you have securityRealm defined in controller.JCasC.configscripts as well? The comments above controller.JCasC.security Realm state:

Ignored if securityRealm is defined in controller.JCasC.configScripts

abdmabrouk commented 2 months ago

I have solved the issue using this helm values,

controller: JCasC: configScripts: disable-security: | jenkins: authorizationStrategy: unsecured: {} securityRealm: none: {}

jesrig commented 2 months ago

@abdmabrouk Can this be closed?