Skip to content

Commit 1687ff4

Browse files
authored
Remove controller.csrf.defaultCrumbIssuer.proxyCompatability as it is dropped in core (#1563)
1 parent 6996d98 commit 1687ff4

File tree

7 files changed

+128
-4
lines changed

7 files changed

+128
-4
lines changed

charts/jenkins/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ Use the following links to reference issues, PRs, and commits prior to v2.6.0.
1212
The changelog until v1.5.7 was auto-generated based on git commits.
1313
Those entries include a reference to the git commit to be able to get more details.
1414

15+
## 5.8.115
16+
17+
Removed controller.csrf.defaultCrumbIssuer.proxyCompatability as it is dropped in core
18+
1519
## 5.8.114
1620

1721
Update `kubernetes` to version `4398.vb_b_33d9e7fe23`

charts/jenkins/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: v2
22
name: jenkins
33
type: application
44
home: https://www.jenkins.io/
5-
version: 5.8.114
5+
version: 5.8.115
66
appVersion: 2.528.3
77
description: >
88
Jenkins - Build great things at any scale! As the leading open source automation server, Jenkins provides over 2000 plugins to support building, deploying and automating any project.

charts/jenkins/VALUES.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ The following tables list the configurable parameters of the Jenkins chart and t
116116
| [controller.containerEnvFrom](./values.yaml#L155) | list | Environment variable sources for Jenkins Container | `[]` |
117117
| [controller.containerSecurityContext](./values.yaml#L213) | object | Allow controlling the securityContext for the jenkins container | `{"allowPrivilegeEscalation":false,"readOnlyRootFilesystem":true,"runAsGroup":1000,"runAsUser":1000}` |
118118
| [controller.csrf.defaultCrumbIssuer.enabled](./values.yaml#L354) | bool | Enable the default CSRF Crumb issuer | `true` |
119-
| [controller.csrf.defaultCrumbIssuer.proxyCompatability](./values.yaml#L356) | bool | Enable proxy compatibility | `true` |
119+
| [controller.csrf.defaultCrumbIssuer.proxyCompatability](./values.yaml#L356) | bool | Enable proxy compatibility. This setting is ignored if you are not on the current LTS release and will be dropped with the next LTS. | `true` |
120120
| [controller.customInitContainers](./values.yaml#L556) | list | Custom init-container specification in raw-yaml format | `[]` |
121121
| [controller.customJenkinsLabels](./values.yaml#L71) | list | Append Jenkins labels to the controller | `[]` |
122122
| [controller.disableRememberMe](./values.yaml#L62) | bool | Disable use of remember me | `false` |

charts/jenkins/templates/_helpers.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ jenkins:
333333
{{- $_ := set $ "Values" $oldRoot.Values }}
334334
{{- end }}
335335
slaveAgentPort: {{ .Values.controller.agentListenerPort }}
336-
{{- if .Values.controller.csrf.defaultCrumbIssuer.enabled }}
336+
{{- if and .Values.controller.csrf.defaultCrumbIssuer.enabled (eq .Chart.AppVersion (index (splitList "-" (include "controller.image.tag" .)) 0)) (lt (atoi (index (splitList "." .Chart.AppVersion) 1)) 543) }}
337337
crumbIssuer:
338338
standard:
339339
excludeClientIPFromCrumb: {{ if .Values.controller.csrf.defaultCrumbIssuer.proxyCompatability }}true{{ else }}false{{- end }}

charts/jenkins/unittests/__snapshot__/jcasc-config-test.yaml.snap

Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3506,3 +3506,85 @@ specify security settings without apiToken override:
35063506
unclassified:
35073507
location:
35083508
url: http://RELEASE-NAME-jenkins:8080
3509+
none lts version:
3510+
1: |
3511+
|-
3512+
jenkins:
3513+
authorizationStrategy:
3514+
loggedInUsersCanDoAnything:
3515+
allowAnonymousRead: false
3516+
securityRealm:
3517+
local:
3518+
allowsSignup: false
3519+
enableCaptcha: false
3520+
users:
3521+
- id: "${chart-admin-username}"
3522+
name: "Jenkins Admin"
3523+
password: "${chart-admin-password}"
3524+
disableRememberMe: false
3525+
mode: NORMAL
3526+
numExecutors: 0
3527+
labelString: ""
3528+
projectNamingStrategy: "standard"
3529+
markupFormatter:
3530+
plainText
3531+
clouds:
3532+
- kubernetes:
3533+
containerCapStr: "10"
3534+
defaultsProviderTemplate: ""
3535+
connectTimeout: "5"
3536+
readTimeout: "15"
3537+
jenkinsUrl: "http://RELEASE-NAME-jenkins.default.svc.cluster.local:8080"
3538+
jenkinsTunnel: "RELEASE-NAME-jenkins-agent.default.svc.cluster.local:50000"
3539+
skipTlsVerify: false
3540+
usageRestricted: false
3541+
maxRequestsPerHostStr: "32"
3542+
retentionTimeout: "5"
3543+
waitForPodSec: "600"
3544+
name: "kubernetes"
3545+
namespace: "default"
3546+
restrictedPssSecurityContext: false
3547+
serverUrl: "https://kubernetes.default"
3548+
credentialsId: ""
3549+
podLabels:
3550+
- key: "jenkins/RELEASE-NAME-jenkins-agent"
3551+
value: "true"
3552+
templates:
3553+
- name: "default"
3554+
namespace: "default"
3555+
id: a23c9bbcd21e360a77d51b426f05bd7b8032d8fdedd6ffb97c436883ce6c5ffa
3556+
containers:
3557+
- name: "jnlp"
3558+
alwaysPullImage: false
3559+
args: "^${computer.jnlpmac} ^${computer.name}"
3560+
envVars:
3561+
- envVar:
3562+
key: "JENKINS_URL"
3563+
value: "http://RELEASE-NAME-jenkins.default.svc.cluster.local:8080/"
3564+
image: "jenkins/inbound-agent:3355.v388858a_47b_33-3"
3565+
privileged: "false"
3566+
resourceLimitCpu: 512m
3567+
resourceLimitMemory: 512Mi
3568+
resourceRequestCpu: 512m
3569+
resourceRequestMemory: 512Mi
3570+
ttyEnabled: false
3571+
workingDir: /home/jenkins/agent
3572+
idleMinutes: 0
3573+
instanceCap: 2147483647
3574+
label: "RELEASE-NAME-jenkins-agent "
3575+
nodeUsageMode: "NORMAL"
3576+
podRetention: Never
3577+
showRawYaml: true
3578+
serviceAccount: "default"
3579+
slaveConnectTimeoutStr: "100"
3580+
yamlMergeStrategy: override
3581+
inheritYamlMergeStrategy: false
3582+
slaveAgentPort: 50000
3583+
security:
3584+
apiToken:
3585+
creationOfLegacyTokenEnabled: false
3586+
tokenGenerationOnCreationEnabled: false
3587+
usageStatisticsEnabled: true
3588+
unclassified:
3589+
location:
3590+
url: http://RELEASE-NAME-jenkins:8080

charts/jenkins/unittests/jcasc-config-test.yaml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -936,3 +936,41 @@ tests:
936936
matchRegex:
937937
path: data["security.yaml"]
938938
pattern: "authorizationStrategy:"
939+
940+
- it: none lts version
941+
chart:
942+
version: 5.8.115
943+
appVersion: 2.543
944+
release:
945+
namespace: default
946+
asserts:
947+
- isKind:
948+
of: ConfigMap
949+
- hasDocuments:
950+
count: 1
951+
- isNotEmpty:
952+
path: data["jcasc-default-config.yaml"]
953+
- matchRegex:
954+
path: metadata.labels["helm.sh/chart"]
955+
pattern: ^jenkins-
956+
- matchSnapshot:
957+
path: data["jcasc-default-config.yaml"]
958+
- it: none lts version
959+
set:
960+
controller:
961+
image:
962+
tag: "2.543"
963+
release:
964+
namespace: default
965+
asserts:
966+
- isKind:
967+
of: ConfigMap
968+
- hasDocuments:
969+
count: 1
970+
- isNotEmpty:
971+
path: data["jcasc-default-config.yaml"]
972+
- matchRegex:
973+
path: metadata.labels["helm.sh/chart"]
974+
pattern: ^jenkins-
975+
- matchSnapshot:
976+
path: data["jcasc-default-config.yaml"]

charts/jenkins/values.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ controller:
352352
defaultCrumbIssuer:
353353
# -- Enable the default CSRF Crumb issuer
354354
enabled: true
355-
# -- Enable proxy compatibility
355+
# -- Enable proxy compatibility. This setting is ignored if you are not on the current LTS release and will be dropped with the next LTS.
356356
proxyCompatability: true
357357

358358
# Kubernetes service type for the JNLP agent service

0 commit comments

Comments
 (0)