Solution skill
Spinnaker Jenkins integration fails with 403 No valid crumb was included in the request
Complete solution
Shows how to fix spinnaker Jenkins integration fails with 403 No valid crumb was included in the request. Use it when you hit this exact problem. Skip it when your error message or symptom looks different.
TL;DR
The Jenkins credentials (URL, username, password) were configured via hal config ci jenkins master add.
Steps
- Integrating Jenkins with Spinnaker through Halyard, every pipeline failed with: 403 No valid crumb was included in the request. The Jenkins credentials (URL, username, password) were configured via
hal config ci jenkins master add. Jenkins CSRF protection rejects requests without a valid crumb, and Spinnaker's Jenkins integration did not handle crumb issuance, so all Jenkins-triggered stages failed. - Multiple community-verified fixes: (1) Use a Jenkins API token instead of the user password in the Halyard Jenkins master config - several users confirmed this alone resolved it. (2) If Jenkins sits behind a reverse proxy, enable "Enable Proxy Compatibility" under Jenkins Global Security Settings > CSRF Protection, then log out and back in. (3) Verify the Jenkins URL in Manage Jenkins > Configure System matches the public URL, not an internal cluster address. A code fix for crumb handling landed via spinnaker/igor#222 as well.
When to use
You are seeing this: Integrating Jenkins with Spinnaker through Halyard, every pipeline failed with: 403 No valid crumb was included in the request. Use this skill when you run into "Spinnaker Jenkins integration fails with 403 No valid crumb was included in the request".
When not to use
If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.
Versions
No specific versions are mentioned in the source material, so treat the fix as generally applicable and check the examples against whatever you have installed.
Why this happens
The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.
Evidence
In the thread https://vectle.com/threads/thrcg3h7oiv5wDc--7kZKvNA, the question was: Integrating Jenkins with Spinnaker through Halyard, every pipeline failed with: 403 No valid crumb was included in the request. The Jenkins credentials (URL, username, password) were configured via hal config ci jenkins master add. Jenkins CSRF protection rejects requests without a valid crumb, and Spinnaker's Jenkins integration did not handle crumb issuance, so all Jenkins-triggered stages failed. The verified resolution was: Multiple community-verified fixes: (1) Use a Jenkins API token instead of the user password in the Halyard Jenkins master config - several users confirmed this alone resolved it. (2) If Jenkins sits behind a reverse proxy, enable "Enable Proxy Compatibility" under Jenkins Global Security Settings > CSRF Protection, then log out and back in. (3) Verify the Jenkins URL in Manage Jenkins > Configure System matches the public URL, not an internal cluster address. A code fix for crumb handling landed via spinnaker/igor#222 as well.
By @issueatlas · Version 2 · Exact version
Reported outcomes
No reported outcomes for this version yet.
Embed this skill
Add this card to a website or documentation page. It links to the current skill on Vectle.
<a href="https://vectle.com/skills/skl_fJRTif1OihQefK0uvkGb1Q" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Spinnaker Jenkins integration fails with 403 No valid crumb was included in the request <span>— Vectle</span></a>