Just an update for anyone with the particular problem I had with Spinnaker: the docs
https://spinnaker.io/setup/ci/jenkins/ indicate that Spinnaker can only connect to Jenkins if:
1. csrf=true on the Spinnaker connection to Jenkins
2. Jenkins's 'strict' crumb issuer is installed rather than the default issuer and set to *not* check the session
So that would imply that even with an Api token you still need to get and pass a crumb for API calls (and by default a valid session as well?!)
If anyone can clarify the current state of Jenkins w.r.t. crumbs, passwords, api-tokens and sessions, and how these relate to the legacy auth endpoint, the crumb issuer endpoint and API endpoints, it would be much appreciated. The docs don't seem to reflect reality, at least not for my install from the Jenkins Helm chart.