Skip to content

setting controller.JCasC.security.apiToken.usageStatisticsEnabled to false does not disable sending Usage Statistics. #1490

@duckaraptor

Description

@duckaraptor

Describe the bug

When setting

JCasC:     
  security:
    apiToken:
      creationOfLegacyTokenEnabled: false
      tokenGenerationOnCreationEnabled: false
      usageStatisticsEnabled: false

it does not disable sending Usage Statistics in Jenkins.

Image

Version of Helm and Kubernetes

- Helm: 3.17
- Kubernetes: 1.32

Chart version

5.8.48

What happened?

1. Update the values file and set `controller.JCasC.security.apiToken.usageStatisticsEnabled` to `false`
2. Install the chart.
3. Value is updated in JCasC, can check at `/var/jenkins_home/casc_configs`
4. In UI, under `Manage Jenkins` -> `Systems` -> `Usage Statistics`  is still enabled.
...

What you expected to happen?

When we set controller.JCasC.security.apiToken.usageStatisticsEnabled to false, under Manage Jenkins -> Systems -> Usage Statistics should be disabled.

How to reproduce it

controller:
    JCasC:
      security:
        apiToken:
          creationOfLegacyTokenEnabled: false
          tokenGenerationOnCreationEnabled: false
          usageStatisticsEnabled: false

Anything else we need to know?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions