crumbIssuer

-Djenkins.model.Jenkins.crumbIssuerProxyCompatibility=true
  • temporary settings in Script:

    System.setProperty('jenkins.model.Jenkins.crumbIssuerProxyCompatibility', 'true')
    System.getProperty('jenkins.model.Jenkins.crumbIssuerProxyCompatibility')

change in Configure Global Security

enable/disable crumb compatibility

Upgrading to Jenkins 2.176.2

/

tokens (crumbs) are now only valid for the web session they were created in to limit the impact of attackers obtaining them. Scripts that obtain a crumb using the `/crumbIssuer/api` URL will now fail to perform actions protected from CSRF unless the scripts retain the web session ID in subsequent requests. - [CSRF Protection Explained](https://support.cloudbees.com/hc/en-us/articles/219257077-CSRF-Protection-Explained)

Scripts could instead use an API token, which has not required a CSRF token (crumb) since Jenkins 2.96.

working with session after 2.176.2 since SECURITY-626

references:

via curl

[!TIP] check cookie

via wget

example

  • with crumb only

    will get issue 403: No valid crumb was included in the request

  • with crumb and cookie

To disable this improvement you can set the system property

get crumberIssuer with script

Last updated

Was this helpful?