[FE] Hide Validity Token Status When Opt-in is off

Problem to Solve

Now that Opt-in is live, we need to add a conditional check to hide the token status when it is disabled. Current behaviour is that the FE displays the default value of Possibly Active Secret when it is disabled but this might confuse users who think that the worker is still running even though I've confirmed it is not.

Implementation plan

  • Send data[:validity_checks_enabled] = finding.project.security_setting&.validity_checks_enabled from the BE ee/app/helpers/vulnerabilities_helper.rb
  • Add && this.vulnerability.validityChecksEnabled to shouldRenderValidityCheck in ee/app/assets/javascripts/vulnerabilities/components/vulnerability_details.vue
Edited Jun 26, 2025 by Radu Birsan
Assignee Loading
Time tracking Loading